{"info":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","description":"<html><head></head><body><p>The TalentHR provides many API products, tools, and resources that enable you to integrate TalentHR with your internal software.</p>\n<h2 id=\"🚀-getting-started-guide\">🚀 <strong>Getting started guide</strong></h2>\n<p>To start using the TalentHR API, you need to:</p>\n<ul>\n<li>You must use a valid API Key to send requests to the API endpoints. You can get your API key from TalentHR settings -&gt; domain settings -&gt; API.</li>\n<li>The API has rate and usage limits (2000 requests per minute).</li>\n<li>The API only responds to HTTPS-secured communications.</li>\n<li>The API returns request responses in JSON format. When an API request returns an error, it is sent in the JSON response as an error key (All calls must have an Accept: application/json header value).</li>\n</ul>\n<h2 id=\"🔒authentication\">🔒Authentication</h2>\n<p>The TalentHR API uses \"basic authentication\" for authentication.</p>\n<p>TalentHR uses API keys for authentication. You can generate a TalentHR API key in the API section of your TalentHR domain settings.</p>\n<p>When using <strong>Basic Auth</strong> within the TalentHR API, the <strong>username</strong> must be set as the API Key obtained from the system. However, the <strong>password</strong> field can be left blank or set to a random string, as it has no impact on the authentication process at this time. You can fill these fields in the global variables of TalentHR API.</p>\n<h2 id=\"you-can-construct-and-send-basic-auth-headers-following-these-steps\">You can construct and send basic auth headers following these steps:</h2>\n<ol>\n<li>Generate an API key for TalentHR (<a href=\"https://help.talenthr.io/hc/en-us/articles/17627841146909-Can-I-integrate-my-site-with-TalentHR-Do-you-offer-an-API\">How to generate an API key</a>).</li>\n<li>Build a string of the form <code>api_key:123</code>. The username part is set to “api_key” and the password part is set to a random string “123”, in this case.</li>\n<li>BASE64 encode the string.</li>\n</ol>\n<ul>\n<li>Linux/Unix/MacOS:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">echo -n api_key:random_string | base64\n\n</code></pre>\n<ul>\n<li>Windows 7 and later, using Microsoft Powershell:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-powershell\">$Text = ‘api_key:random_string’$Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text)$EncodedText = [Convert]::ToBase64String($Bytes)$EncodedText\n\n</code></pre>\n<p>Supply an <code>Authorization</code> header with content <code>Basic</code> followed by the encoded string. For example, the string <code>samplekey:123</code> encodes to <code>c2FtcGxla2V5OjEyMw==</code> in base64, so you would make the request as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -D- \\   -X GET \\   -H \"Authorization: {{vault:basic-auth}}\" \\   -H \"Content-Type: application/json\" \\\"https://pubapi.talenthr.io/v1/directory\"\n\n</code></pre>\n<h3 id=\"authentication-error-response\">Authentication error response</h3>\n<p>If an API key is missing, malformed, or invalid, you will receive an HTTP 401 Unauthorized response code.</p>\n<h2 id=\"rate-and-usage-limits\">Rate and usage limits</h2>\n<p>API access rate limits apply at a per-API key basis in unit time. The limit is 2000 requests per minute. Also, depending on your plan, you may have usage limits. If you exceed either limit, your request will return an HTTP 429 Too Many Requests status code.</p>\n<h3 id=\"ℹ️-need-some-help\">ℹ️ <strong>Need some help?</strong></h3>\n<p>In case you have questions, please go through our <a href=\"https://help.talenthr.io/hc/en-us\">Knowledge Base</a> or you can contact our support at <a href=\"https://mailto:support@talenthr.io\">support@talenthr.io</a></p>\n<hr>\n<h2 id=\"additional-information\"><strong>Additional Information</strong></h2>\n<h5>1. 📖 Pagination mechanism :</h5>\n\n<p>Some endpoints in the talentHR API implement a paging mechanism to efficiently break large datasets into smaller, more manageable chunks. The pagination mechanism is consisted of two essential attributes: <strong>offset &amp; limit</strong>. The limit parameter determines the maximum number of records returned per call (maximum 100), while the offset parameter indicates the current page. In case the limit parameter is not specified in a request, the system defaults to a limit of 10.</p>\n<p>Pagination starts from an offset of 0, with subsequent pages based on the defined limit. For instance, if the limit is set to 10 records, the offset for the next page would be calculated as previous_offset + limit. For example, if the previous offset is 0 and the limit is 10, the offset for the next page would be 0 + 10 = 10, and so forth.</p>\n<h5>2. 🛠️ Custom Fields :</h5>\n\n<p>The system offers three distinct categories of custom fields for managing information: <strong>pre-existing</strong> , <strong>employees</strong> and <strong>assets</strong> custom fields.</p>\n<p><strong>Pre-existing custom fields</strong> are fields that already exist in the system and have an essential part to employee's information. They include a variety of types, such as text, single and multiple choice, links, and blended options. Among these, the blended option is a complex field that comprises additional attributes. (e.g. driver's license blended option consists of 4 fields; Number, Issued date, Expiry date, Issuing country).</p>\n<p>Some pre-existing custom fields are enabled by default from the system's initiation, allowing immediate use without requiring a subscription. These readily accessible custom fields include:</p>\n<ul>\n<li>Address</li>\n<li>City</li>\n<li>Citizenship</li>\n<li>Country</li>\n<li>Employee Number</li>\n<li>LinkedIn</li>\n<li>Marital Status</li>\n<li>Nationality</li>\n<li>Personal Email</li>\n<li>Postal Code</li>\n<li>SSN</li>\n</ul>\n<p>To access additional pre-existing custom fields, a subscription is necessary. These fields encompass a wider range of attributes and they are the following:</p>\n<ul>\n<li>Allergies</li>\n<li>Behance</li>\n<li>Driver License</li>\n<li>Facebook</li>\n<li>Family</li>\n<li>GitHub</li>\n<li>Instagram</li>\n<li>Languages</li>\n<li>Passport</li>\n<li>Personal Phone</li>\n<li>Pinterest</li>\n<li>Secondary Address</li>\n<li>Shirt-Size</li>\n<li>Skype</li>\n<li>T-Shirt Size</li>\n<li>Twitter</li>\n<li>Visa</li>\n</ul>\n<p><em><strong>Note:</strong></em> <em>The type or visibility of these pre-existing custom fields cannot be modified, as they are predefined.</em></p>\n<p><strong>Employee custom fields</strong> can be used to capture information for employees. The type of them can vary from text to long text, from single to multiple-choice, links, references to employees, or dates. In addition, these custom fields have adjustable visibility settings, allowing access exclusively to the employee, to the manager, both to the employee and his/her manager, or universally to all. You have the ability to create an employee custom field even without a subscription; this means the field exists in an idle state until the necessary subscription is acquired, enabling its use.</p>\n<p><strong>Asset custom fields</strong> can be used to capture information for assets. The type of them can vary from text to long text, from single to multiple-choice, links, references to employees, or dates. In addition, these custom fields have adjustable visibility settings, allowing access exclusively to the employee, to the manager, both to the employee and his/her manager, or universally to all. Also, an additional option is available that allows these fields to be specifically applied to inventory, memberships, or universally across all asset types. You have the ability to create an asset custom field even without a subscription; this means the field exists in an idle state until the necessary subscription is acquired, enabling its use.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32971705","collectionId":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","publishedId":"2sBXwmSDRi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-28T08:42:05.000Z"},"item":[{"name":"Domain Settings","item":[{"name":"Get all system's timezones","id":"3456a3f7-b8fb-4485-8984-7fdb3eefbacf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/timezones","description":"<h3 id=\"timezones\">API endpoint to get the available timezones.</h3>\n\n<p>This API endpoint retrieves a list of available timezones supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["timezones"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"2699bd71-a9cc-4603-b260-a5672ce80e82","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/timezones"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    \"Africa/Cairo\",\n    \"America/Los_Angeles\",\n    \"America/New_York\",\n    \"Asia/Hong_Kong\",\n    \"Asia/Qatar\",\n    \"Australia/Perth\",\n    \"Australia/Melbourne\",\n    \"Europe/Athens\"\n  ]\n}"}],"_postman_id":"3456a3f7-b8fb-4485-8984-7fdb3eefbacf"},{"name":"Get all languages","id":"2d61ad1d-c7ce-4857-9695-e610a39bd696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/languages","description":"<h3>API endpoint to get the available languages.</h3>\n\n<p>This API endpoint retrieves a list of available languages supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["languages"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"2d4af386-56d6-4357-883a-1ba79739d03b","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/languages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"English\",\n      \"code\": \"en\",\n      \"is_disabled\": 0\n    },\n    {\n      \"id\": 3,\n      \"name\": \"Spanish\",\n      \"code\": \"es\",\n      \"is_disabled\": 0\n    }\n  ]\n}"}],"_postman_id":"2d61ad1d-c7ce-4857-9695-e610a39bd696"},{"name":"Get all countries","id":"67ad174d-2dc7-4acd-9357-e7068f24e661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/countries","description":"<h3>API endpoint to get the available countries.</h3>\n\n<p>This API endpoint retrieves a list of available countries supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["countries"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"3b9f0553-2e64-4ec7-bc57-37db86d43c18","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    \"Afghanistan\",\n    \"Argentina\",\n    \"Bosnia and Herzegowina\",\n    \"Botswana\",\n    \"China\",\n    \"Finland\",\n    \"France\",\n    \"Greece\",\n    \"India\",\n    \"Spain\"\n  ]\n}"}],"_postman_id":"67ad174d-2dc7-4acd-9357-e7068f24e661"},{"name":"List currencies","id":"e50a9ac9-0125-4353-9829-acb998e3d1aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/currencies","description":"<h3>List currencies</h3><p>Returns the catalogue of supported fiat currencies used by the product for forms, validation, and integrations. The response includes a boolean <code>success</code> indicator and a <code>data</code> array of objects.</p><p>Each object includes <code>code</code> (ISO 4217 alphabetic code) and <code>name</code> (human-readable label). Some entries MAY include an <code>exchange</code> string when the row represents a currency priced or reported against another code (see the application configuration for the authoritative list).</p><p>The sequence and membership of the catalogue are defined by server configuration and MAY change between releases. Clients SHOULD NOT assume a fixed length.</p><p><strong>Authorization.</strong> The caller MUST authenticate with a valid API key for the tenant (same requirements as other public v1 resources).</p>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["currencies"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"865875b0-4c1c-4592-abd0-53ac3400d54a","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"name\": \"US Dollar\",\n      \"code\": \"USD\"\n    },\n    {\n      \"name\": \"Euro\",\n      \"code\": \"EUR\"\n    },\n    {\n      \"name\": \"British Pound Sterling\",\n      \"code\": \"GBP\"\n    },\n    {\n      \"name\": \"Falkland Islands Pound\",\n      \"code\": \"FKP\",\n      \"exchange\": \"GBP\"\n    }\n  ]\n}"}],"_postman_id":"e50a9ac9-0125-4353-9829-acb998e3d1aa"},{"name":"Get all nationalities","id":"337b38b4-0675-4dba-ba65-c022b15d7b13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/nationalities","description":"<h3>API endpoint to get the available nationalities.</h3>\n\n<p>This API endpoint retrieves a list of available nationalities supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["nationalities"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"d516467c-0e62-443e-b442-6cb46ef705b1","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/nationalities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    \"Afghan\",\n    \"Albanian\",\n    \"Algerian\",\n    \"American\",\n    \"Andorran\",\n    \"Angolan\",\n    \"Antiguans\",\n    \"Argentinean\",\n    \"Armenian\",\n    \"Australian\"\n  ]\n}"}],"_postman_id":"337b38b4-0675-4dba-ba65-c022b15d7b13"},{"name":"Get the education Levels","id":"326d41ae-a6a7-457d-8dbc-ea975c13d775","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/education-levels","description":"<h3>API endpoint to get all available education levels.</h3>\n\n<p>This API endpoint retrieves a list of available education levels supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["education-levels"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"307082d9-6341-4e02-a382-59f6e1bf1e2b","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/education-levels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"High School\"\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Other\"\n    },\n    {\n      \"id\": 3,\n      \"name\": \"MSc\"\n    },\n    {\n      \"id\": 4,\n      \"name\": \"BSc\"\n    },\n    {\n      \"id\": 5,\n      \"name\": \"PhD\"\n    }\n  ]\n}"}],"_postman_id":"326d41ae-a6a7-457d-8dbc-ea975c13d775"},{"name":"Get the employment statuses","id":"b97645a9-81a2-496d-8e39-2ce13119b730","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employment-statuses","description":"<h3>API endpoint to get all available employment statuses.</h3>\n\n<p>This API endpoint retrieves a list of available employment statuses supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employment-statuses"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"8adcf9aa-e857-4140-a42c-d5fd2cb7069d","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employment-statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Full-Time\"\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Part-Time\"\n    },\n    {\n      \"id\": 3,\n      \"name\": \"Contractor\"\n    },\n    {\n      \"id\": 4,\n      \"name\": \"Terminated\"\n    },\n    {\n      \"id\": 5,\n      \"name\": \"Furloughed\"\n    }\n  ]\n}"}],"_postman_id":"b97645a9-81a2-496d-8e39-2ce13119b730"},{"name":"Get the relationship types","id":"51539ebe-2dd6-4415-a88b-7b52723029fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/relationship-types","description":"<h3>API endpoint to get all available relationship types.</h3>\n\n<p>This API endpoint retrieves a list of available relationship types supported by the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["relationship-types"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"dd251084-5270-4751-8c74-0637c6abb151","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/relationship-types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Wife/Husband\"\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Mother\"\n    },\n    {\n      \"id\": 3,\n      \"name\": \"Father\"\n    },\n    {\n      \"id\": 4,\n      \"name\": \"Daughter\"\n    },\n    {\n      \"id\": 5,\n      \"name\": \"Son\"\n    }\n  ]\n}"}],"_postman_id":"51539ebe-2dd6-4415-a88b-7b52723029fa"},{"name":"Get system settings","id":"0be2b6f5-f31f-4365-af7d-b71c11f15d9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/system-settings","description":"<h3>Get system settings</h3><p>Returns the consolidated system configuration for the authenticated tenant, comprising domain-level and company-level attributes that are exposed through this version of the public HTTP API.</p><p>The response includes a boolean <code>success</code> indicator and a <code>data</code> object. Property names follow the public v1 contract (for example, <code>language</code> denotes the UI language code, <code>domain</code> denotes the tenant subdomain hostname, and <code>logo_url</code> denotes a signed or public logo URL when configured). The <code>currency</code> field, when present, is the tenant default ISO code; see <strong>GET</strong> <code>https://pubapi.talenthr.io/v1/currencies</code> (<strong>List currencies</strong>). The <code>login_method</code> property is a JSON array of string slugs; each element MUST be a member of the platform allow list. At the time of publication, the permitted values are: <code>local</code>, <code>google</code>, <code>microsoft</code>, and <code>apple</code>. Additional identifiers MAY be introduced in a future release and are subject to the same validation rules.</p><p>Further scalar flags (including, where applicable, <code>two_factor_auth</code>, <code>ai_assistant_company_data</code>, and <code>ai_files_summary</code>) are included when relevant to the tenant subscription and configuration. The effective set of properties returned in <code>data</code> is constrained by the caller's authorizations and by tenant-level feature availability.</p><p><strong>Authorization.</strong> The caller MUST possess permission to view domain settings.</p>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["system-settings"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"9abe5ae7-644f-44d2-a88d-67c12e98da0a","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/system-settings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"company_name\": \"Example Company\",\n    \"domain\": \"example\",\n    \"language\": \"en\",\n    \"timezone\": \"Europe/Athens\",\n    \"login_method\": [\n      \"local\",\n      \"google\",\n      \"microsoft\",\n      \"apple\"\n    ],\n    \"currency\": \"EUR\",\n    \"logo_url\": \"https://cdn.example.com/tenant/logo.png\",\n    \"theme\": {\n      \"primary_color\": \"#1a73e8\",\n      \"secondary_color\": \"#333333\"\n    },\n    \"working_days\": [\n      1,\n      2,\n      3,\n      4,\n      5\n    ],\n    \"two_factor_auth\": false,\n    \"ai_assistant_company_data\": false,\n    \"ai_files_summary\": false\n  }\n}"},{"id":"fb3dd919-025b-46eb-af62-703739b53b27","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/system-settings"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"}],"_postman_id":"0be2b6f5-f31f-4365-af7d-b71c11f15d9d"},{"name":"Update system settings","id":"63fead66-faad-4c1b-b2dd-623f00ef7c19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"company_name\": \"Example Company\",\n  \"domain\": \"example\",\n  \"language\": \"en\",\n  \"timezone\": \"Europe/Athens\",\n  \"login_method\": [\n    \"local\",\n    \"google\",\n    \"microsoft\",\n    \"apple\"\n  ],\n  \"currency\": \"EUR\",\n  \"theme\": {\n    \"primary_color\": \"#1a73e8\",\n    \"secondary_color\": \"#333333\"\n  },\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ],\n  \"logo_url\": \"https://cdn.example.com/tenant/logo.png\",\n  \"two_factor_auth\": false,\n  \"ai_assistant_company_data\": false,\n  \"ai_files_summary\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/system-settings","description":"<h3>Update system settings</h3><p>Updates permitted domain-level and company-level system attributes for the authenticated tenant. All request payloads are validated prior to persistence; a failed validation results in an error response and no partial update.</p><p>For the tenant subdomain, the request body MUST use the property name <code>domain</code>. A property named <code>name</code>, if present, is not interpreted for subdomain updates on this route. The property name <code>language</code> MUST match the public GET response contract for the same resource.</p><p>The <code>login_method</code> property MUST be a JSON array whose elements are string slugs drawn exclusively from the platform allow list. At the time of publication, the permitted values are: <code>local</code>, <code>google</code>, <code>microsoft</code>, and <code>apple</code>. The request MUST NOT supply the internal JSON envelope that nests the array (that pattern is rejected by this API version). Each submitted slug MUST appear at most once; the array denotes the set of methods enabled for the tenant.</p><p>The <code>currency</code> property is the tenant default ISO currency code (at most three characters); use a <code>code</code> value from <strong>GET</strong> <code>https://pubapi.talenthr.io/v1/currencies</code> (<strong>List currencies</strong>).</p><p>Required company-level attributes in the submitted payload include <code>company_name</code>, <code>theme</code>, and <code>currency</code>. Optional company-level attributes include <code>working_days</code>, <code>logo_url</code> or multipart <code>logo</code>, <code>two_factor_auth</code>, <code>ai_assistant_company_data</code>, and <code>ai_files_summary</code>. If the <code>ai-files-summary</code> subscription feature is not enabled for the tenant, a submitted <code>ai_files_summary</code> field MAY be removed from the request prior to validation.</p><p><strong>Authorization.</strong> The caller MUST possess permission to update system settings for each logical field group represented in the submitted payload.</p>\n\n<hr />\n\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>domain</td>\n<td>string</td>\n<td>yes</td>\n<td>Tenant subdomain hostname. Minimum 4 characters; must match the subdomain pattern (letter first, alphanumeric and hyphens, letter or digit last). Must be unique on the platform and not on the configured blocklist. A body property named <code>name</code> is not used for subdomain updates on this route.</td>\n<td>e.g. <code>example</code></td>\n</tr>\n<tr>\n<td>timezone</td>\n<td>string</td>\n<td>yes</td>\n<td>IANA time zone identifier accepted by the server. Valid identifiers may be retrieved from <code><a href=\"https://pubapi.talenthr.io/v1/timezones\">https://pubapi.talenthr.io/v1/timezones</a></code>.</td>\n<td>e.g. <code>Europe/Athens</code></td>\n</tr>\n<tr>\n<td>language</td>\n<td>string</td>\n<td>yes</td>\n<td>UI language code for an enabled language on the tenant. Valid codes may be retrieved from <code><a href=\"https://pubapi.talenthr.io/v1/languages\">https://pubapi.talenthr.io/v1/languages</a></code>.</td>\n<td>e.g. <code>en</code></td>\n</tr>\n<tr>\n<td>login_method</td>\n<td>array</td>\n<td>yes</td>\n<td>JSON array of enabled authentication method slugs. Supply the array as the direct value of <code>login_method</code>; do not wrap it in an object such as <code>{\"login_method\":[...]}</code>. Each element must be one of: <code>local</code>, <code>google</code>, <code>microsoft</code>, <code>apple</code>.</td>\n<td>e.g. <code>[\"local\",\"google\",\"microsoft\",\"apple\"]</code></td>\n</tr>\n<tr>\n<td>company_name</td>\n<td>string</td>\n<td>yes</td>\n<td>Registered company display name. Maximum 50 characters.</td>\n<td>e.g. <code>Example Company</code></td>\n</tr>\n<tr>\n<td>theme</td>\n<td>object</td>\n<td>yes</td>\n<td>Nested JSON object with exactly <code>primary_color</code> and <code>secondary_color</code>. Each value must be a hexadecimal colour string.</td>\n<td>e.g. <code>{\"primary_color\":\"#1a73e8\",\"secondary_color\":\"#333333\"}</code></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>yes</td>\n<td>Tenant default currency code. Maximum 3 characters; must be an allowed code from the platform currency catalogue (see <strong>List currencies</strong>, <code>GET https://pubapi.talenthr.io/v1/currencies</code>).</td>\n<td>e.g. <code>EUR</code></td>\n</tr>\n<tr>\n<td>working_days</td>\n<td>array</td>\n<td>no</td>\n<td>Optional array of working-day integers <code>1</code> (Monday) through <code>7</code> (Sunday). At most seven entries; each value must be in that range.</td>\n<td>e.g. <code>[1,2,3,4,5]</code></td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>no</td>\n<td>Optional absolute URL for the tenant logo when not uploading a file.</td>\n<td>e.g. <code><a href=\"https://cdn.example.com/tenant/logo.png\">https://cdn.example.com/tenant/logo.png</a></code></td>\n</tr>\n<tr>\n<td>logo</td>\n<td>file</td>\n<td>no</td>\n<td>Optional logo image when using <code>multipart/form-data</code>. Allowed types: PNG, JPEG, or SVG; maximum size 10000 KB.</td>\n<td>file (optional)</td>\n</tr>\n<tr>\n<td>two_factor_auth</td>\n<td>boolean</td>\n<td>no</td>\n<td>Optional two-factor authentication flag for the tenant. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>ai_assistant_company_data</td>\n<td>boolean</td>\n<td>no</td>\n<td>Optional flag for whether the AI assistant may use company data. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>ai_files_summary</td>\n<td>boolean</td>\n<td>no</td>\n<td>Optional AI files summary module flag. When the <code>ai-files-summary</code> subscription feature is not enabled, this field is removed from the request before validation. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["system-settings"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"33e0e23e-ccbc-47cf-b2d4-0bf8ca89fc6e","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"company_name\": \"Example Company\",\n  \"domain\": \"example\",\n  \"language\": \"en\",\n  \"timezone\": \"Europe/Athens\",\n  \"login_method\": [\n    \"local\",\n    \"google\",\n    \"microsoft\",\n    \"apple\"\n  ],\n  \"currency\": \"EUR\",\n  \"theme\": {\n    \"primary_color\": \"#1a73e8\",\n    \"secondary_color\": \"#333333\"\n  },\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ],\n  \"logo_url\": \"https://cdn.example.com/tenant/logo.png\",\n  \"two_factor_auth\": false,\n  \"ai_assistant_company_data\": false,\n  \"ai_files_summary\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/system-settings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"company_name\": \"Example Company\",\n    \"domain\": \"example\",\n    \"language\": \"en\",\n    \"timezone\": \"Europe/Athens\",\n    \"login_method\": [\n      \"local\",\n      \"google\",\n      \"microsoft\",\n      \"apple\"\n    ],\n    \"currency\": \"EUR\",\n    \"logo_url\": \"https://cdn.example.com/tenant/logo.png\",\n    \"theme\": {\n      \"primary_color\": \"#1a73e8\",\n      \"secondary_color\": \"#333333\"\n    },\n    \"working_days\": [\n      1,\n      2,\n      3,\n      4,\n      5\n    ],\n    \"two_factor_auth\": false,\n    \"ai_assistant_company_data\": false,\n    \"ai_files_summary\": false\n  }\n}"},{"id":"7de750bb-ee0c-4eb6-97c2-eebb0c7c57d9","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"company_name\": \"Example Company\",\n  \"domain\": \"example\",\n  \"language\": \"en\",\n  \"timezone\": \"Europe/Athens\",\n  \"login_method\": [\n    \"local\",\n    \"google\",\n    \"microsoft\",\n    \"apple\"\n  ],\n  \"currency\": \"EUR\",\n  \"theme\": {\n    \"primary_color\": \"#1a73e8\",\n    \"secondary_color\": \"#333333\"\n  },\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ],\n  \"logo_url\": \"https://cdn.example.com/tenant/logo.png\",\n  \"two_factor_auth\": false,\n  \"ai_assistant_company_data\": false,\n  \"ai_files_summary\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/system-settings"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"}],"_postman_id":"63fead66-faad-4c1b-b2dd-623f00ef7c19"}],"id":"a3e805da-b83f-432e-a554-d0e105ccca48","_postman_id":"a3e805da-b83f-432e-a554-d0e105ccca48","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Documents structure","item":[{"name":"List default document folders","id":"5224946f-4a71-4231-81aa-a7943aa5cf13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders?offset=<integer>&limit=<integer>&sort=<string>&order=<string>","description":"<h3>List default document folders</h3>\n\n<p>This endpoint returns a paginated list of the tenant’s default employee document folders (<code>data.total</code> and <code>data.rows</code>). Requires permission to list default document folders. Query parameter behaviour is described in the Params list; the saved <strong>OK (200)</strong> example illustrates the response shape.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["domain","default-folders"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0. Non-integer or negative values yield HTTP 422.</p>\n","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>(integer) Optional. Rows per page. Default when omitted: 10. Minimum: 1; maximum: 100 inclusive. Values outside 1–100 yield HTTP 422.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"<p>(string) Optional. Sort field. Allowed: name, created_at, updated_at. Other values are normalized to name.</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort direction. Allowed: asc, desc. Invalid values are normalized to the default for the resource (asc).</p>\n","type":"text/plain"},"key":"order","value":"<string>"}],"variable":[]}},"response":[{"id":"9a13b41a-1b12-42fa-acfc-786a8a593c7b","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 2,\n    \"rows\": [\n      {\n        \"id\": 1,\n        \"employee_id\": null,\n        \"name\": \"Employee Home Folder\",\n        \"slug\": \"employee-home-folder\",\n        \"default_folder\": true,\n        \"is_company_folder\": false,\n        \"is_public\": false,\n        \"created_at\": \"2024-01-08 09:15:00\",\n        \"updated_at\": \"2024-03-01 11:02:00\",\n        \"deleted_at\": null,\n        \"is_editable\": false\n      },\n      {\n        \"id\": 2,\n        \"employee_id\": null,\n        \"name\": \"Onboarding pack\",\n        \"slug\": \"onboarding-pack\",\n        \"default_folder\": true,\n        \"is_company_folder\": false,\n        \"is_public\": false,\n        \"created_at\": \"2024-02-10 14:30:00\",\n        \"updated_at\": \"2024-02-10 14:30:00\",\n        \"deleted_at\": null,\n        \"is_editable\": true\n      }\n    ]\n  }\n}"},{"id":"53c89e16-4d56-4156-99be-28d1dd68ead8","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/domain/default-folders?limit=150","host":["https://pubapi.talenthr.io/v1"],"path":["domain","default-folders"],"query":[{"key":"limit","value":"150"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The limit must not be greater than 100.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"limit\": [\n      \"The limit must not be greater than 100.\"\n    ]\n  }\n}"},{"id":"7271cc5e-37e4-4280-8ae2-c5170efa118a","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"30087454-3b92-4cc9-8c65-09fb70c10c61","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"5224946f-4a71-4231-81aa-a7943aa5cf13"},{"name":"Get default document folder","id":"d1055200-79f3-41ae-9e65-f35697cc03b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/:default_document_folder","description":"<h3>Get default document folder</h3>\n\n<p>This endpoint returns one default employee document folder, including aggregated <code>permissions</code> rows for folder view/edit by user role (same shape as create and update success payloads). Requires permission to view default document folders. The saved <strong>OK (200)</strong> example illustrates the response shape.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["domain","default-folders",":default_document_folder"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Default document folder id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"default_document_folder"}]}},"response":[{"id":"bbe89170-e271-4622-a85c-c9cccba5d03f","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/domain/default-folders/:default_document_folder","host":["https://pubapi.talenthr.io/v1"],"path":["domain","default-folders",":default_document_folder"],"variable":[{"key":"default_document_folder","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"employee_id\": null,\n    \"name\": \"Onboarding pack\",\n    \"slug\": \"onboarding-pack\",\n    \"default_folder\": true,\n    \"is_company_folder\": false,\n    \"is_public\": false,\n    \"created_at\": \"2024-02-10 14:30:00\",\n    \"updated_at\": \"2024-02-10 14:30:00\",\n    \"deleted_at\": null,\n    \"is_editable\": true,\n    \"permissions\": [\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"view\",\n        \"value\": true,\n        \"condition\": \"all\"\n      },\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"edit\",\n        \"value\": true,\n        \"condition\": \"self,manager\"\n      }\n    ]\n  }\n}"},{"id":"b3501810-5cf8-44dc-b23a-d813b5cbcf40","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\DefaultDocumentFolder] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"df3e4470-c023-432a-8d6c-a5a8354cd93f","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/domain/default-folders/:default_document_folder","host":["https://pubapi.talenthr.io/v1"],"path":["domain","default-folders",":default_document_folder"],"variable":[{"key":"default_document_folder","value":"2"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"afb1fe30-22ba-409f-acf8-a25ca537a8a4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/domain/default-folders/:default_document_folder","host":["https://pubapi.talenthr.io/v1"],"path":["domain","default-folders",":default_document_folder"],"variable":[{"key":"default_document_folder","value":"2"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"d1055200-79f3-41ae-9e65-f35697cc03b6"},{"name":"Create default document folder","id":"c1ca32f9-f9d9-44c5-acb8-516c73af1554","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\",\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": [\"self\", \"manager\"]}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders","description":"<h3>Create default document folder</h3>\n\n<p>Creates a default employee document folder with a display name and role-based permissions for who can view and edit documents in that folder.</p>\n<p>Requires permission to create default document folders.</p>\n<p>Use <strong>List user roles</strong> (GET <a href=\"https://pubapi.talenthr.io/v1/user-roles\">https://pubapi.talenthr.io/v1/user-roles</a>) for <code>user_role_id</code> values. Use <strong>Get type and permission values</strong> (GET <a href=\"https://pubapi.talenthr.io/v1/custom-fields-values\">https://pubapi.talenthr.io/v1/custom-fields-values</a>) for allowed <code>action</code> and <code>condition</code> tokens under <code>data.permission_values</code>.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Folder display name. Maximum 128 characters; must satisfy tenant filename rules and be unique among default folders.</td>\n<td>e.g. <code>HR policies</code></td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>array</td>\n<td>yes</td>\n<td>Access rules by user role for folder view and edit. Send as a JSON array (a JSON string is also accepted). Each object: <code>user_role_id</code> (from <strong>List user roles</strong>), <code>action</code> (<code>view</code> or <code>edit</code>), and <code>condition</code> (string, array of permitted tokens, or <code>null</code>). Allowed <code>action</code> and <code>condition</code> values are in <strong>Get type and permission values</strong> under <code>data.permission_values</code>. Do not send <code>resource</code> or <code>value</code> in the request body.</td>\n<td>e.g. <code>[{\"user_role_id\":5,\"action\":\"view\",\"condition\":\"all\"},{\"user_role_id\":5,\"action\":\"edit\",\"condition\":[\"self\",\"manager\"]}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>There are no path parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["domain","default-folders"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"1212c231-50bb-4cf5-bb66-b55bd9b935c5","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\",\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": [\"self\", \"manager\"]}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 701,\n    \"employee_id\": null,\n    \"name\": \"HR policies\",\n    \"slug\": \"hr-policies\",\n    \"default_folder\": true,\n    \"is_company_folder\": false,\n    \"is_public\": false,\n    \"created_at\": \"2026-05-06 09:30:00\",\n    \"updated_at\": \"2026-05-06 09:30:00\",\n    \"deleted_at\": null,\n    \"is_editable\": true,\n    \"permissions\": [\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"view\",\n        \"value\": true,\n        \"condition\": \"all\"\n      },\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"edit\",\n        \"value\": true,\n        \"condition\": \"self,manager\"\n      }\n    ]\n  }\n}"},{"id":"98738e86-2297-42bb-8116-3599713fd42f","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The permissions field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"permissions\": [\n      \"The permissions field is required.\"\n    ]\n  }\n}"},{"id":"cc87ec39-992b-48ca-bfa7-d0391e0bdcaf","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\",\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": \"all\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"a17c3399-d2eb-4e86-9e51-130235758d04","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\",\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": \"all\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c1ca32f9-f9d9-44c5-acb8-516c73af1554"},{"name":"Update default document folder","id":"a9628dae-bf0d-4be6-84e5-49647d9f92fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies (revision 2)\",\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": \"self\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders/:default_document_folder","description":"<h3>Update default document folder</h3>\n\n<p>Updates a default employee document folder identified in the path. Replaces the folder display name (when allowed) and the permission matrix for folder view and edit.</p>\n<p>Requires permission to update default document folders.</p>\n<p>For the system folder with slug <code>employee-home-folder</code>, permission changes are applied; a submitted <code>name</code> is not persisted.</p>\n<p>Use <strong>List user roles</strong> (GET <a href=\"https://pubapi.talenthr.io/v1/user-roles\">https://pubapi.talenthr.io/v1/user-roles</a>) for <code>user_role_id</code> values. Use <strong>Get type and permission values</strong> (GET <a href=\"https://pubapi.talenthr.io/v1/custom-fields-values\">https://pubapi.talenthr.io/v1/custom-fields-values</a>) for allowed <code>action</code> and <code>condition</code> tokens under <code>data.permission_values</code>.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Folder display name. Maximum 128 characters; must satisfy tenant filename rules and be unique among default folders. Not persisted when the folder slug is <code>employee-home-folder</code>.</td>\n<td>e.g. <code>HR policies (revision 2)</code></td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>array</td>\n<td>yes</td>\n<td>Access rules by user role for folder view and edit. Send as a JSON array (a JSON string is also accepted). Each object: <code>user_role_id</code> (from <strong>List user roles</strong>), <code>action</code> (<code>view</code> or <code>edit</code>), and <code>condition</code> (string, array of permitted tokens, or <code>null</code>). Allowed <code>action</code> and <code>condition</code> values are in <strong>Get type and permission values</strong> under <code>data.permission_values</code>. Do not send <code>resource</code> or <code>value</code> in the request body.</td>\n<td>e.g. <code>[{\"user_role_id\":5,\"action\":\"view\",\"condition\":\"all\"},{\"user_role_id\":5,\"action\":\"edit\",\"condition\":[\"self\",\"manager\"]}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["domain","default-folders",":default_document_folder"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Default document folder id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"default_document_folder"}]}},"response":[{"id":"888693bb-da12-4db9-bcfe-7591df0cb842","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies (revision 2)\",\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": \"self\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 701,\n    \"employee_id\": null,\n    \"name\": \"HR policies (revision 2)\",\n    \"slug\": \"hr-policies\",\n    \"default_folder\": true,\n    \"is_company_folder\": false,\n    \"is_public\": false,\n    \"created_at\": \"2026-05-06 09:30:00\",\n    \"updated_at\": \"2026-05-06 11:05:22\",\n    \"deleted_at\": null,\n    \"is_editable\": true,\n    \"permissions\": [\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"view\",\n        \"value\": true,\n        \"condition\": \"all\"\n      },\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"edit\",\n        \"value\": true,\n        \"condition\": \"self\"\n      }\n    ]\n  }\n}"},{"id":"01bf6e50-81bf-48fc-b36c-a968155af830","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The permissions field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"permissions\": [\n      \"The permissions field is required.\"\n    ]\n  }\n}"},{"id":"e5a5a5eb-37b1-4a1b-b5be-0159b6d1ec86","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"X\",\n  \"permissions\": [{\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"}]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders/999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\DefaultDocumentFolder] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"b2794bf6-f9e7-4e62-b953-f2faba0504a2","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\",\n  \"permissions\": [{\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"}]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"4b9d526b-8199-457f-bf6d-3541ddd55d5a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\",\n  \"permissions\": [{\"user_role_id\": 5, \"action\": \"view\", \"condition\": \"all\"}]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"a9628dae-bf0d-4be6-84e5-49647d9f92fe"},{"name":"Delete default document folder","id":"d4eab765-ef01-4a4e-bdef-99f0d1267bf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/:default_document_folder?force=<integer>","description":"<h3>Delete default document folder</h3>\n\n<p>This endpoint removes the default folder identified in the path. On success returns a boolean flag in <strong><code>success</code></strong>. Use the Params list for the optional query flag; <strong>Not found</strong> (<strong>HTTP 404</strong>) and <strong>Conflict</strong> (<strong>HTTP 409</strong>) examples are illustrative.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["domain","default-folders",":default_document_folder"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. When set to <strong>1</strong>, allows deleting a folder that still contains documents. When omitted or <strong>0</strong>, the API rejects deletion with HTTP <strong>409</strong> if any documents remain. The Employee Home Folder is never deletable regardless of force.</p>\n","type":"text/plain"},"key":"force","value":"<integer>"}],"variable":[{"description":{"content":"<p>(integer) Default document folder id to delete.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"default_document_folder"}]}},"response":[{"id":"b063f38a-9618-4710-804e-f96dbd6c0988","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"85f68aa6-1add-4b97-9916-bc3b27029359","name":"Conflict (409) — folder_not_empty","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Non empty folder can't be deleted.\",\n    \"hr_code\": 11,\n    \"hr_code_key\": \"folder_not_empty\",\n    \"code\": 409\n  }\n}"},{"id":"18d018ed-96d9-40c8-80f6-836a4ab1b1e4","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\DefaultDocumentFolder] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"b7a0e90e-9ee5-427a-8df0-2b84b446f96b","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"394c2223-ba8c-4145-ac0a-74ee6c35ae81","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/domain/default-folders/701"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"d4eab765-ef01-4a4e-bdef-99f0d1267bf9"}],"id":"f787a498-c502-4399-b80b-510a59bd2d22","_postman_id":"f787a498-c502-4399-b80b-510a59bd2d22","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Employee","item":[{"name":"Create an employee (Hire)","id":"bd602499-4f22-4951-b7d1-22626c7ce30c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\", // (Required) Maximum character limit: 191 characters.\n  \"last_name\": \"<string>\", // (Required) Maximum character limit: 191 characters.\n  \"email\": \"<string>\", // (Required) It has to be valid email format and structure. Maximum character limit: 191 characters. The email has to be unique.\n  \"hire_date\": \"<date>\", // (Required) The hire date must be formatted as 'YYYY-MM-DD'.\n  \"employment_status\": { // (Required) Object with properties: employment_status_id (integer).\n    \"employment_status_id\": \"<integer>\"  // The employment status Id\n  },\n  \"reports_to_employee_id\": \"<integer>\", // (Required) If the reports_to_employee_id is 'null' then the current employee will be the head of the company.\n  \"job_record\": { // Object with properties: job_title_id (integer,nullable), location_id (integer,nullable), division_id (integer,nullable), department_id (integer,nullable).\n    \"job_title_id\": \"<integer>\", // Job Title Id\n    \"location_id\": \"<integer>\", // Location Id\n    \"division_id\": \"<integer>\", // Division Id\n    \"department_id\": \"<integer>\" // Department Id\n  },\n  \"compensation_record\": { // Object with properties: pay_rate (integer), pay_rate_period (enum,nullable) , pay_schedule (enum,nullable), overtime_status (enum,nullable)\n    \"pay_rate\": \"<integer>\", // Employee's wage and must have 2 decimals. E.g 1255.38\n    \"pay_rate_period\": \"<string>\", // Enum value [hour, day, week, month, quarter, year]. The period over which money is earned.\n    \"pay_rate_schedule\": \"<string>\", // Enum value [once-per-month, twice-per-month, every-other-week]. Frequency of the wage.\n    \"overtime_status\": \"<string>\" // Enum value [exempt, non-exempt]. Determining whether an employee is exempt or non-exempt from overtime regulations.\n  },\n  \"prevent_email\": \"<boolean>\", // Opt for 'true', if you don't want to send an invitation email to the hiring employee, else 'false'..\n  \"is_existing\": \"<boolean>\", // Opt for 'false' if the employee is a new hire and you want to run the Automatic Onboarding process, else 'true'.\n  \"hire_packet\": { // Info for the new hire. Object with properties: who_id (integer), address (string), when_time (date-time), instructions (string)\n    \"who_id\": \"<integer>\", // The employee who will meet the newly hired employee.  Required if when_time and address is present.\n    \"address\": \"<string>\", // The address where the meeting will take place. Required if who_id and _when_time is present. Maximum character limit: 20000 characters.\n    \"when_time\": \"<date-time>\", // The date time that the meeting will take place.  Required if who_id and address is present. The hire date must be formatted as 'YYYY-MM-DD HH:II'.\n    \"instructions\": \"<string>\" // Important Instructions for the newly hired employee.  Maximum character limit: 250 characters.\n  }\n\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/hire","description":"<h3>API Endpoint to create an employee.</h3>\n\n<p>This API endpoint facilitates the creation of an employee within the system. When creating an employee, it's necessary to provide essential personal information such as first name, last name, and email address. Additionally, the endpoint requires details regarding the employee's hire date, employment status, and manager.</p>\n<p>When we are adding a new employee, we should avoid creating loops or circles in the organization hierarchy.</p>\n<p>If the <code>is_existing</code> parameter is set to true the onboarding process is bypassed. Otherwise, if it's set to false, the employee is considered a new hire, and the system initiates the onboarding process for the newly hired employee.</p>\n<p>In cases where no manager is specified, the employee becomes the head of the company hierarchy.</p>\n<p>You can choose to disable the initial system invite.</p>\n<p>In case you want to provide some additional information on onboarding new hires at the organization, you should fill in the hire packet object with the necessary information. This allow you to send an a email to the hiring employee containing detailed instructions for their first day of work.</p>\n<hr />\n<p>After the successful creation of a newly hired employee's profile, an email is dispatched to the new hire containing essential information required for registering with the domain. This includes details such as login credentials, and any other relevant information to facilitate their smooth integration into the company's systems. Additionally, emails are sent to existing employees who are assigned the responsibility of conducting the onboarding tasks for the new employee.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. John</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. Doe</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>true</td>\n<td>It has to be valid email format and structure. Maximum character limit: 191 characters. The email has to be unique.</td>\n<td>e.g. <a href=\"https://mailto:john.doe@example.com\">john.doe@example.com</a></td>\n</tr>\n<tr>\n<td>hire_date</td>\n<td>date</td>\n<td>true</td>\n<td>The hire date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-01-10</td>\n</tr>\n<tr>\n<td>reports_to_employee_id</td>\n<td>integer</td>\n<td>true</td>\n<td>The employee Id that will be the manager of the current employee. If the reports_to_employee_id is 'null' then the current employee will be the head of the company.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_status</td>\n<td>object</td>\n<td>true</td>\n<td>Object with properties: employment_status_id (integer).</td>\n<td>e.g. {\"employment_status_id\": 1}</td>\n</tr>\n<tr>\n<td>job_record</td>\n<td>object</td>\n<td>false</td>\n<td>Object with properties: job_title_id (integer,nullable), location_id (integer,nullable), division_id (integer,nullable), department_id (integer,nullable). All the variables must be present.</td>\n<td>e.g. {\"job_title_id\": 1, \"location_id\": 12,  <br />\"division_id\":null,  <br />\"department_id\":20}</td>\n</tr>\n<tr>\n<td>compensation_record</td>\n<td>object</td>\n<td>false</td>\n<td>Object with properties: pay_rate (integer), pay_rate_period (enum,nullable) [hour, day, week, month, quarter, year], pay_schedule (enum,nullable) [once-per-month, twice-per-month, every-other-week], overtime_status (enum,nullable) [exempt, non-exempt]</td>\n<td>e.g. {\"pay_rate\": 1000, \"pay_rate_period\": \"day\", \"pay_schedule\":\"once-per-month\", \"overtime_status\":null}</td>\n</tr>\n<tr>\n<td>prevent_email</td>\n<td>boolean</td>\n<td>false</td>\n<td>Opt for 'true', if you don't want to send an invitation email to the hiring employee, else 'false'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_existing</td>\n<td>boolean</td>\n<td>false</td>\n<td>Opt for 'false' if the employee is a new hire and you want to run the Automatic Onboarding process, else 'true'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>hire_packet</td>\n<td>object</td>\n<td>false</td>\n<td>Info for the new hire.Object with properties: who_id (integer, id of employees), address (string), when_time (date-time), instructions (string)</td>\n<td>e.g. {\"who-id\":1, \"address\": \"Random Str 123A\", \"when_time\":\"2024-03-10 17:00\", \"instructions\": \"These are some instructions...\"}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees","hire"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"cc259a18-e923-4394-9913-f7e324e824dc","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\",\n  \"last_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"hire_date\": \"<date>\",\n  \"employment_status\": {\n    \"employment_status_id\": \"<integer>\"\n  },\n  \"reports_to_employee_id\": \"<integer>\",\n  \"job_record\": {\n    \"job_title_id\": \"<integer>\",\n    \"location_id\": \"<integer>\",\n    \"division_id\": \"<integer>\",\n    \"department_id\": \"<integer>\"\n  },\n  \"compensation_record\": {\n    \"pay_rate\": \"<integer>\",\n    \"pay_rate_period\": \"<string>\",\n    \"pay_rate_schedule\": \"<string>\",\n    \"overtime_status\": \"<string>\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/hire"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"hire_date_utc\": \"2024-02-28 22:00:00\",\n    \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png...\",\n    \"hire_date\": \"2024-02-29\",\n    \"id\": 41,\n    \"user_role\": {\n      \"id\": 3,\n      \"name\": \"Employee\",\n      \"slug\": \"employee\"\n    },\n    \"seniority\": {\n      \"years\": 0,\n      \"months\": 0,\n      \"days\": 0\n    },\n    \"termination_reason\": \"\",\n    \"custom_fields\": [],\n    \"default_avatar\": true,\n    \"location_name\": null,\n    \"division_name\": null,\n    \"department_name\": null,\n    \"job_title_name\": null,\n    \"short_manager\": {\n      \"manager_id\": 15,\n      \"manager_name\": \"Black Mia\",\n      \"manager_employee_number\": null,\n      \"location_name\": \"Athens\",\n      \"department_name\": \"Administration & Operations\",\n      \"division_name\": \"Europe\",\n      \"job_title_name\": \"Administrative Assistant\",\n      \"linked_in_url\": null,\n      \"work_phone\": \"work-phone\",\n      \"email\": \"mblack@example.com\",\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg...\",\n      \"is_me\": false\n    },\n    \"is_terminated\": false,\n    \"visa_status\": null,\n    \"user\": {\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"middle_name\": null,\n      \"email\": \"john.doe@example.com\",\n      \"last_login_at\": null\n    },\n    \"hire_packet\": {\n      \"id\": 5,\n      \"employee_id\": 41,\n      \"who_id\": 15,\n      \"instructions\": \"these are instructions...\",\n      \"address\": \"address-name\",\n      \"when_time\": \"2024-03-01 00:00:00\",\n      \"timezone\": \"Europe/Athens\",\n      \"created_at\": \"2024-02-29T10:37:33.000000Z\",\n      \"updated_at\": \"2024-02-29T10:37:33.000000Z\",\n      \"deleted_at\": null,\n      \"who\": {\n        \"id\": 15,\n        \"user_id\": 15,\n        \"user\": {\n          \"id\": 15,\n          \"first_name\": \"Mia\",\n          \"last_name\": \"Black\"\n        }\n      }\n    },\n    \"emergency_contact\": null\n  }\n}"},{"id":"549672db-5358-44d3-8e7e-4630dd239392","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\",\n  \"last_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"hire_date\": \"<date>\",\n  \"employment_status\": {\n    \"employment_status_id\": \"<integer>\"\n  },\n  \"reports_to_employee_id\": \"<integer>\",\n  \"job_record\": {\n    \"job_title_id\": \"<integer>\",\n    \"location_id\": \"<integer>\",\n    \"division_id\": \"<integer>\",\n    \"department_id\": \"<integer>\"\n  },\n  \"compensation_record\": {\n    \"pay_rate\": \"<integer>\",\n    \"pay_rate_period\": \"<string>\",\n    \"pay_rate_schedule\": \"<string>\",\n    \"overtime_status\": \"<string>\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/hire"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"bd602499-4f22-4951-b7d1-22626c7ce30c"},{"name":"Get an employee","id":"4a952261-0b07-43d9-a42e-467974c55a17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee","description":"<h3>API Endpoint to get the information of an employee.</h3>\n\n<p>This API endpoint retrieves the basic information of a specific employee from the system based on the provided employee ID.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"7c311895-17ad-4024-9c97-13fbc9abe9a0","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 15,\n  \"ssn\": null,\n  \"birth_date\": \"1997-05-30\",\n  \"hire_date\": \"2012-01-02\",\n  \"hire_date_utc\": \"2012-01-02 14:45:25\",\n  \"personal_email\": \"johndoe@example.com\",\n  \"marital_status\": null,\n  \"nationality\": null,\n  \"work_phone\": \"phone-number\",\n  \"country\": null,\n  \"address\": null,\n  \"postal_code\": null,\n  \"city\": null,\n  \"linked_in_url\": null,\n  \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg...\",\n  \"citizenship\": null,\n  \"termination_date\": null,\n  \"gender\": \"Male\",\n  \"job_title_id\": 25,\n  \"division_id\": 13,\n  \"department_id\": 6,\n  \"location_id\": 36,\n  \"employee_number\": null,\n  \"user_role\": {\n    \"id\": 3,\n    \"name\": \"Employee\",\n    \"slug\": \"employee\"\n  },\n  \"seniority\": {\n    \"years\": 12,\n    \"months\": 1,\n    \"days\": 27\n  },\n  \"termination_reason\": \"\",\n  \"custom_fields\": [\n    {\n      \"custom_field_id\": 47,\n      \"custom_field_slug\": \"custom-field-001\",\n      \"custom_field_name\": \"Custom Field 001\",\n      \"values\": [\n        {\n          \"value\": \"https://www.mydomain.com/custom-fields\"\n        }\n      ]\n    }\n  ],\n  \"default_avatar\": false,\n  \"location_name\": \"Athens\",\n  \"division_name\": \"Europe\",\n  \"department_name\": \"Administration & Operations\",\n  \"job_title_name\": \"Administrative Assistant\",\n  \"short_manager\": {\n    \"manager_id\": 1,\n    \"manager_name\": \"Mia Black\",\n    \"manager_employee_number\": null,\n    \"location_name\": \"Athens\",\n    \"department_name\": \"Administration & Operations\",\n    \"division_name\": \"Europe\",\n    \"job_title_name\": \"Chief Executive Officer\",\n    \"linked_in_url\": null,\n    \"work_phone\": \"work-phone\",\n    \"email\": \"mblack@example.com\",\n    \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1700059519_NNcbnWBX.jpg...\",\n    \"is_me\": true\n  },\n  \"is_terminated\": false,\n  \"user\": {\n    \"first_name\": \"Doe\",\n    \"last_name\": \"John\",\n    \"middle_name\": null,\n    \"email\": \"johndoe@example.com\",\n    \"last_login_at\": \"2023-11-15 16:47:50\"\n  },\n  \"hire_packet\": null,\n  \"emergency_contact\": {\n    \"id\": 13,\n    \"employee_id\": 15,\n    \"relationship_type_id\": 2,\n    \"full_name\": \"Susan Doe\",\n    \"phone\": \"phone-number\",\n    \"address\": \"address-name\",\n    \"created_at\": \"2024-02-29T11:58:38.000000Z\",\n    \"updated_at\": \"2024-02-29T11:58:38.000000Z\",\n    \"deleted_at\": null\n  }\n}"},{"id":"b0985838-6edf-4669-a778-8c1248858260","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"4a952261-0b07-43d9-a42e-467974c55a17"},{"name":"Update an employee","id":"a9834678-5272-4cae-a620-cd615f511a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\", // (Required) Maximum character limit: 191 characters.\n  \"last_name\": \"<string>\", // (Required) Maximum character limit: 191 characters.\n  \"email\": \"<string>\", // (Required) It has to be valid email format and structure. Maximum character limit: 191 characters. The email has to be unique.\n  \"ssn\": \"<string>\", // Maximum character limit: 191 characters.\n  \"birth_date\": \"<date>\", // The birth date must be formatted as 'YYYY-MM-DD' and must be between now and  1930-01-01.\n  \"personal_email\": \"<string>\", // It has to be valid email format and structure. Maximum character limit: 191 characters. The email has to be unique (among personal emails).\n  \"marital_status\": \"<string>\", // Enum value [Single, Separated, Married, Widowed]\n  \"gender\": \"<string>\", // Enum value [Male, Female, Non-binary]\n  \"nationality\": \"<string>\", // This must be a valid nationality from the provided 'nationalities' of the system.\n  \"citizenship\": \"<string>\", // This must be a valid citizenship from the provided 'citizenships' of the system.\n  \"work_phone\": \"<string>\", // Maximum character limit: 191 characters.\n  \"mobile_phone\": \"<string>\", // Maximum character limit: 191 characters.\n  \"phone\": \"<string>\", // Maximum character limit: 191 characters.\n  \"address\": \"<string>\", // Maximum character limit: 191 characters.\n  \"country\": \"<string>\", // This must be a valid country from the provided 'countries' of the system.\n  \"postal_code\": \"<string>\", // Maximum character limit: 191 characters.\n  \"city\": \"<string>\", // Maximum character limit: 191 characters.\n  \"reports_to_employee_id\": \"<string>\", // The Id of the employee that is the manager of the current employee. In case of null the employee is the head of the company.\n  \"emergency_contact\": {\n    \"full_name\": \"<string>\",\n    \"relationship_type_id\": \"<integer>\", // This must be a valid relationship type from the provided 'relationship-types' of the system.\n    \"phone\": \"<string>\",\n    \"address\": \"<string>\"\n  },\n  \"linked_in_url\": \"<string>\", // This has to be a valid URL.\n  \"employee_number\": \"<string>\", // Maximum character limit: 191 characters.\n  \"passport_number\": \"<string>\", // Pre-existing field. Maximum character limit: 64 characters.\n  \"passport_issued_date\": \"<date>\", // Pre-existing field. The passport's issued date must be formatted as 'YYYY-MM-DD' and must be before or equal today's date.\n  \"passport_expiry_date\": \"<date>\", // Pre-existing field. The passport's expiry date must be formatted as 'YYYY-MM-DD'.\n  \"passport_issuing_country\": \"<nullable>\", // Pre-existing field. Maximum character limit: 191 characters. This value must be a valid country from the provided 'countries' of the system.\n  \"visa_type\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters.\n  \"visa_number\": \"<string>\", // Pre-existing field. Maximum character limit: 64 characters.\n  \"visa_expiry_date\": \"<date>\", // Pre-existing field. The visa's expiry date must be formatted as 'YYYY-MM-DD'.\n  \"driver_license_number\": \"<string>\", // Pre-existing field. Maximum character limit: 64 characters.\n  \"driver_license_issued_date\": \"<date>\", // Pre-existing field. The license's issued date must be formatted as 'YYYY-MM-DD'.\n  \"driver_license_expiry_date\": \"<date>\", // Pre-existing field. The license's expiry date must be formatted as 'YYYY-MM-DD'.\n  \"driver_license_issuing_country\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value must be a valid country from the provided 'countries' of the system.\n  \"sec_address\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters.\n  \"sec_city\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters.\n  \"sec_postal_code\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters.\n  \"sec_country\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value must be a valid country from the provided 'countries' of the system.\n  \"twitter_url\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.\n  \"facebook_url\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.\n  \"instagram_url\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.\n  \"pinterest_url\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.\n  \"github_url\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.\n  \"behance_url\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.\n  \"skype_name\": \"<string>\", // Pre-existing field. Maximum character limit: 191 characters.\n  \"shirt_size\": \"<integer>\", // Pre-existing field. The Id of shirt sizes.\n  \"t_shirt_size\": \"<integer>\", // Pre-existing field. The Id of t-shirt sizes.\n  \"hr_languages\": [ // Pre-existing field. Array of integers with the hr-languages' Ids.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"hr_family\": [ // Pre-existing field. Array of objects with the family members of the current employee.\n    {\n        \"name\": \"<string>\", // Maximum character limit: 191 characters.\n        \"gender\": \"<string>\", // Enum value [Male, Female, Non-binary]\n        \"birth_date\": \"date\", // The birth date must be formatted as 'YYYY-MM-DD'.\n        \"family_member_relationship_id\": \"<integer>\" // This value must be a valid relationship from the provided 'relationship_types' of the system.\n    }\n  ],\n  \"allergies\": \"<string>\", // Pre-existing field. Maximum character limit: 4000 characters.\n  \"prevent_email\": \"<boolean>\",\n  \"custom_field_01\": \"<string>\", // Custom Field (Type: Text). Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_02\": \"<string>\", // Custom Field (Type: Long Text). Maximum character limit: 5000 characters. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_03\": \"<integer>\", // Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_04\": [ // Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"custom_field_05\": \"<string>\", // Custom Field (Type: Date). The custom-field's date must be formatted as 'YYYY-MM-DD'. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_06\": \"<string>\", // Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_07\": \"<integer>\"  // Custom Field (Type: Employee). This custom field must contain the Id of the Employee. The custom field's name (key) corresponds to the slug of the custom field.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee","description":"<h3>API Endpoint to update the information of an employee.</h3>\n\n<p>This API endpoint enables the updating of an employee's information within the system based on the provided employee ID. You can modify various aspects of an employee's record, including personal details, contact information, designation, and any other relevant data stored within the system.</p>\n<hr />\n<p>When updating an employee's profile, you can modify the custom fields associated with that employee. However, it is important to note that the availability of this feature is dependent on your TalentHR subscription (Refer to the Introductory chapter for further details). The custom fields associated with an employee can be retrieved using the '<strong>Get employee's custom fields</strong>' endpoint.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. John</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. Doe</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>true</td>\n<td>It has to be a valid email format and structure. Maximum character limit: 191 characters. The email has to be unique.</td>\n<td>e.g. <a href=\"https://mailto:john.doe@example.com\">john.doe@example.com</a></td>\n</tr>\n<tr>\n<td>ssn</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. 123-45-6789</td>\n</tr>\n<tr>\n<td>birth_date</td>\n<td>date</td>\n<td>false</td>\n<td>The birth date must be formatted as 'YYYY-MM-DD' and must be between now and 1930-01-01.</td>\n<td>e.g. 1997-11-05</td>\n</tr>\n<tr>\n<td>personal_email</td>\n<td>string</td>\n<td>false</td>\n<td>It has to be a valid email format and structure. Maximum character limit: 191 characters. The email has to be unique (among personal emails).</td>\n<td>-</td>\n</tr>\n<tr>\n<td>marital_status</td>\n<td>enum</td>\n<td>false</td>\n<td>-</td>\n<td>Single, Separated, Married, Widowed</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>enum</td>\n<td>false</td>\n<td>-</td>\n<td>Male, Female, Non-binary</td>\n</tr>\n<tr>\n<td>nationality</td>\n<td>string</td>\n<td>false</td>\n<td>This must be a valid nationality from the provided 'nationalities' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>citizenship</td>\n<td>string</td>\n<td>false</td>\n<td>This must be a valid citizenship from the provided 'citizenships' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>work_phone</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>mobile_phone</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>false</td>\n<td>This must be a valid country from the provided 'countries' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>reports_to_employee_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The Id of the employee that is the manager of the current employee. In case of null the employee is the head of the company.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>emergency_contact</td>\n<td>object</td>\n<td>false</td>\n<td>Object with properties: full_name (string), relationship_type_id (integer, This must be a valid relationship type from the provided 'relationship-types' of the system.), address (string), phone (string)</td>\n<td>e.g. {\"full_name\": \"John Doe\", \"relationship_type_id\": 1, \"address\": \"Random Str 123A\", \"phone\" : \"00302101234567\"}</td>\n</tr>\n<tr>\n<td>linked_in_url</td>\n<td>string</td>\n<td>false</td>\n<td>This has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employee_number</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>passport_number</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 64 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>passport_issued_date</td>\n<td>date</td>\n<td>false</td>\n<td>Pre-existing field. The passport's issued date must be formatted as 'YYYY-MM-DD' and must be before or equal to today's date.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>passport_expiry_date</td>\n<td>date</td>\n<td>false</td>\n<td>Pre-existing field. The passport's expiry date must be formatted as 'YYYY-MM-DD'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>passport_issuing_country</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value must be a valid country from the provided 'countries' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>visa_type</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>visa_number</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 64 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>visa_expiry_date</td>\n<td>date</td>\n<td>false</td>\n<td>Pre-existing field. The visa's expiry date must be formatted as 'YYYY-MM-DD'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>driver_license_number</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 64 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>driver_license_issued_date</td>\n<td>date</td>\n<td>false</td>\n<td>Pre-existing field. The license's issued date must be formatted as 'YYYY-MM-DD'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>driver_license_expiry_date</td>\n<td>date</td>\n<td>false</td>\n<td>Pre-existing field. The license's issued date must be formatted as 'YYYY-MM-DD'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>driver_license_issuing_country</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value must be a valid country from the provided 'countries' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>sec_address</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>sec_city</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>sec_postal_code</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>sec_country</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value must be a valid country from the provided 'countries' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>twitter_url</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>facebook_url</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>instagram_url</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>pinterest_url</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>github_url</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>behance_url</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters. This value has to be a valid URL.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>skype_name</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>shirt_size</td>\n<td>integer</td>\n<td>false</td>\n<td>Pre-existing field. The ID of shirt sizes.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>t_shirt_size</td>\n<td>integer</td>\n<td>false</td>\n<td>Pre-existing field. The ID of t-shirt sizes.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>hr_languages</td>\n<td>array</td>\n<td>false</td>\n<td>Pre-existing field. Array of integers with the hr-languages' Ids.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>hr_family</td>\n<td>array</td>\n<td>false</td>\n<td>Array of objects with the family members. Object properties: name (string), gender (enum) [Male, Female, Non-binary], birth_date (date), family_member_relationship_id (integer)</td>\n<td>e.g. [{\"name\":\"John Doe\", \"gender\": \"Male\", \"birth_date\": \"1986-10-20\", \"family_member_relationship_id\":1}]</td>\n</tr>\n<tr>\n<td>allergies</td>\n<td>string</td>\n<td>false</td>\n<td>Pre-existing field. Maximum character limit: 4000 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>custom_field_01</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Text). Maximum character limit: 255 characters.</td>\n<td>e.g. \"This is a text...\"</td>\n</tr>\n<tr>\n<td>custom_field_02</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Long Text). Maximum character limit: 5000 characters.</td>\n<td>e.g. \"This is a long text...\"</td>\n</tr>\n<tr>\n<td>custom_field_03</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options.</td>\n<td>e.g. 3</td>\n</tr>\n<tr>\n<td>custom_field_04</td>\n<td>array</td>\n<td>false</td>\n<td>Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options.</td>\n<td>e.g. [3,4]</td>\n</tr>\n<tr>\n<td>custom_field_05</td>\n<td>date</td>\n<td>false</td>\n<td>Custom Field (Type: Date). The custom field's date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-03-10</td>\n</tr>\n<tr>\n<td>custom_field_06</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters.</td>\n<td>e.g. \"<a href=\"https://www.domainexample.com/\">https://www.domainexample.com/\"</a></td>\n</tr>\n<tr>\n<td>custom_field_07</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Employee). This custom field must contain the Id of the Employee.</td>\n<td>e.g. 1</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"9c300805-5bbf-417d-b0bd-49146bdf495d","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\",\n  \"last_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"ssn\": \"<string>\",\n  \"birth_date\": \"<date>\",\n  \"hire_date\": \"<date>\",\n  \"personal_email\": \"<string>\",\n  \"marital_status\": \"<string>\",\n  \"gender\": \"<string>\",\n  \"nationality\": \"<string>\",\n  \"citizenship\": \"<string>\",\n  \"ethnicity\": \"<string>\",\n  \"work_phone\": \"<string>\",\n  \"mobile_phone\": \"<string>\",\n  \"phone\": \"<string>\",\n  \"address\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postal_code\": \"<string>\",\n  \"city\": \"<string>\",\n  \"reports_to_employee_id\": \"<string>\",\n  \"emergency_contact\": {\n    \"full_name\": \"<string>\",\n    \"relationship_type_id\": \"<integer>\",\n    \"phone\": \"<string>\",\n    \"address\": \"<string>\"\n  },\n  \"linked_in_url\": \"<string>\",\n  \"is_existing\": \"<boolean>\",\n  \"employee_number\": \"<string>\",\n  \"passport_number\": \"<string>\",\n  \"passport_issued_date\": \"<date>\",\n  \"passport_expiry_date\": \"<date>\",\n  \"passport_issuing_country\": \"<nullable>\",\n  \"visa_type\": \"<string>\",\n  \"visa_number\": \"<string>\",\n  \"visa_expiry_date\": \"<date>\",\n  \"driver_license_number\": \"<string>\",\n  \"driver_license_issued_date\": \"<date>\",\n  \"driver_license_expiry_date\": \"<date>\",\n  \"driver_license_issuing_country\": \"<string>\",\n  \"sec_address\": \"<string>\",\n  \"sec_city\": \"<string>\",\n  \"sec_postal_code\": \"<string>\",\n  \"sec_country\": \"<string>\",\n  \"twitter_url\": \"<string>\",\n  \"facebook_url\": \"<string>\",\n  \"instagram_url\": \"<string>\",\n  \"pinterest_url\": \"<string>\",\n  \"github_url\": \"<string>\",\n  \"behance_url\": \"<string>\",\n  \"skype_name\": \"<string>\",\n  \"shirt_size\": \"<integer>\",\n  \"t_shirt_size\": \"<integer>\",\n  \"hr_languages\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"allergies\": \"<string>\",\n  \"prevent_email\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 15,\n    \"ssn\": null,\n    \"birth_date\": \"1997-05-30\",\n    \"hire_date\": \"2012-01-02\",\n    \"hire_date_utc\": \"2012-01-02 14:45:25\",\n    \"personal_email\": \"johndoe@example.com\",\n    \"marital_status\": null,\n    \"nationality\": null,\n    \"work_phone\": \"phone-number\",\n    \"country\": null,\n    \"address\": null,\n    \"postal_code\": null,\n    \"city\": null,\n    \"linked_in_url\": null,\n    \"citizenship\": null,\n    \"termination_date\": null,\n    \"gender\": \"Male\",\n    \"job_title_id\": 25,\n    \"division_id\": 13,\n    \"department_id\": 6,\n    \"location_id\": 36,\n    \"employee_number\": null,\n    \"user_role\": {\n      \"id\": 3,\n      \"name\": \"Employee\",\n      \"slug\": \"employee\"\n    },\n    \"seniority\": {\n      \"years\": 12,\n      \"months\": 2,\n      \"days\": 2\n    },\n    \"custom_fields\": [\n      {\n        \"custom_field_id\": 47,\n        \"custom_field_slug\": \"custom-field-001\",\n        \"custom_field_name\": \"Custom Field 001\",\n        \"values\": [\n          {\n            \"value\": \"https://www.mydomain.com/custom-fields\"\n          }\n        ]\n      },\n      {\n        \"custom_field_id\": 48,\n        \"custom_field_slug\": \"custom-field-002\",\n        \"custom_field_name\": \"Custom-field-002\",\n        \"values\": [\n          {\n            \"value\": \"62\"\n          },\n          {\n            \"value\": \"64\"\n          }\n        ]\n      },\n      {\n        \"custom_field_id\": 49,\n        \"custom_field_slug\": \"custom-field-003\",\n        \"custom_field_name\": \"Custom-field-003\",\n        \"values\": [\n          {\n            \"value\": \"15\"\n          }\n        ]\n      }\n    ],\n    \"default_avatar\": false,\n    \"location_name\": \"Athens\",\n    \"division_name\": \"Europe\",\n    \"department_name\": \"Administration & Operations\",\n    \"job_title_name\": \"Administrative Assistant\",\n    \"short_manager\": {\n      \"manager_id\": 1,\n      \"manager_name\": \"Mia Black\",\n      \"manager_employee_number\": null,\n      \"location_name\": \"Athens\",\n      \"department_name\": \"Administration & Operations\",\n      \"division_name\": \"Europe\",\n      \"job_title_name\": \"Chief Executive Officer\",\n      \"linked_in_url\": null,\n      \"work_phone\": \"work-phone\",\n      \"email\": \"mblack@example.com\",\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1700059519_NNcbnWBX.jpg...\"\n    },\n    \"is_terminated\": false,\n    \"user\": {\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"middle_name\": null,\n      \"email\": \"john.doe@example.com.gr\",\n      \"last_login_at\": \"2023-11-15 16:47:50\"\n    },\n    \"hire_packet\": null,\n    \"emergency_contact\": {\n      \"id\": 13,\n      \"employee_id\": 15,\n      \"relationship_type_id\": 2,\n      \"full_name\": \"Susan Doe\",\n      \"phone\": \"phone-number\",\n      \"address\": \"address-name\",\n      \"created_at\": \"2024-02-29 11:58:38\",\n      \"updated_at\": \"2024-02-29 11:58:38\",\n      \"deleted_at\": null\n    }\n  }\n}"},{"id":"d818753c-ab76-4eb3-adb2-1574f95b02cf","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\",\n  \"last_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"ssn\": \"<string>\",\n  \"birth_date\": \"<date>\",\n  \"hire_date\": \"<date>\",\n  \"personal_email\": \"<string>\",\n  \"marital_status\": \"<string>\",\n  \"gender\": \"<string>\",\n  \"nationality\": \"<string>\",\n  \"citizenship\": \"<string>\",\n  \"ethnicity\": \"<string>\",\n  \"work_phone\": \"<string>\",\n  \"mobile_phone\": \"<string>\",\n  \"phone\": \"<string>\",\n  \"address\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postal_code\": \"<string>\",\n  \"city\": \"<string>\",\n  \"reports_to_employee_id\": \"<string>\",\n  \"emergency_contact\": {\n    \"full_name\": \"<string>\",\n    \"relationship_type_id\": \"<integer>\",\n    \"phone\": \"<string>\",\n    \"address\": \"<string>\"\n  },\n  \"linked_in_url\": \"<string>\",\n  \"is_existing\": \"<boolean>\",\n  \"employee_number\": \"<string>\",\n  \"passport_number\": \"<string>\",\n  \"passport_issued_date\": \"<date>\",\n  \"passport_expiry_date\": \"<date>\",\n  \"passport_issuing_country\": \"<nullable>\",\n  \"visa_type\": \"<string>\",\n  \"visa_number\": \"<string>\",\n  \"visa_expiry_date\": \"<date>\",\n  \"driver_license_number\": \"<string>\",\n  \"driver_license_issued_date\": \"<date>\",\n  \"driver_license_expiry_date\": \"<date>\",\n  \"driver_license_issuing_country\": \"<string>\",\n  \"sec_address\": \"<string>\",\n  \"sec_city\": \"<string>\",\n  \"sec_postal_code\": \"<string>\",\n  \"sec_country\": \"<string>\",\n  \"twitter_url\": \"<string>\",\n  \"facebook_url\": \"<string>\",\n  \"instagram_url\": \"<string>\",\n  \"pinterest_url\": \"<string>\",\n  \"github_url\": \"<string>\",\n  \"behance_url\": \"<string>\",\n  \"skype_name\": \"<string>\",\n  \"shirt_size\": \"<integer>\",\n  \"t_shirt_size\": \"<integer>\",\n  \"hr_languages\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"allergies\": \"<string>\",\n  \"prevent_email\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"4c976718-3bea-4624-88e9-22fdb9ad9f21","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"<string>\",\n  \"last_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"ssn\": \"<string>\",\n  \"birth_date\": \"<date>\",\n  \"hire_date\": \"<date>\",\n  \"personal_email\": \"<string>\",\n  \"marital_status\": \"<string>\",\n  \"gender\": \"<string>\",\n  \"nationality\": \"<string>\",\n  \"citizenship\": \"<string>\",\n  \"ethnicity\": \"<string>\",\n  \"work_phone\": \"<string>\",\n  \"mobile_phone\": \"<string>\",\n  \"phone\": \"<string>\",\n  \"address\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postal_code\": \"<string>\",\n  \"city\": \"<string>\",\n  \"reports_to_employee_id\": \"<string>\",\n  \"emergency_contact\": {\n    \"full_name\": \"<string>\",\n    \"relationship_type_id\": \"<integer>\",\n    \"phone\": \"<string>\",\n    \"address\": \"<string>\"\n  },\n  \"linked_in_url\": \"<string>\",\n  \"is_existing\": \"<boolean>\",\n  \"employee_number\": \"<string>\",\n  \"passport_number\": \"<string>\",\n  \"passport_issued_date\": \"<date>\",\n  \"passport_expiry_date\": \"<date>\",\n  \"passport_issuing_country\": \"<nullable>\",\n  \"visa_type\": \"<string>\",\n  \"visa_number\": \"<string>\",\n  \"visa_expiry_date\": \"<date>\",\n  \"driver_license_number\": \"<string>\",\n  \"driver_license_issued_date\": \"<date>\",\n  \"driver_license_expiry_date\": \"<date>\",\n  \"driver_license_issuing_country\": \"<string>\",\n  \"sec_address\": \"<string>\",\n  \"sec_city\": \"<string>\",\n  \"sec_postal_code\": \"<string>\",\n  \"sec_country\": \"<string>\",\n  \"twitter_url\": \"<string>\",\n  \"facebook_url\": \"<string>\",\n  \"instagram_url\": \"<string>\",\n  \"pinterest_url\": \"<string>\",\n  \"github_url\": \"<string>\",\n  \"behance_url\": \"<string>\",\n  \"skype_name\": \"<string>\",\n  \"shirt_size\": \"<integer>\",\n  \"t_shirt_size\": \"<integer>\",\n  \"hr_languages\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"allergies\": \"<string>\",\n  \"prevent_email\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"a9834678-5272-4cae-a620-cd615f511a71"},{"name":"Delete an employee","id":"da3eda48-1f7a-4b5f-86f6-74f8b4629f1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee","description":"<h3>API Endpoint to delete the specified employee.</h3>\n\n<p>This API endpoint facilitates the deletion of a specified employee from the system based on the provided employee ID. Upon invoking this endpoint, the system permanently removes the employee's record, along with all associated information and data stored within the system. It triggers a cascading effect that removes all associated records and data related to that employee. This includes various items such as job records, employment status, performance, review, assets,benefits information, personal documents, task assignments and any other information tied directly to the employee's profile.</p>\n<p>Before deleting the employee, the system checks if any other employees report to him/her directly. If there are, these subordinate employees are automatically reassigned to a new manager. Typically, the new manager is the supervisor of the deleted employee. This ensures that there is no disruption in the workflow and that the responsibilities of the deleted employee are seamlessly redistributed within the organization.</p>\n<p><strong>Warning:</strong> If the employee being deleted is the head of the company, meaning they have no manager above them in the organizational hierarchy, the deletion cannot proceed.</p>\n<p><em><strong>Note:</strong></em> <em>Once an employee is deleted, their email address can be used on your domain again.</em></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"47913716-6dd8-44e2-b341-db3cbf1013ff","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"513efe7a-3154-4c4e-8d52-c7d2c64d8d70","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"da3eda48-1f7a-4b5f-86f6-74f8b4629f1d"},{"name":"Terminate an employee","id":"44913a93-e565-4521-8fad-23cf7cec39e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The date that termination takes place. The effective date must be formatted as 'YYYY-MM-DD'.\n  \"termination_reason\": \"<string>\", // The reason for the employee's dismissal.  Maximum character limit: 4000 characters.\n  \"termination_type\": \"<string>\", // (Optional) The type of termination. If omitted, it defaults to \"termination\".\n  \"regrettable_status\": \"<string>\" // (Optional) Indicates whether the termination is regrettable.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/terminate","description":"<h3>API Endpoint to terminate the employment of an employee.</h3>\n\n<p>This API endpoint demonstrates the process of employee terminations within the HR system by incorporating the <strong>effective date</strong> of termination and the <strong>reason</strong> for termination. Users can remain active and utilize the system normally until the final termination date is specified. Upon the termination process, the system automatically assigns offboarding tasks to relevant users, ensuring a seamless transition for the terminated employee (employees are being notified also via email). If the termination date matches the current date, the user is instantly terminated, preventing further access to the system.</p>\n<p>When an employee is terminated, the system initiates several automatic procedures to ensure a smooth transition and maintain organizational integrity. Upon the employee's termination, employees who are under his/her supervision are reassigned to the manager of the terminated employee. Concurrently, any incomplete task assignments of the terminated employee are transferred to this manager as well.</p>\n<p>Furthermore, the system automatically deletes any job records, compensation records, manager records, or employment status records that are dated after the termination. Additionally, any time off requests(rejected or remain unanswered) from the terminated employee will be removed. Finally, if the terminated employee is part of a hiring team for a job position, he/she will be removed from the hiring team as part of the termination process.</p>\n<p><em><strong>Note:</strong></em> <em>The information of the terminated user remains within the system after the termination.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The date that an employee will be terminated. The effective date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>termination_reason</td>\n<td>string</td>\n<td>false</td>\n<td>The reason for the employee's dismissal. Maximum character limit: 4000 characters.</td>\n<td>e.g. poor quality of work</td>\n</tr>\n<tr>\n<td>termination_type</td>\n<td>string</td>\n<td>false</td>\n<td>The type of termination. If omitted, it defaults to <code>termination</code>.</td>\n<td>Available values: <code>termination</code>, <code>resignation</code></td>\n</tr>\n<tr>\n<td>regrettable_status</td>\n<td>string</td>\n<td>false</td>\n<td>Indicates whether the termination is regrettable. If the termination is not regrettable, omit this parameter or set it to <code>null</code>.</td>\n<td>Available value: <code>regrettable</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","terminate"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"a5a24ed8-ceb7-4a73-a367-5d12f33f7ee9","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"termination_reason\": \"<string>\",\n  \"termination_type\": \"<string>\",\n  \"regrettable_status\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/terminate","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","terminate"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 39,\n    \"employee_id\": 34,\n    \"effective_date\": \"2024-03-04\",\n    \"employment_status_id\": 4,\n    \"is_active\": 0,\n    \"end_date\": null,\n    \"created_at\": \"2024-03-04 10:19:18\",\n    \"updated_at\": \"2024-03-04 10:19:18\",\n    \"deleted_at\": null,\n    \"termination_reason\": null,\n    \"termination_type\": \"termination\",\n    \"regrettable_status\": null,\n    \"employment_status\": {\n      \"id\": 4,\n      \"name\": \"Terminated\",\n      \"object_type\": \"employment_status\"\n    }\n  }\n}"},{"id":"f3d4021f-35e8-479d-adcb-d5ec6e2caf2e","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"termination_reason\": \"<string>\",\n  \"termination_type\": \"<string>\",\n  \"regrettable_status\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/terminate","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","terminate"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"2508dd1f-62ab-4c11-bbe9-28788ccabafe","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"termination_reason\": \"<string>\",\n  \"termination_type\": \"<string>\",\n  \"regrettable_status\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/terminate","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","terminate"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"44913a93-e565-4521-8fad-23cf7cec39e9"},{"name":"Rehire a terminated employee","id":"62a1b8c6-f0c2-4d73-80ab-78dc8b5a3eca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hire_date\": \"<date>\", // (Required) Type: string (calendar date), format YYYY-MM-DD. Must be strictly after the latest termination effective date. Example: 2026-06-01.\n  \"reports_to_employee_id\": \"<integer>\", // (Required) Type: integer. Active manager employee id — valid employee row, not terminated, not self, valid reporting hierarchy. Example: 15.\n  \"employment_status\": { // (Required) Type: object — nested JSON, not stringified.\n    \"employment_status_id\": \"<integer>\" // Example: 11.\n  },\n  \"job_record\": { // (Optional) Type: object. Example: {\"location_id\":74,\"division_id\":76,\"department_id\":75}; include job_title_id and other ids as for hire.\n    \"job_title_id\": \"<integer>\",\n    \"location_id\": \"<integer>\",\n    \"division_id\": \"<integer>\",\n    \"department_id\": \"<integer>\"\n  },\n  \"compensation_record\": { // (Optional) Type: object — same fields/enums as hire.\n    \"pay_rate\": \"<decimal>\",\n    \"pay_rate_period\": \"<string>\",\n    \"pay_rate_schedule\": \"<string>\",\n    \"overtime_status\": \"<string>\"\n  },\n  \"prevent_email\": \"<boolean>\", // (Optional) Type: boolean. Example: false.\n  \"is_existing\": \"<boolean>\" // (Optional) Type: boolean. Passed when onboarding bypass flags matter. Example: true.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","description":"<h3>Rehire a terminated employee</h3>\n\n<p>This endpoint rehires an employee identified by the path id after a prior termination. It restores employment records, reporting line, optional job and compensation payloads, and workflows equivalent to the in-product rehire flow. Requires permission to hire employees.</p>\n\n<h4>Preconditions</h4>\n<ul>\n<li>The employee identified in the path must currently be terminated.</li>\n<li><code>reports_to_employee_id</code> is required — unlike hire, omitting manager is not supported for this flow.</li>\n<li><code>hire_date</code> (<code>YYYY-MM-DD</code>) must validate as strictly after the latest termination effective date.</li>\n</ul>\n\n<h4>Request body</h4>\n<p>For <code>Content-Type: application/json</code>, send <code>employment_status</code> and optional <code>job_record</code>, <code>compensation_record</code> as <strong>nested objects</strong> in the payload (parallel to <strong>Create an employee (Hire)</strong>).</p>\n\n<hr />\n\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>hire_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Rehire effective date in <code>YYYY-MM-DD</code> format. Must be strictly after the latest termination effective date for the employee.</td>\n<td>e.g. <code>2026-06-01</code></td>\n</tr>\n<tr>\n<td>reports_to_employee_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Active manager employee id. Must reference an existing non-deleted employee who is not terminated, must not be the path employee, and must not create a reporting cycle. Unlike hire, omitting a manager is not supported.</td>\n<td>e.g. <code>15</code></td>\n</tr>\n<tr>\n<td>employment_status</td>\n<td>object</td>\n<td>yes</td>\n<td>Nested JSON object (not a string). Must include <code>employment_status_id</code> (integer). Optional <code>working_hours</code>; when omitted the server sets it to <code>null</code>.</td>\n<td>e.g. <code>{\"employment_status_id\":11}</code></td>\n</tr>\n<tr>\n<td>job_record</td>\n<td>object</td>\n<td>no</td>\n<td>Optional nested JSON object for org chart placement. Properties: <code>job_title_id</code>, <code>location_id</code>, <code>division_id</code>, <code>department_id</code> (each integer, nullable). Use the same reference ids as for hire.</td>\n<td>e.g. <code>{\"location_id\":74,\"division_id\":76,\"department_id\":75}</code></td>\n</tr>\n<tr>\n<td>compensation_record</td>\n<td>object</td>\n<td>no</td>\n<td>Optional nested JSON object for pay. Properties include <code>pay_rate</code> (numeric string), <code>pay_rate_period</code> (<code>hour</code>, <code>day</code>, <code>week</code>, <code>month</code>, <code>quarter</code>, <code>year</code>), <code>pay_schedule</code> (<code>once-per-month</code>, <code>twice-per-month</code>, <code>every-other-week</code>, <code>weekly</code>, <code>custom</code> — <code>custom</code> only when <code>pay_rate_period</code> is <code>year</code>), <code>overtime_status</code> (<code>exempt</code>, <code>non-exempt</code>).</td>\n<td>e.g. <code>{\"pay_rate\":\"50000\",\"pay_rate_period\":\"year\",\"pay_schedule\":\"once-per-month\",\"overtime_status\":\"exempt\"}</code></td>\n</tr>\n<tr>\n<td>prevent_email</td>\n<td>boolean</td>\n<td>no</td>\n<td>When <code>true</code>, suppresses the rehire notification email where the workflow supports it. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","rehire"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee to rehire</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"f86c7baa-c904-41d3-869f-be296307509f","name":"OK (200) — success","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hire_date\": \"2026-06-01\",\n  \"reports_to_employee_id\": 15,\n  \"employment_status\": {\n    \"employment_status_id\": 11\n  },\n  \"job_record\": {\n    \"location_id\": 74,\n    \"division_id\": 76,\n    \"department_id\": 75\n  },\n  \"prevent_email\": false\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","rehire"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee to rehire"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employee_id\": 34\n  }\n}"},{"id":"0ca2749e-251d-4d3d-86c2-14d1423394b0","name":"OK (200) — employee not terminated","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hire_date\": \"2026-06-01\",\n  \"reports_to_employee_id\": 15,\n  \"employment_status\": {\n    \"employment_status_id\": 11\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","rehire"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee to rehire"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee is not terminated and cannot be rehired.\"\n  }\n}"},{"id":"5ba122e6-0ed9-4eae-ac50-66b9d60f3518","name":"Forbidden (403) — hire permission denied","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hire_date\": \"2026-06-01\",\n  \"reports_to_employee_id\": 15,\n  \"employment_status\": {\n    \"employment_status_id\": 11\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","rehire"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee to rehire"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"8b2e1c3a-f425-4494-b8d9-8d775b429032","name":"Forbidden (403) — subscription max users","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hire_date\": \"2026-06-01\",\n  \"reports_to_employee_id\": 15,\n  \"employment_status\": {\n    \"employment_status_id\": 11\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","rehire"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee to rehire"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn’t support adding more employees. Please upgrade to continue.\",\n    \"code\": 403,\n    \"hr_code\": 5001\n  }\n}"},{"id":"dce6cd02-2fbb-4132-a5f4-f1b3ca9e3720","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hire_date\": \"2026-06-01\",\n  \"reports_to_employee_id\": 15,\n  \"employment_status\": {\n    \"employment_status_id\": 11\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","rehire"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee to rehire"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"b010909f-f01c-43de-9d23-9947a3a92eba","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"reports_to_employee_id\": 15,\n  \"employment_status\": {\n    \"employment_status_id\": 11\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/rehire","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","rehire"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee to rehire"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The hire date field is required.\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"hire_date\": [\n      \"The hire date field is required.\"\n    ]\n  }\n}"}],"_postman_id":"62a1b8c6-f0c2-4d73-80ab-78dc8b5a3eca"},{"name":"Get employee's Custom Fields","id":"68bcc5c0-1f96-4a61-b6fc-dfcb768baeb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/custom-fields","description":"<h3>API Endpoint to get the custom fields that are available for an employee.</h3>\n\n<p>The current endpoint facilitates the retrieval of comprehensive information regarding two distinct types of custom fields within the system: <strong>custom fields</strong> and <strong>pre-existing custom fields</strong> that are already part of the system. These custom fields offer diverse functionalities ranging from simple text inputs to complex data structures. The types of custom fields vary, including text, long text, date, multiple choice, single choice, link and employee references. Additionally, pre-existing custom fields have 'blended' choice, presenting objects with associated properties (e.g. Passport).</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"61176221-fb83-4057-a560-9ad9d814b504","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/custom-fields","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","custom-fields"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 20,\n      \"name\": \"Secondary Address\",\n      \"slug\": \"hr-sec-address\",\n      \"custom_field_type_id\": 8,\n      \"subfields\": 4,\n      \"is_predefined\": true,\n      \"is_enabled\": true,\n      \"is_group\": true,\n      \"parent_group_id\": null,\n      \"visible_to\": null,\n      \"has_multiple_records\": false,\n      \"created_at\": \"2023-07-24 11:42:45\",\n      \"updated_at\": \"2024-03-05 11:16:17\",\n      \"deleted_at\": null,\n      \"subfields_names\": [\n        {\n          \"id\": 21,\n          \"name\": \"Address\",\n          \"slug\": \"sec-address\",\n          \"custom_field_type_id\": 1,\n          \"subfields\": 0,\n          \"is_predefined\": true,\n          \"is_enabled\": true,\n          \"is_group\": false,\n          \"parent_group_id\": 20,\n          \"visible_to\": \"both\",\n          \"has_multiple_records\": false,\n          \"created_at\": \"2023-07-24 11:42:45\",\n          \"updated_at\": \"2024-03-05 11:16:17\",\n          \"deleted_at\": null,\n          \"field_name\": \"sec_address\",\n          \"custom_field_values\": [],\n          \"custom_field_type\": {\n            \"id\": 1,\n            \"slug\": \"text-field\",\n            \"name\": \"Text field\"\n          }\n        },\n        {\n          \"id\": 22,\n          \"name\": \"City\",\n          \"slug\": \"sec-city\",\n          \"custom_field_type_id\": 1,\n          \"subfields\": 0,\n          \"is_predefined\": true,\n          \"is_enabled\": true,\n          \"is_group\": false,\n          \"parent_group_id\": 20,\n          \"visible_to\": \"both\",\n          \"has_multiple_records\": false,\n          \"created_at\": \"2023-07-24 11:42:45\",\n          \"updated_at\": \"2024-03-05 11:16:17\",\n          \"deleted_at\": null,\n          \"field_name\": \"sec_city\",\n          \"custom_field_values\": [],\n          \"custom_field_type\": {\n            \"id\": 1,\n            \"slug\": \"text-field\",\n            \"name\": \"Text field\"\n          }\n        }\n      ]\n    },\n    {\n      \"id\": 16,\n      \"name\": \"Address\",\n      \"slug\": \"address\",\n      \"custom_field_type_id\": 1,\n      \"subfields\": 0,\n      \"is_predefined\": true,\n      \"is_enabled\": true,\n      \"is_group\": false,\n      \"parent_group_id\": 15,\n      \"visible_to\": \"both\",\n      \"has_multiple_records\": false,\n      \"created_at\": \"2023-07-24 11:42:45\",\n      \"updated_at\": \"2023-11-24 11:11:15\",\n      \"deleted_at\": null,\n      \"subfields_names\": [],\n      \"field_name\": \"address\",\n      \"custom_field_type\": {\n        \"id\": 1,\n        \"slug\": \"text-field\",\n        \"name\": \"Text field\"\n      },\n      \"custom_field_values\": []\n    }\n  ]\n}"},{"id":"7f0ff26f-c888-426d-b99d-507e8c01869e","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/custom-fields","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","custom-fields"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"68bcc5c0-1f96-4a61-b6fc-dfcb768baeb1"},{"name":"Get employee's employment status","id":"932ed647-cbcc-415f-9ab3-6fd7e0a69f9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","description":"<h3>API Endpoint to retrieve the employment statuses of an employee.</h3>\n\n<p>This endpoint provides comprehensive information on the employment statuses of the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","employment-statuses"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"cc0c13e4-fc4f-42f0-b50f-e177e58771ba","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 15,\n      \"employee_id\": 15,\n      \"cycle_id\": 4,\n      \"effective_date\": \"2012-01-02\",\n      \"employment_status_id\": 1,\n      \"is_hire_event\": 0,\n      \"working_hours\": 8,\n      \"end_date\": null,\n      \"created_at\": \"2023-11-15 14:45:25\",\n      \"updated_at\": null,\n      \"deleted_at\": null,\n      \"termination_reason\": null,\n      \"termination_type\": null,\n      \"regrettable_status\": null,\n      \"employment_status\": {\n        \"id\": 1,\n        \"name\": \"Full-Time\"\n      }\n    }\n  ]\n}"},{"id":"d3863b25-ff0b-45b9-a5d9-3f8cb256d46f","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"932ed647-cbcc-415f-9ab3-6fd7e0a69f9a"},{"name":"Create an employment status","id":"79c9a11c-2789-4909-82c2-033134946ef0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The employee must have at least one employment status record with an effective date equal to their hire date. If that, the posted effective date must be equal to or after than the employee's hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.\n  \"employment_status_id\": \"<integer>\" // The id of the employment status. This must be a valid employment status from the provided 'employment-statuses' of the system.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","description":"<h3>API Endpoint to create a new employment status for an employee.</h3>\n\n<p>This endpoint enables the creation of an employment status for the specified employee. The request body should include two variables: the effective date of the status change, formatted as 'YYYY-MM-DD', and the employment status ID.</p>\n<p>It's essential to note that an employee must have at least one employment status record with an effective date matching their hire date. While creating a new employment status we have to know:</p>\n<ul>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n<li>If the specified employee is a future hire, then the effective date must come after the hire date.</li>\n</ul>\n<p><em><strong>Note:</strong></em> <em>The employment status ID provided must be valid and correspond to one of the options available in the system's 'employment-statuses' collection.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The employee must have at least one employment status record with an effective date equal to their hire date. If that, the posted effective date must be equal to or after than the employee's hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>employment_status_id</td>\n<td>string</td>\n<td>true</td>\n<td>The id of the employment status. This must be a valid employment status from the provided 'employment-statuses' of the system.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","employment-statuses"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"7e56768f-cfa5-40b9-bae1-6a71c423ad45","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"employment_status_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 15,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2012-01-02\",\n    \"employment_status_id\": 1,\n    \"is_hire_event\": 0,\n    \"working_hours\": 8,\n    \"end_date\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": null,\n    \"deleted_at\": null,\n    \"termination_reason\": null,\n    \"termination_type\": null,\n    \"regrettable_status\": null,\n    \"employment_status\": {\n      \"id\": 1,\n      \"name\": \"Full-Time\"\n    }\n  }\n}"},{"id":"b506b0da-cdbb-49d2-bf30-6b7500529437","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"employment_status_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"0bc7c3fe-c2c9-4e72-9954-9ac967bf935f","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"employment_status_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"79c9a11c-2789-4909-82c2-033134946ef0"},{"name":"Get an employment status record","id":"a33aae82-69e9-4731-9c7a-58bd370b3674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-a-specified-employment-record-of-an-employee\">API Endpoint to retrieve a specified employment record of an employee.</h3>\n<p>This endpoint retrieves a specified employment status record from the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","employment-statuses",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"a787f397-cf71-4adb-8608-c5610082a0f4","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 15,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2012-01-02\",\n    \"employment_status_id\": 1,\n    \"is_hire_event\": 0,\n    \"working_hours\": 8,\n    \"end_date\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": null,\n    \"deleted_at\": null,\n    \"termination_reason\": null,\n    \"termination_type\": null,\n    \"regrettable_status\": null,\n    \"employment_status\": {\n      \"id\": 1,\n      \"name\": \"Full-Time\"\n    }\n  }\n}"},{"id":"f04f6b34-1bee-4e35-9371-70e293ef1cfc","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"a33aae82-69e9-4731-9c7a-58bd370b3674"},{"name":"Update an employment status record","id":"25c4cf09-2f2c-456f-af6c-b1d1a6c11c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The employee must have at least one employment status record with an effective date equal to their hire date. If that, the posted effective date must be equal to or after than the employee's hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.\n  \"employment_status_id\": \"<integer>\" // The id of the employment status. This must be a valid employment status from the provided 'employment-statuses' of the system.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","description":"<h3 id=\"api-endpoint-to-update-the-employment-status-of-an-employee\">API Endpoint to update the employment status of an employee.</h3>\n<p>This endpoint updates the employment status for the specified employee. The request body should include two variables: the effective date of the status change, formatted as 'YYYY-MM-DD', and the employment status ID.</p>\n<p>It's essential to note that an employee must have at least one employment status record with an effective date matching their hire date. While updating an employment status we have to know:</p>\n<ul>\n<li><p>If only one record exist to the specified employees, any updates must be dated before today's date. Changing the date to a time before the specified hire date will adjust the employee's hire date accordingly in conjunction with the manager, job record and compensation record effective date.</p>\n</li>\n<li><p>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</p>\n</li>\n<li><p>if employee's contract has terminated, the employment status can not be modified.</p>\n</li>\n<li><p>If the specified employee is a future hire, then the effective date must come after the hire date.</p>\n</li>\n</ul>\n<p><em><strong>Note:</strong></em> <em>The employment status ID provided must be valid and correspond to one of the options available in the system's 'employment-statuses' collection.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The employee must have at least one employment status record with an effective date equal to their hire date. If that, the posted effective date must be equal to or after than the employee's hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>employment_status_id</td>\n<td>string</td>\n<td>true</td>\n<td>The id of the employment status. This must be a valid employment status from the provided 'employment-statuses' of the system.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","employment-statuses",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"de237650-d8c4-4454-bb23-82a55c5de3d0","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"employment_status_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 15,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2012-01-02\",\n    \"employment_status_id\": 1,\n    \"is_hire_event\": 0,\n    \"working_hours\": 8,\n    \"end_date\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": null,\n    \"deleted_at\": null,\n    \"termination_reason\": null,\n    \"termination_type\": null,\n    \"regrettable_status\": null,\n    \"employment_status\": {\n      \"id\": 1,\n      \"name\": \"Full-Time\"\n    }\n  }\n}"},{"id":"1e95c05c-6208-4742-aeac-d16e9f59208f","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"employment_status_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"07cbab14-ada4-4e1b-bf71-6545cdf8fe8f","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"employment_status_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"25c4cf09-2f2c-456f-af6c-b1d1a6c11c52"},{"name":"Delete an employment status record","id":"2549d79d-4a55-4a40-92ef-1a69f0f51eab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","description":"<h3 id=\"api-endpoint-to-delete-a-specified-employment-status-of-an-employee\">API Endpoint to delete a specified employment status of an employee.</h3>\n<p>This endpoint deletes the specified employment status record from the specified employee.</p>\n<p><strong>It is not allowed to delete</strong></p>\n<ul>\n<li>The current active employment status which is the unique record of employee.</li>\n<li>History Employment records. (Records which have effective date less than current employment date).</li>\n</ul>\n<p>After deleting a record:</p>\n<ul>\n<li>If the deleted status record represents a future hire and there exist at least two future hire records, deleting the record that is not the most recent (equals to the current active record) will result in the removal of all scheduled tasks for the employee. Additionally, the effective dates on other records (compensation, manager and job records) with active status are going to be adjusted to align with the current active effective date.</li>\n<li>If the deleted status record is terminated status, offboarding tasks and notifications for the specified employee are deleted. In addition, performance reviews related to the current employment status, are also removed for the specified employee.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","employment-statuses",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"e7495b36-9855-4897-9ced-4a729416f989","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"e75ae0a6-5b3c-4410-8b8e-8701270efe78","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employment-statuses/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employment-statuses",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"2549d79d-4a55-4a40-92ef-1a69f0f51eab"},{"name":"Get employee's job-records","id":"8c104731-e636-4219-9167-08c4cd586467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/job-records","description":"<h3 id=\"api-endpoint-to-retrieve-the-location-department-division-job-title-quadruples-about-the-job-of-an-employee\">API Endpoint to retrieve the location, department, division, job title quadruples about the job of an employee.</h3>\n<p>This endpoint provides comprehensive information on the employee job records of the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","job-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"471c3418-d7e8-4ed8-a2c4-7144eaa898b0","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 20,\n      \"employee_id\": 15,\n      \"cycle_id\": 4,\n      \"effective_date\": \"2012-01-02\",\n      \"job_title_id\": 25,\n      \"location_id\": 36,\n      \"division_id\": 13,\n      \"department_id\": 6,\n      \"employment_type\": \"Remote\",\n      \"end_date\": null,\n      \"created_at\": \"2023-11-15 14:45:25\",\n      \"updated_at\": \"2023-11-15 14:50:26\",\n      \"deleted_at\": null,\n      \"division\": {\n        \"id\": 13,\n        \"name\": \"Europe\"\n      },\n      \"department\": {\n        \"id\": 6,\n        \"name\": \"Administration & Operations\"\n      },\n      \"location\": {\n        \"id\": 36,\n        \"name\": \"Athens\",\n        \"field_data\": {\n          \"address\": \"1, Random Street, Athens, Greece 10551\",\n          \"is_remote\": false\n        }\n      },\n      \"job_title\": {\n        \"id\": 25,\n        \"name\": \"Administrative Assistant\"\n      }\n    }\n  ]\n}"},{"id":"b3c0a3cb-b8f2-4fd5-9274-e72f3cfebd17","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"8c104731-e636-4219-9167-08c4cd586467"},{"name":"Create a job record","id":"4d203974-7e2e-481b-b5df-cff60d5f1ece","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.\n  \"location_id\": \"<integer>\",  // The id of the location. This must be a valid location from the provided 'locations' of the system.\n  \"department_id\": \"<integer>\", // The id of the department. This must be a valid department from the provided 'departments' of the system.\n  \"division_id\": \"<integer>\", // The id of the division. This must be a valid division from the provided 'divisions' of the system.\n  \"job_title_id\": \"<integer>\", // The id of the job title. This must be a valid job title from the provided 'job-titles' of the system.\n  \"employment_type\": \"<string>\" // (Optional) The employee's employment type. Allowed: Remote, On-site, Hybrid.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/job-records","description":"<h3 id=\"api-endpoint-to-create-a-new-quadruple-of-location-department-division-job-title-for-an-employee\">API Endpoint to create a new quadruple of location, department, division, job title for an employee.</h3>\n<p>This endpoint enables the creation of a job record for the specified employee. The request body should include these variables: the effective date of the record, formatted as 'YYYY-MM-DD', and the location, division, department, and job_title ID.</p>\n<p>While creating a new job record we have to know:</p>\n<ul>\n<li>The new job record must have a date equal to or later than the employee's hire date.</li>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n</ul>\n<p><em><strong>Note:</strong></em> <em>The</em> location, division, department, and job_title <em>ID provided must be valid and correspond to one of the options available in the system's collection.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the location. This must be a valid id from the provided 'locations' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the division. This must be a valid id from the provided 'divisions' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the department. This must be a valid id from the provided 'departments' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>job_title_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the job title. This must be a valid id from the provided 'job-titles' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>string</td>\n<td>false</td>\n<td>The employee's employment type.</td>\n<td>Remote, On-site, Hybrid</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","job-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"78f81d9e-c9d3-4bf0-ba51-b9438ce80b69","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"job_title_id\": \"<integer>\",\n  \"employment_type\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 20,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2012-01-02\",\n    \"job_title_id\": 25,\n    \"location_id\": 36,\n    \"division_id\": 13,\n    \"department_id\": 6,\n    \"employment_type\": \"Remote\",\n    \"end_date\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2023-11-15 14:50:26\",\n    \"deleted_at\": null,\n    \"division\": {\n      \"id\": 13,\n      \"name\": \"Europe\"\n    },\n    \"department\": {\n      \"id\": 6,\n      \"name\": \"Administration & Operations\"\n    },\n    \"location\": {\n      \"id\": 36,\n      \"name\": \"Athens\",\n      \"field_data\": {\n        \"address\": \"1, Random Street, Athens, Greece 10551\",\n        \"is_remote\": false\n      }\n    },\n    \"job_title\": {\n      \"id\": 25,\n      \"name\": \"Administrative Assistant\"\n    }\n  }\n}"},{"id":"5fa067c2-6f59-46c8-9876-a0e2887fb2d3","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"job_title_id\": \"<integer>\",\n  \"employment_type\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"df7ac5bc-9c29-4ade-a01e-f8ae2b71d936","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"job_title_id\": \"<integer>\",\n  \"employment_type\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"4d203974-7e2e-481b-b5df-cff60d5f1ece"},{"name":"Get a job record","id":"e5769318-6b99-4ce1-9894-2b344c683f1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/job-records/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-the-specified-job-record-of-an-employee\">API Endpoint to retrieve the specified job record of an employee.</h3>\n<p>This endpoint retrieves a job record for the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","job-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"dc586014-a25a-4014-8cf0-269b50bc3cf1","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 20,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2012-01-02\",\n    \"job_title_id\": 25,\n    \"location_id\": 36,\n    \"division_id\": 13,\n    \"department_id\": 6,\n    \"employment_type\": \"Remote\",\n    \"end_date\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2023-11-15 14:50:26\",\n    \"deleted_at\": null,\n    \"division\": {\n      \"id\": 13,\n      \"name\": \"Europe\"\n    },\n    \"department\": {\n      \"id\": 6,\n      \"name\": \"Administration & Operations\"\n    },\n    \"location\": {\n      \"id\": 36,\n      \"name\": \"Athens\",\n      \"field_data\": {\n        \"address\": \"1, Random Street, Athens, Greece 10551\",\n        \"is_remote\": false\n      }\n    },\n    \"job_title\": {\n      \"id\": 25,\n      \"name\": \"Administrative Assistant\"\n    }\n  }\n}"},{"id":"060b166d-0b4b-4096-9a3e-211b4bdd3dd0","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"e5769318-6b99-4ce1-9894-2b344c683f1f"},{"name":"Update a job record","id":"c23cead5-4f31-447c-af2a-9d8f4fb50739","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'.  The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.\n  \"location_id\": \"<integer>\",  // The id of the location. This must be a valid location from the provided 'locations' of the system.\n  \"department_id\": \"<integer>\", // The id of the department. This must be a valid department from the provided 'departments' of the system.\n  \"division_id\": \"<integer>\", // The id of the division. This must be a valid division from the provided 'divisions' of the system.\n  \"job_title_id\": \"<integer>\", // The id of the job title. This must be a valid job title from the provided 'job-titles' of the system.\n  \"employment_type\": \"<string>\" // (Optional) The employee's employment type. Allowed: Remote, On-site, Hybrid.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/job-records/:objectId","description":"<h3 id=\"api-endpoint-to-update-a-specified-job-record-of-an-employee\">API Endpoint to update a specified job record of an employee.</h3>\n<p>This endpoint updates a job record for the specified employee. The request body should include these variables: the effective date of the record, formatted as 'YYYY-MM-DD', and the location, division, department, and job_title ID.</p>\n<p>While creating a new job record we have to know:</p>\n<ul>\n<li>The effective date must be equal to or later than the employee's hire date.</li>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n</ul>\n<p>Considering changes of the job record of employee, the system will be add or remove the performance reviews coresponding to the new data.</p>\n<p><em><strong>Note:</strong></em> <em>The</em> location, division, department, and job_title <em>ID provided must be valid and correspond to one of the options available in the system's collection.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the location. This must be a valid location from the provided 'locations' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the division. This must be a valid division from the provided 'divisions' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the department. This must be a valid department from the provided 'departments' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>job_title_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The id of the job title. This must be a valid job title from the provided 'job-titles' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>string</td>\n<td>false</td>\n<td>The employee's employment type.</td>\n<td>Remote, On-site, Hybrid</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","job-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"4852b2b3-bd39-45f0-8158-42ab71c33e17","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"job_title_id\": \"<integer>\",\n  \"employment_type\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 20,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2012-01-02\",\n    \"job_title_id\": 25,\n    \"location_id\": 36,\n    \"division_id\": 13,\n    \"department_id\": 6,\n    \"employment_type\": \"Remote\",\n    \"end_date\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2023-11-15 14:50:26\",\n    \"deleted_at\": null,\n    \"division\": {\n      \"id\": 13,\n      \"name\": \"Europe\"\n    },\n    \"department\": {\n      \"id\": 6,\n      \"name\": \"Administration & Operations\"\n    },\n    \"location\": {\n      \"id\": 36,\n      \"name\": \"Athens\",\n      \"field_data\": {\n        \"address\": \"1, Random Street, Athens, Greece 10551\",\n        \"is_remote\": false\n      }\n    },\n    \"job_title\": {\n      \"id\": 25,\n      \"name\": \"Administrative Assistant\"\n    }\n  }\n}"},{"id":"3dc2f89e-6d3c-4528-8f57-fa940ce59f54","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"job_title_id\": \"<integer>\",\n  \"employment_type\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"0ad9d2aa-db31-48c9-9a50-933a80f74b41","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"job_title_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"c23cead5-4f31-447c-af2a-9d8f4fb50739"},{"name":"Delete a job record","id":"beb4bca6-2ef1-4aa8-bad4-d267d5fa23ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/job-records/:objectId","description":"<h3 id=\"api-endpoint-to-delete-a-specified-job-record-of-an-employee\">API Endpoint to delete a specified job record of an employee.</h3>\n<p>This endpoint deletes the specified job record for the specified employee.</p>\n<p><strong>It is not allowed to delete</strong> :</p>\n<ul>\n<li>History job records (Records which have effective date less than current job.)</li>\n</ul>\n<p>After deleting a specific job record, the system will be remove the performance reviews coresponding to the new data.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","job-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"5c6eaff8-996e-4380-89bd-6140b4f49643","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"045faa48-13f5-4da0-b5de-66c774662158","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/jobRecords/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","jobRecords",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"beb4bca6-2ef1-4aa8-bad4-d267d5fa23ef"},{"name":"Get employee job info","id":"e8b8ef83-555c-4261-95c3-80e9c63f2aca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/job","description":"<h3 id=\"api-endpoint-to-retrieve-the-job-information-of-an-employee\">API Endpoint to retrieve the job information of an employee.</h3>\n<p>This endpoint provides a comprehensive overview of job-related information for the employee. This includes employment status history, job records, compensation records, manager records, and benefits related to the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","job"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"118c274e-0a27-4cf9-b233-500fe3104ea7","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/job","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","job"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employment_statuses\": [\n      {\n        \"id\": 1001,\n        \"employee_id\": 123,\n        \"cycle_id\": 10,\n        \"effective_date\": \"2026-01-01\",\n        \"employment_status_id\": 5,\n        \"is_hire_event\": 1,\n        \"working_hours\": 8,\n        \"end_date\": null,\n        \"created_at\": \"2026-01-01 10:00:00\",\n        \"updated_at\": \"2026-01-01 10:00:00\",\n        \"deleted_at\": null,\n        \"termination_reason\": null,\n        \"termination_type\": null,\n        \"regrettable_status\": null,\n        \"employment_status\": {\n          \"id\": 5,\n          \"name\": \"Full-Time\",\n          \"object_type\": \"employment_status\"\n        }\n      }\n    ],\n    \"manager_records\": [\n      {\n        \"id\": 2001,\n        \"employee_id\": 123,\n        \"cycle_id\": 10,\n        \"reports_to_employee_id\": 45,\n        \"effective_date\": \"2026-01-01\",\n        \"end_date\": null,\n        \"from_id\": null,\n        \"created_at\": \"2026-01-01 10:00:00\",\n        \"updated_at\": \"2026-01-01 10:00:00\",\n        \"deleted_at\": null,\n        \"manager\": {\n          \"id\": 45,\n          \"user_id\": 45,\n          \"is_future_rehire\": false,\n          \"active_cycle\": 45,\n          \"user\": {\n            \"id\": 45,\n            \"first_name\": \"Alex\",\n            \"last_name\": \"Johnson\"\n          }\n        }\n      }\n    ],\n    \"job_records\": [\n      {\n        \"id\": 3001,\n        \"employee_id\": 123,\n        \"cycle_id\": 10,\n        \"effective_date\": \"2026-01-01\",\n        \"job_title_id\": 18,\n        \"location_id\": 36,\n        \"division_id\": 13,\n        \"department_id\": 6,\n        \"employment_type\": \"Hybrid\",\n        \"end_date\": null,\n        \"created_at\": \"2026-01-01 10:00:00\",\n        \"updated_at\": \"2026-01-01 10:00:00\",\n        \"deleted_at\": null,\n        \"location\": {\n          \"id\": 36,\n          \"name\": \"Athens\",\n          \"object_type\": \"location\",\n          \"field_data\": {\n            \"address\": \"1 Example Street\",\n            \"is_remote\": 0\n          }\n        },\n        \"division\": {\n          \"id\": 13,\n          \"name\": \"EMEA\",\n          \"object_type\": \"division\"\n        },\n        \"department\": {\n          \"id\": 6,\n          \"name\": \"Operations\",\n          \"object_type\": \"department\"\n        },\n        \"job_title\": {\n          \"id\": 18,\n          \"name\": \"Chief Executive Officer\",\n          \"object_type\": \"job-title\"\n        }\n      }\n    ],\n    \"compensation_records\": [\n      {\n        \"id\": 4001,\n        \"employee_id\": 123,\n        \"cycle_id\": 10,\n        \"effective_date\": \"2026-01-01\",\n        \"pay_rate_currency\": \"EUR\",\n        \"pay_rate\": \"5000.00\",\n        \"pay_rate_period\": \"month\",\n        \"custom_pay_rate_period\": null,\n        \"pay_schedule\": \"twice-per-month\",\n        \"overtime_status\": \"exempt\",\n        \"end_date\": null,\n        \"created_at\": \"2026-01-01 10:00:00\",\n        \"updated_at\": \"2026-01-01 10:00:00\",\n        \"deleted_at\": null,\n        \"change_reason\": \"annual_review\"\n      }\n    ],\n    \"benefits\": [\n      {\n        \"id\": 5001,\n        \"name\": \"Health Insurance\",\n        \"description\": null,\n        \"cost\": null,\n        \"cost_currency\": \"EUR\",\n        \"cost_period\": null,\n        \"required_for_all\": true,\n        \"benefit_category_id\": null,\n        \"created_at\": \"2026-01-01 10:00:00\",\n        \"updated_at\": \"2026-01-01 10:00:00\",\n        \"deleted_at\": null,\n        \"start_date\": \"2026-01-01\",\n        \"end_date\": null,\n        \"benefit_category\": null,\n        \"benefit_required_for\": []\n      }\n    ],\n    \"bonuses\": [\n      {\n        \"id\": 6001,\n        \"employee_id\": 123,\n        \"amount\": \"250.00\",\n        \"currency\": \"EUR\",\n        \"effective_date\": \"2026-02-01\",\n        \"reason_text\": \"Performance bonus\",\n        \"created_at\": \"2026-02-01 10:00:00\",\n        \"updated_at\": \"2026-02-01 10:00:00\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"8e2fedf1-b9bf-4e44-b70f-e9e6eb9a5264","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/job","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","job"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"e8b8ef83-555c-4261-95c3-80e9c63f2aca"},{"name":"Get employee's managers","id":"12a2c6c0-da34-489b-b043-9c6ff7c91d6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/managers","description":"<h3 id=\"api-endpoint-to-retrieve-information-about-the-managers-of-an-employee\">API Endpoint to retrieve information about the managers of an employee.</h3>\n<p>This endpoint provides comprehensive information on the employee's manager records for the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","managers"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"16657fc4-89de-4fa0-9122-108058f49bb9","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 18,\n      \"employee_id\": 15,\n      \"cycle_id\": 4,\n      \"reports_to_employee_id\": 1,\n      \"effective_date\": \"2012-01-02\",\n      \"end_date\": null,\n      \"from_id\": null,\n      \"created_at\": \"2023-11-15 14:45:25\",\n      \"updated_at\": \"2023-11-15 14:45:25\",\n      \"deleted_at\": null,\n      \"manager\": {\n        \"id\": 1,\n        \"user_id\": 1,\n        \"user\": {\n          \"id\": 1,\n          \"first_name\": \"John\",\n          \"last_name\": \"Doe\"\n        }\n      }\n    }\n  ]\n}"},{"id":"a02a16ac-a78e-4e55-9688-20c38b98c019","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"12a2c6c0-da34-489b-b043-9c6ff7c91d6d"},{"name":"Create a manager record","id":"25dc80dd-49db-4808-9c67-171c6a4e9801","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The date must before or equal of the current date and after or equal employee's hire date. If the current employee is a future hire, you cannot assign them any manager until after their hire date.\n  \"reports_to_employee_id\": \"<integer>\" // The employee Id (Active employee) that is goint to be the manager of the specified employee.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/managers","description":"<h3 id=\"api-endpoint-to-create-a-manager-record-for-an-employee\">API Endpoint to create a manager record for an employee.</h3>\n<p>This endpoint enables the creation of a manager record for the specified employee. The request body should include these variables: the effective date of the record, formatted as 'YYYY-MM-DD', and the manager's employee ID.</p>\n<p>When we are creating a manager record, we should avoid creating loops or circles in the organization hierarchy.</p>\n<p>It's essential to note that an employee must have at least one manager record with an effective date matching their hire date. While creating a new manager record we have to know:</p>\n<ul>\n<li>The effective date must be after or equal of employee's hire date.</li>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n<li>If the specified employee is a future hire, then you cannot assign them any manager until after their hire date.</li>\n<li>The person that is going to be the manager of the specified employee must be an active employee.</li>\n</ul>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'.  <br />The date must before or equal of the current date and after or equal employee's hire date. If the current employee is a future hire, you cannot assign them any manager until after their hire date.</td>\n<td>e.g. 2024-07-01</td>\n</tr>\n<tr>\n<td>reports_to_employee_id</td>\n<td>integer</td>\n<td>true</td>\n<td>The employee ID (Active employee) that is going to be the manager of the specified employee.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","managers"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"159329f3-a4ba-47aa-8763-03829b3297cc","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"reports_to_employee_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 18,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"reports_to_employee_id\": 1,\n    \"effective_date\": \"2012-01-02\",\n    \"end_date\": null,\n    \"from_id\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2023-11-15 14:45:25\",\n    \"deleted_at\": null,\n    \"manager\": {\n      \"id\": 1,\n      \"user_id\": 1,\n      \"user\": {\n        \"id\": 1,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\"\n      }\n    }\n  }\n}"},{"id":"eaaef893-cc45-465e-8f6f-11e7f75b8a03","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"reports_to_employee_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"67552963-a28b-42ef-8fb4-fb26b7864bf0","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"reports_to_employee_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"25dc80dd-49db-4808-9c67-171c6a4e9801"},{"name":"Get employee's compensation-records","id":"a8dba823-9b53-4620-b614-ae747b6ce00e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","description":"<h3 id=\"api-endpoint-to-retrieve-information-about-the-compensation-of-an-employee\">API Endpoint to retrieve information about the compensation of an employee.</h3>\n<p>This endpoint provides comprehensive information on the employee compensation records of the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"c5eac137-9ecb-4124-9677-137144705d7c","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 30,\n      \"employee_id\": 15,\n      \"cycle_id\": 4,\n      \"effective_date\": \"2024-03-01\",\n      \"pay_rate_currency\": \"EUR\",\n      \"pay_rate\": \"1000.00\",\n      \"pay_rate_period\": \"month\",\n      \"custom_pay_rate_period\": null,\n      \"pay_schedule\": \"once-per-month\",\n      \"overtime_status\": \"exempt\",\n      \"end_date\": null,\n      \"created_at\": \"2024-03-01 09:09:04\",\n      \"updated_at\": \"2024-03-01 09:09:04\",\n      \"deleted_at\": null,\n      \"change_reason\": \"N/A\"\n    }\n  ]\n}"},{"id":"d848b602-e2d3-47b7-ac4a-4c4ddf736b31","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"a8dba823-9b53-4620-b614-ae747b6ce00e"},{"name":"Create a compensation record","id":"8a842c79-1a1e-467d-9923-0e0898e6c86d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // (Required) The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.\n  \"pay_rate_period\": \"<string>\", // (Required) Valid values [hour, day, week, month, quarter, year]. This is the period over which money is earned.\n  \"pay_rate\": \"<number>\", // This is the employee's wage. Allow 2 decimal places e.g 1203.55\n  \"pay_schedule\": \"<string>\", // Valid values [once-per-month, twice-per-month, every-other-week]. This is the frequency of the wage.\n  \"overtime_status\": \"<string>\", // Valid values [exempt, non-exempt]. This determines whether an employee is exempt or non-exempt from overtime regulations.\n  \"change_reason\": \"<string>\" // Valid values ['N/A', 'annual-pay', 'increase', 'promotion', 'relocation', 'title-change']. This is the reason of compensation change.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","description":"<h3 id=\"api-endpoint-to-create-a-new-compensation-record-for-an-employee\">API Endpoint to create a new compensation record for an employee.</h3>\n<p>This endpoint enables the creation of a compensation record for the specified employee. The request body should include these variables: the effective date of the record, formatted as 'YYYY-MM-DD', the pay rate, pay rate period, pay schedule, and overtime status.</p>\n<p>While creating a new compensation record we have to know:</p>\n<ul>\n<li>The new compensation record must have a date equal to or later than the employee's hire date.</li>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n</ul>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'.  <br />The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.</td>\n<td></td>\n</tr>\n<tr>\n<td>pay_rate_period</td>\n<td>string</td>\n<td>true</td>\n<td>This is the period over which money is earned.  <br />Valid values are  <br />['hour', 'day', 'week', 'month', 'quarter', 'year']</td>\n<td>e.g. month</td>\n</tr>\n<tr>\n<td>pay_rate</td>\n<td>number</td>\n<td>false</td>\n<td>This is the employee's wage and must have 2 decimals</td>\n<td>e.g. 1203.72</td>\n</tr>\n<tr>\n<td>pay_schedule</td>\n<td>string</td>\n<td>false</td>\n<td>This is the frequency of the wage.  <br />Valid values are  <br />['once-per-month',' twice-per-month', 'every-other-week']</td>\n<td>e.g. twice-per-month</td>\n</tr>\n<tr>\n<td>overtime_status</td>\n<td>string</td>\n<td>false</td>\n<td>This determines whether an employee is exempt or non-exempt from overtime regulations.  <br />Valid values are  <br />['exempt, non-exempt','non-exempt']</td>\n<td>e.g. exempt</td>\n</tr>\n<tr>\n<td>change_reason</td>\n<td>string</td>\n<td>false</td>\n<td>This is the reason of compensation change.  <br />Valid values are  <br />['N/A', 'annual-pay', 'increase', 'promotion', 'relocation', 'title-change']</td>\n<td>e.g. promotion</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"825ef0ad-fb85-44cc-a776-d66de3054143","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"pay_rate_period\": \"<string>\",\n  \"pay_rate\": \"<string>\",\n  \"pay_schedule\": \"<string>\",\n  \"overtime_status\": \"<string>\",\n  \"change-reason\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 30,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2024-03-01\",\n    \"pay_rate_currency\": \"EUR\",\n    \"pay_rate\": \"1000.00\",\n    \"pay_rate_period\": \"month\",\n    \"custom_pay_rate_period\": null,\n    \"pay_schedule\": \"once-per-month\",\n    \"overtime_status\": \"exempt\",\n    \"end_date\": null,\n    \"created_at\": \"2024-03-01 09:09:04\",\n    \"updated_at\": \"2024-03-01 09:09:04\",\n    \"deleted_at\": null,\n    \"change_reason\": \"N/A\"\n  }\n}"},{"id":"a5c39dbf-7994-4c01-9810-aefd8ecf9d55","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"pay_rate_period\": \"<string>\",\n  \"pay_rate\": \"<string>\",\n  \"pay_schedule\": \"<string>\",\n  \"overtime_status\": \"<string>\",\n  \"change-reason\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"c1fc1a6e-4564-44c7-ab84-11a104765093","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"pay_rate_period\": \"<string>\",\n  \"pay_rate\": \"<string>\",\n  \"pay_schedule\": \"<string>\",\n  \"overtime_status\": \"<string>\",\n  \"change-reason\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"8a842c79-1a1e-467d-9923-0e0898e6c86d"},{"name":"Get a compensation record","id":"d655cf0d-5aef-447e-9a3e-bf254e9b59f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-a-specified-compensation-record-of-an-employee\">API Endpoint to retrieve a specified compensation record of an employee.</h3>\n<p>This endpoint retrieves the compensation data for the specified employee. To use this endpoint , the Employee id and the compensation record id must be specified.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"e4c85973-a9e0-4437-a8ee-c20fafc62b51","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 30,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2024-03-01\",\n    \"pay_rate_currency\": \"EUR\",\n    \"pay_rate\": \"1000.00\",\n    \"pay_rate_period\": \"month\",\n    \"custom_pay_rate_period\": null,\n    \"pay_schedule\": \"once-per-month\",\n    \"overtime_status\": \"exempt\",\n    \"end_date\": null,\n    \"created_at\": \"2024-03-01 09:09:04\",\n    \"updated_at\": \"2024-03-01 09:09:04\",\n    \"deleted_at\": null,\n    \"change_reason\": \"N/A\"\n  }\n}"},{"id":"a011373d-cdf5-44eb-84fe-9463099437bc","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"d655cf0d-5aef-447e-9a3e-bf254e9b59f3"},{"name":"Update a compensation record","id":"45da0045-f21f-412d-9380-bb6254e2af2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // (Required) The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'. The date must be equal to or after than the hire date.. If a termination date is specified for the current employee, the effective date must come before the termination date.\n  \"pay_rate_period\": \"<string>\", // (Required) Valid values [hour, day, week, month, quarter, year]. This is the period over which money is earned.\n  \"pay_rate\": \"<number>\", // This is the employee's wage. Allow 2 decimal places e.g 1203.55\n  \"pay_schedule\": \"<string>\", // Valid values [once-per-month, twice-per-month, every-other-week]. This is the frequency of the wage.\n  \"overtime_status\": \"<string>\", // Valid values [exempt, non-exempt]. This determines whether an employee is exempt or non-exempt from overtime regulations.\n  \"change_reason\": \"<string>\" // Valid values ['N/A', 'annual-pay', 'increase', 'promotion', 'relocation', 'title-change']. This is the reason of compensation change.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","description":"<h3 id=\"api-endpoint-to-update-the-compensation-record-of-an-employee\">API Endpoint to update the compensation record of an employee.</h3>\n<p>This endpoint updates a job record for the specified employee. The request body should include these variables: the effective date of the record, formatted as 'YYYY-MM-DD', the pay rate, pay rate period, pay schedule, overtime status, and the reason of change.</p>\n<p>While creating a new compensation record we have to know:</p>\n<ul>\n<li>The effective date must have a date equal to or later than the employee's hire date.</li>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n</ul>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'.  <br />The date must be equal to or after than the hire date. If a termination date is specified for the current employee, the effective date must come before the termination date.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>pay_rate_period</td>\n<td>string</td>\n<td>true</td>\n<td>This is the period over which money is earned.  <br />Valid values are  <br />['hour', 'day', 'week', 'month', 'quarter', 'year']</td>\n<td>e.g. hour</td>\n</tr>\n<tr>\n<td>pay_rate</td>\n<td>number</td>\n<td>false</td>\n<td>This is the employee's wage and must have 2 decimals</td>\n<td>e.g. 1203.72</td>\n</tr>\n<tr>\n<td>pay_schedule</td>\n<td>string</td>\n<td>false</td>\n<td>This is the frequency of the wage.  <br />Valid values are  <br />['once-per-month',' twice-per-month', 'every-other-week']</td>\n<td>e.g. twice-per-month</td>\n</tr>\n<tr>\n<td>overtime_status</td>\n<td>string</td>\n<td>false</td>\n<td>This determines whether an employee is exempt or non-exempt from overtime regulations.  <br />Valid values are  <br />['exempt, 'non-exempt']</td>\n<td>e.g. exempt</td>\n</tr>\n<tr>\n<td>change_reason</td>\n<td>string</td>\n<td>false</td>\n<td>This is the reason of compensation change.  <br />Valid values are  <br />['N/A', 'annual-pay', 'increase', 'promotion', 'relocation', 'title-change']</td>\n<td>e.g. N/A</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"ee33b18d-db7e-40a0-b7ad-5a0440c97b84","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"pay_rate_period\": \"<string>\",\n  \"pay_rate\": \"<string>\",\n  \"pay_schedule\": \"<string>\",\n  \"overtime_status\": \"<string>\",\n  \"change-reason\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 30,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"effective_date\": \"2024-03-01\",\n    \"pay_rate_currency\": \"EUR\",\n    \"pay_rate\": \"1000.00\",\n    \"pay_rate_period\": \"month\",\n    \"custom_pay_rate_period\": null,\n    \"pay_schedule\": \"once-per-month\",\n    \"overtime_status\": \"exempt\",\n    \"end_date\": null,\n    \"created_at\": \"2024-03-01 09:09:04\",\n    \"updated_at\": \"2024-03-01 09:09:04\",\n    \"deleted_at\": null,\n    \"change_reason\": \"N/A\"\n  }\n}"},{"id":"545d9de8-6002-45dd-8f80-69bc2e99b06c","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"pay_rate_period\": \"<string>\",\n  \"pay_rate\": \"<string>\",\n  \"pay_schedule\": \"<string>\",\n  \"overtime_status\": \"<string>\",\n  \"change-reason\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"6845b608-b3f7-4e9f-a616-f026c711f5be","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"pay_rate_period\": \"<string>\",\n  \"pay_rate\": \"<string>\",\n  \"pay_schedule\": \"<string>\",\n  \"overtime_status\": \"<string>\",\n  \"change-reason\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"45da0045-f21f-412d-9380-bb6254e2af2c"},{"name":"Delete a compensation record","id":"3d681794-001d-42b6-b06d-81b2aff0bae3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","description":"<h3 id=\"api-endpoint-to-delete-a-compensation-record-of-an-employee\">API Endpoint to delete a compensation record of an employee.</h3>\n<p>This endpoint deletes the specified compensation record of the specified employee.</p>\n<p>If employee's contract has terminated, it is not allowed to delete the compensation record.</p>\n<p><strong>Also it is not allowed to delete:</strong></p>\n<ul>\n<li>History compensation records (Records which have effective date less than current compensation.)</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"df9e4d76-478c-48ed-b2fe-ec985383af36","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"d9d5e94e-f716-41ff-af10-873be6219b27","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","compensation-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"3d681794-001d-42b6-b06d-81b2aff0bae3"},{"name":"Get employee's benefits","id":"21c92c54-e352-4297-a063-62ff00b931dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/benefits","description":"<h3 id=\"api-endpoint-to-retrieve-information-about-the-benefits-that-an-employee-has\">API Endpoint to retrieve information about the benefits that an employee has.</h3>\n<p>This endpoint returns comprehensive information on benefits for the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","benefits"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"1a40b416-727c-46fb-928e-65298cdb9269","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/benefits","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","benefits"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2,\n      \"name\": \"benefit-name\",\n      \"description\": null,\n      \"cost\": null,\n      \"cost_currency\": \"EUR\",\n      \"cost_period\": null,\n      \"required_for_all\": false,\n      \"benefit_category_id\": 1,\n      \"created_at\": \"2023-11-16 07:48:58\",\n      \"updated_at\": \"2024-03-01 10:49:45\",\n      \"deleted_at\": null,\n      \"start_date\": \"2024-02-01\",\n      \"end_date\": null,\n      \"benefit_category\": {\n        \"id\": 1,\n        \"name\": \"benefit-category-1\"\n      },\n      \"benefit_required_for\": [\n        {\n          \"id\": 8,\n          \"benefit_id\": 2,\n          \"object_id\": 1,\n          \"required_for_type\": \"employment_status\",\n          \"created_at\": \"2024-03-01 10:11:44\",\n          \"updated_at\": \"2024-03-01 10:11:44\",\n          \"deleted_at\": null,\n          \"object_name\": \"Full-Time\",\n          \"employee_custom_field\": {\n            \"id\": 1,\n            \"name\": \"Full-Time\",\n            \"object_type\": \"employment_status\"\n          }\n        }\n      ]\n    }\n  ]\n}"},{"id":"ade74cc1-1a84-49d8-996e-5825c829380b","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/benefits","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","benefits"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"21c92c54-e352-4297-a063-62ff00b931dd"},{"name":"Get employee's documents","id":"99810181-f6a3-47a4-8a1e-c95f197b2617","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/documents","description":"<h3 id=\"api-endpoint-to-retrieve-employees-document\">API Endpoint to retrieve employee's document.</h3>\n<p>This endpoint returns comprehensive information on private documents for the specified employee. Some people within a company have the legal right to view personnel files. These people are the Company Administrator and the Hr manager of the organization.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","documents"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"969de570-f473-4664-b453-961e3df67914","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/documents","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","documents"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2,\n      \"uploaded_id\": 1,\n      \"client_filename\": \"poster.png\",\n      \"filename\": \"/testdomain/documents/NNcbnWBX/1702300272_poster.png\",\n      \"filetype\": \"png\",\n      \"is_employee_file\": false,\n      \"is_public\": false,\n      \"sort_order\": 0,\n      \"created_at\": \"2023-11-16 07:33:51\",\n      \"updated_at\": \"2024-02-13 11:51:33\",\n      \"deleted_at\": null,\n      \"owner_id\": 1,\n      \"master_id\": null,\n      \"preview_filename\": null,\n      \"url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/documents/NNcbnWBX/1702300272_poster123.png?Expires=1707829193&Signature=wkZyul7nfEfVUbePUrTLF3B0qabz~dhNObNz-X9115lsH9hkRC6WyWoKdlqL1uBMb9lUBvIhWD1-MO2td-moqjqZcI5Lny1VpN55B3PmkBzjlOPljdneURRKm2bqeTOcjhp7cg9wKByrMHRMzZAX3CZdWsE3ZTpoJ7rMDYEyLST6tmHbyJ12ouDHpicbl75gd3lcE3PbXlm9nmy6q5NJkOIpBnCnWXfQLJ58exXzskCAz7Rm1EkSL0YXEzPVceZHPl62VWN9qwwczM6cQw1MYAUGUR8edD0DARi94eYEU-3Y6BnhPaV-gd6Gw5cmyVyupg55FHstnMJGfpCsOo6cmw__&Key-Pair-Id=K2KPAB7VLWPOH\",\n      \"preview_url\": null\n    }\n  ]\n}"},{"id":"e54dc29d-03b9-49e9-8d13-15121af92c08","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/documents","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","documents"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"99810181-f6a3-47a4-8a1e-c95f197b2617"},{"name":"Upload an employee's document","id":"bd93609c-135a-4e62-aac6-bc930259122c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"<p>File. Valid Formats (docx,doc,odt,odp,ods,xls,xlsx,ppt,pptx,pdf,png,jpg,jpeg,svg,csv,gif,webp,tsv). The document must not surpass 30MB.</p>\n","type":"file","value":null},{"key":"folder_id","value":"<integer>","description":"<p>Optional. Document folder id. When provided, it must reference a document folder that belongs to the employee or is a default folder.</p>\n","type":"text"}]},"url":"https://pubapi.talenthr.io/v1/employees/:employee/documents","description":"<h3 id=\"api-endpoint-to-upload-a-document-in-an-employees-folder\">API Endpoint to upload a document in an employee’s folder.</h3>\n<p>This endpoint facilitates the uploading of documents to the specified employee's private folder. Valid document formats include docx, doc, odt, odp, ods, xls, xlsx, ppt, pptx, pdf, png, jpg, jpeg, svg, csv, gif, webp, and tsv. The documents are exclusively accessible to the employee and are not visible to other employees. Also the Company Administrator and the Hr manager of the organization have access to the employees documents. The current document must not surpass 30MB.</p>\n<p>To upload a document into a specific employee folder, provide the <strong>folder_id</strong> request field.</p>\n<hr />\n<p>Filenames within the system must not start with any illegal character or symbol (e.g. <code>@</code> (at sign), <code>$</code> (dollar sign), <code>%</code> (percent), <code>&amp;</code> (ampersand)) and should maintain a reasonable length, ensuring they do not exceed 250 characters.</p>\n<hr />\n<p><strong>Request parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>document</td>\n<td>file</td>\n<td>true</td>\n<td>File. Valid Formats (docx,doc,odt,odp,ods,xls,xlsx,ppt,pptx,pdf,png,jpg,jpeg,svg,csv,gif,webp,tsv). The current document must not surpass 30MB.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>folder_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Optional. Document folder id. When provided, it must reference a document folder that belongs to the employee or is a default folder.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>When <strong>folder_id</strong> is provided, the caller must have permission to create a document for the specified employee and that folder.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","documents"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"5b7197f2-bce4-4648-b305-ba2c2aee991b","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"File.","type":"file","src":[]},{"key":"folder_id","value":"<integer>","description":"Optional. Document folder id.","type":"text"}]},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/documents","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","documents"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"uploaded_id\": 1,\n    \"client_filename\": \"poster.png\",\n    \"filename\": \"/testdomain/documents/NNcbnWBX/1702300272_poster.png\",\n    \"filetype\": \"png\",\n    \"filesize\": 123456,\n    \"folder_id\": 12,\n    \"is_employee_file\": true,\n    \"is_public\": false,\n    \"sort_order\": 0,\n    \"created_at\": \"2024-02-13 07:33:51\",\n    \"updated_at\": \"2024-02-13 07:33:51\",\n    \"deleted_at\": null,\n    \"owner_id\": 5,\n    \"master_id\": null,\n    \"preview_filename\": null,\n    \"url\": \"https://example.com/signed/document.png\",\n    \"preview_url\": null,\n    \"is_folder\": false,\n    \"starred\": false,\n    \"document_type\": null,\n    \"signing_started_at\": null,\n    \"signing_finalized_at\": null\n  }\n}"},{"id":"66efeefa-469c-4ecb-8b0c-24e1efc9fc7c","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"File.","type":"file","src":[]},{"key":"folder_id","value":"<integer>","description":"Optional. Document folder id.","type":"text"}]},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/documents","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","documents"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"6174ce1a-c712-4504-a4fd-beb51d509325","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"File.","type":"file","src":[]},{"key":"folder_id","value":"<integer>","description":"Optional. Document folder id.","type":"text"}]},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/documents","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","documents"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"bd93609c-135a-4e62-aac6-bc930259122c"},{"name":"Get employee's pending tasks","id":"0b602baf-4fca-4db6-9f3e-5740b183b6e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/tasks/pending?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-the-pending-tasks-of-an-employee\">API Endpoint to retrieve the pending tasks of an employee.</h3>\n<p>This endpoint retrieves comprehensive information regarding pending tasks assigned to the specified employee. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n<p>In addition to pagination parameters, users can customize the order and sorting of the retrieved data.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","tasks","pending"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum ['id', 'name', 'deadline_due_date', 'task_for']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"}],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"cb1684f5-7204-47d5-a83b-24ede825def2","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/tasks/pending?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","tasks","pending"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 44,\n        \"task_id\": 5,\n        \"employee_id\": 15,\n        \"task_for_id\": 44,\n        \"name\": \"Introduction to Team and Networking\",\n        \"description\": \"Facilitate introductions between new hires and their team members. Encourage team-building activities and create opportunities for networking within the organization. This helps foster a sense of belonging and collaboration.\",\n        \"task_type_id\": 2,\n        \"task_category_id\": null,\n        \"due_date_period\": \"Days\",\n        \"due_date_schedule\": \"After\",\n        \"due_date_value\": 5,\n        \"done\": false,\n        \"done_at\": null,\n        \"deadline_due_date\": \"2024-03-10\",\n        \"employment_status_record_id\": null,\n        \"created_at\": \"2024-03-05 09:41:20\",\n        \"updated_at\": \"2024-03-05 10:37:59\",\n        \"deleted_at\": null,\n        \"course_id\": null,\n        \"asset_id\": 7,\n        \"task_for\": \"Doe Freddy\",\n        \"task_type\": {\n          \"id\": 2,\n          \"name\": \"Onboarding\"\n        },\n        \"task_category\": null,\n        \"asset\": {\n          \"id\": 7,\n          \"name\": \"Membership 1\"\n        },\n        \"complete\": true\n      }\n    ]\n  }\n}"},{"id":"7e13ac29-f95b-449a-ac92-bd04445aa49d","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/tasks/pending?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","tasks","pending"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"0b602baf-4fca-4db6-9f3e-5740b183b6e1"},{"name":"Get employee's completed tasks","id":"e6062e28-00e3-4f40-92b5-cab5283097aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/tasks/completed?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-the-completed-tasks-of-an-employee\">API Endpoint to retrieve the completed tasks of an employee.</h3>\n<p>This endpoint retrieves comprehensive information regarding completed tasks assigned to the specified employee. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n<p>In addition to pagination parameters, you can customize the order and sorting of the retrieved data.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","tasks","completed"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum ['id', 'name', 'deadline_due_date', 'task_for']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"}],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"92dd1d2c-fa6b-4e8f-93d7-464aeb832332","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/tasks/completed?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","tasks","completed"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 44,\n        \"task_id\": 5,\n        \"employee_id\": 15,\n        \"task_for_id\": 44,\n        \"name\": \"Introduction to Team and Networking\",\n        \"description\": \"Facilitate introductions between new hires and their team members. Encourage team-building activities and create opportunities for networking within the organization. This helps foster a sense of belonging and collaboration.\",\n        \"task_type_id\": 2,\n        \"task_category_id\": null,\n        \"due_date_period\": \"Days\",\n        \"due_date_schedule\": \"After\",\n        \"due_date_value\": 5,\n        \"done\": true,\n        \"done_at\": \"2024-03-05\",\n        \"deadline_due_date\": \"2024-03-10 12:00:00\",\n        \"employment_status_record_id\": null,\n        \"created_at\": \"2024-03-05 09:41:20\",\n        \"updated_at\": \"2024-03-05 10:37:59\",\n        \"deleted_at\": null,\n        \"course_id\": null,\n        \"asset_id\": 7,\n        \"task_for\": \"Doe Freddy\",\n        \"task_type\": {\n          \"id\": 2,\n          \"name\": \"Onboarding\"\n        },\n        \"task_category\": null,\n        \"asset\": {\n          \"id\": 7,\n          \"name\": \"Membership 1\"\n        }\n      }\n    ]\n  }\n}"},{"id":"30b9612e-59b0-411c-ad69-8b3699422c9b","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/tasks/completed?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","tasks","completed"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"e6062e28-00e3-4f40-92b5-cab5283097aa"},{"name":"Create a task assignment for an employee","id":"102b7a69-38a3-4ab1-a6c3-20527674e1c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Task title; max 191 characters. Example: Complete security checklist.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 10000 characters. Example: Finish before audit.\n  \"course_id\": \"<integer>\", // (Optional) Type: integer. TalentLMS course id when training is attached.\n  \"deadline_due_date\": \"<date>\" // (Optional) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-06-15.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","description":"<h3>Create a task assignment for an employee</h3>\n\n<p>This endpoint creates a new task assignment under the General task type for the employee in the path.</p>\n\n<p>Requires permission to create task assignments for that employee. Sending a non-null <code>course_id</code> requires permission to add training for that employee, TalentLMS enabled for the tenant, and a course that exists on the tenant’s TalentLMS branch. When creation succeeds, the employee may receive a task notification.</p>\n\n<p>The <code>deadline_due_date</code> cannot be before the employee’s hire date.</p>\n\n<p>New task assignments on Terminated employees are forbidden.</p>\n\n<hr />\n\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Task title. Maximum 191 characters.</td>\n<td>e.g. <code>Complete security checklist</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>no</td>\n<td>Optional body text. Maximum 10000 characters.</td>\n<td>e.g. <code>Finish before audit.</code></td>\n</tr>\n<tr>\n<td>course_id</td>\n<td>integer</td>\n<td>no</td>\n<td>Optional TalentLMS course id. When non-null, requires permission to add training for that employee, TalentLMS enabled for the tenant, and a course that exists on the tenant branch.</td>\n<td>e.g. <code>42</code></td>\n</tr>\n<tr>\n<td>deadline_due_date</td>\n<td>string</td>\n<td>no</td>\n<td>Optional due date in <code>YYYY-MM-DD</code> format. Must be on or after the employee hire date.</td>\n<td>e.g. <code>2026-06-15</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Saved examples illustrate responses.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","task-assignments"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"ecc671b8-b7da-4e1e-97c5-6d73bdbd9984","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Task title; max 191 characters. Example: Complete security checklist.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 10000 characters. Example: Finish before audit.\n  \"course_id\": \"<integer>\", // (Optional) Type: integer. TalentLMS course id when training is attached.\n  \"deadline_due_date\": \"<date>\" // (Optional) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-06-15.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 101,\n    \"task_id\": null,\n    \"employee_id\": 44,\n    \"task_for_id\": 44,\n    \"name\": \"Complete security checklist\",\n    \"description\": \"Finish before audit.\",\n    \"task_type_id\": 1,\n    \"task_category_id\": null,\n    \"due_date_period\": null,\n    \"due_date_schedule\": null,\n    \"due_date_value\": null,\n    \"done\": false,\n    \"done_at\": null,\n    \"deadline_due_date\": \"2026-06-15\",\n    \"employment_status_record_id\": null,\n    \"created_at\": \"2026-05-12 10:00:00\",\n    \"updated_at\": \"2026-05-12 10:00:00\",\n    \"deleted_at\": null,\n    \"course_id\": null,\n    \"asset_id\": null,\n    \"assignee\": {\n      \"id\": 44,\n      \"user_id\": 46,\n      \"is_future_rehire\": false,\n      \"active_cycle\": 12\n    },\n    \"task_type\": {\n      \"id\": 1,\n      \"name\": \"General\"\n    }\n  }\n}"},{"id":"647114ec-0b9f-4ed8-a68d-9d2c3bd435b7","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"aadea0e6-b498-45e7-8be3-817cf08efef4","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not create task assignments for."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"7a7b9231-2422-451e-bca7-91fcc62ebd5c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"<string>\" // Omitted name to illustrate validation.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The name field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\n      \"The name field is required.\"\n    ]\n  }\n}"},{"id":"ca8f8ce7-3b7b-4255-b26e-2ffa5648588f","name":"OK (200) with training step error","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"course_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"TalentLMS could not complete the request.\",\n    \"hr_code\": 6002\n  }\n}"},{"id":"6e74068e-f8aa-486c-9f2d-7306cc725678","name":"Modify terminated employee (452)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments"],"variable":[{"key":"employee","value":"<integer>","description":"Terminated employee id."}]}},"status":"Modify Terminated Employee","code":452,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee must not be terminated\",\n    \"hr_code\": 101\n  }\n}"}],"_postman_id":"102b7a69-38a3-4ab1-a6c3-20527674e1c0"},{"name":"Get a task assignment for an employee","id":"e8f79b3c-59ff-47f9-9873-67031b027436","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","description":"<p>This endpoint returns a single task assignment for the employee in the path. The assignment must belong to that employee.</p>\n\n<p>Requires permission to view task assignments for that employee.</p>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","task-assignments",":taskAssignment"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Task assignment id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"taskAssignment"}]}},"response":[{"id":"33f8e8de-2614-46bc-ab5d-abf5fbbb37d2","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 101,\n    \"task_id\": null,\n    \"employee_id\": 44,\n    \"task_for_id\": 44,\n    \"name\": \"Complete security checklist\",\n    \"description\": \"Finish before audit.\",\n    \"task_type_id\": 1,\n    \"task_category_id\": null,\n    \"due_date_period\": null,\n    \"due_date_schedule\": null,\n    \"due_date_value\": null,\n    \"done\": false,\n    \"done_at\": null,\n    \"deadline_due_date\": \"2026-06-15\",\n    \"employment_status_record_id\": null,\n    \"created_at\": \"2026-05-12 10:00:00\",\n    \"updated_at\": \"2026-05-12 10:00:00\",\n    \"deleted_at\": null,\n    \"course_id\": null,\n    \"asset_id\": null,\n    \"assignee\": {\n      \"id\": 44,\n      \"user_id\": 46,\n      \"is_future_rehire\": false,\n      \"active_cycle\": 12\n    },\n    \"task_type\": {\n      \"id\": 1,\n      \"name\": \"General\"\n    },\n    \"task_category\": null\n  }\n}"},{"id":"b8c97bed-322c-4186-98dc-4a7088bd29b7","name":"Not found exception (404) — employee","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."},{"key":"taskAssignment","value":"101","description":"(integer) Task assignment id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"e9f6c753-a230-4c89-9d07-dcf032e8f118","name":"Not found exception (404) — task assignment","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"999999","description":"Non-existent task assignment id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TaskAssignment] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"49c839b4-4a9b-4c59-b907-a57deec7f221","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not view task assignments for."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"4ef8d27c-f548-43a2-b191-ffc9d54fdee5","name":"Internal Server Error (500) — assignment not for path employee","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"44","description":"Employee id in the path that does not match the task assignment being requested."},{"key":"taskAssignment","value":"101","description":"Task assignment id whose assignee is a different employee."}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"This task assignment does not belong to the specified employee.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"}],"_postman_id":"e8f79b3c-59ff-47f9-9873-67031b027436"},{"name":"Update a task assignment for an employee","id":"48e2d138-654e-41d4-b321-25862fce30f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Task title; max 191 characters. Example: Updated security checklist.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 10000 characters. Example: Finish before audit.\n  \"course_id\": \"<integer>\", // (Optional) Type: integer. TalentLMS course id when training is attached.\n  \"deadline_due_date\": \"<date>\" // (Optional) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-06-20.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","description":"<p>This endpoint updates an existing task assignment for the employee in the path. The assignment must not already be marked done and must not be an onboarding or offboarding task. The path employee must not be Terminated. The <code>deadline_due_date</code> cannot be before the employee's hire date.</p>\n\n<p>Requires permission to update task assignments for that employee. Sending a non-null <code>course_id</code> requires permission to add training for that employee, TalentLMS enabled for the tenant, and a course that exists on the tenant's TalentLMS branch.</p>\n\n<hr />\n\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Task title. Maximum 191 characters.</td>\n<td>e.g. <code>Updated security checklist</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>no</td>\n<td>Optional body text. Maximum 10000 characters.</td>\n<td>e.g. <code>Finish before audit.</code></td>\n</tr>\n<tr>\n<td>course_id</td>\n<td>integer</td>\n<td>no</td>\n<td>Optional TalentLMS course id. When non-null, TalentLMS must be enabled for the tenant and the course must exist on the tenant branch. Changing the course may unenroll the employee from the prior course when no other active assignment for that employee uses the previous course id.</td>\n<td>e.g. <code>42</code></td>\n</tr>\n<tr>\n<td>deadline_due_date</td>\n<td>string</td>\n<td>no</td>\n<td>Optional due date in <code>YYYY-MM-DD</code> format. Must be on or after the employee hire date.</td>\n<td>e.g. <code>2026-06-20</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","task-assignments",":taskAssignment"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Task assignment id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"taskAssignment"}]}},"response":[{"id":"004cee67-92f3-45b2-ae3d-9d985d231eb5","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Task title; max 191 characters. Example: Updated security checklist.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 10000 characters. Example: Finish before audit.\n  \"course_id\": \"<integer>\", // (Optional) Type: integer. TalentLMS course id when training is attached.\n  \"deadline_due_date\": \"<date>\" // (Optional) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-06-20.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 101,\n    \"task_id\": null,\n    \"employee_id\": 44,\n    \"task_for_id\": 44,\n    \"name\": \"Updated security checklist\",\n    \"description\": \"Finish before audit.\",\n    \"task_type_id\": 1,\n    \"task_category_id\": null,\n    \"due_date_period\": null,\n    \"due_date_schedule\": null,\n    \"due_date_value\": null,\n    \"done\": false,\n    \"done_at\": null,\n    \"deadline_due_date\": \"2026-06-20\",\n    \"employment_status_record_id\": null,\n    \"created_at\": \"2026-05-12 10:00:00\",\n    \"updated_at\": \"2026-05-12 14:30:00\",\n    \"deleted_at\": null,\n    \"course_id\": null,\n    \"asset_id\": null,\n    \"assignee\": {\n      \"id\": 44,\n      \"user_id\": 46,\n      \"is_future_rehire\": false,\n      \"active_cycle\": 12\n    },\n    \"task_type\": {\n      \"id\": 1,\n      \"name\": \"General\"\n    }\n  }\n}"},{"id":"ae6d2d14-e5e6-41c0-a58e-e514e9c93ec5","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not update task assignments for."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"fc8480c8-f3ec-478d-8f17-a8a44fc5bd91","name":"Not found exception (404) — task assignment","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"999999","description":"Non-existent task assignment id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TaskAssignment] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"72d5787f-f062-4413-8057-62ba926eb4f3","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"<string>\" // Omitted name to illustrate validation.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The name field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\n      \"The name field is required.\"\n    ]\n  }\n}"},{"id":"2df54200-d1d6-4e68-ad4c-37af7c176485","name":"Modify terminated employee (452)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"Terminated employee id."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"Modify Terminated Employee","code":452,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee must not be terminated\",\n    \"hr_code\": 101\n  }\n}"},{"id":"d62b5c25-b254-4f1a-9e0b-17f556f6f9dc","name":"Internal Server Error (500) — task completed","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"<integer>","description":"Task assignment id that is already marked done."}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"This task is already completed and cannot be edited or deleted.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"}],"_postman_id":"48e2d138-654e-41d4-b321-25862fce30f7"},{"name":"Delete a task assignment for an employee","id":"161fecb4-33a5-4bdc-9b5e-0479eff2696f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","description":"<p>This endpoint deletes the task assignment identified in the path for the employee in the path. The assignment must belong to that employee, must not already be marked done, and must not be an onboarding or offboarding task.</p>\n\n<p>When the assignment has a TalentLMS <code>course_id</code>, the system runs LMS unenrollment handling before deleting.</p>\n\n<p>Requires permission to delete task assignments for that employee.</p>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","task-assignments",":taskAssignment"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Task assignment id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"taskAssignment"}]}},"response":[{"id":"fb1dbb35-2e3b-4ed8-87d6-f9cda271187e","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"70788d4b-c8c3-4626-bd5f-706aac4b5185","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not delete task assignments for."},{"key":"taskAssignment","value":"<integer>","description":"(integer) Task assignment id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"094c6086-598c-4fb9-a563-e8f293405180","name":"Not found exception (404) — task assignment","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"999999","description":"Non-existent task assignment id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TaskAssignment] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"90a28cea-88d4-4789-b03c-e82c551709af","name":"Internal Server Error (500) — task completed","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"taskAssignment","value":"<integer>","description":"Task assignment id that is already marked done."}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"This task is already completed and cannot be edited or deleted.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"},{"id":"daae366b-7c13-4c69-a898-8446337e279e","name":"Internal Server Error (500) — onboarding or offboarding task","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id for an onboarding or offboarding task assignment."},{"key":"taskAssignment","value":"<integer>","description":"Task assignment id that is onboarding or offboarding."}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot delete an onboarding or offboarding task.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"},{"id":"9b26482f-b4c6-4ac4-9373-0b55427d9196","name":"Internal Server Error (500) — task assignment not for path employee","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:taskAssignment","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":taskAssignment"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id in the path that does not match the task assignment being deleted."},{"key":"taskAssignment","value":"<integer>","description":"Task assignment id that belongs to a different employee than the path."}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"This task assignment does not belong to the specified employee.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"}],"_postman_id":"161fecb4-33a5-4bdc-9b5e-0479eff2696f"},{"name":"Toggle employee's task","id":"5a60a5f7-604b-44ee-918c-5ec4ea9b502d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"<boolean>\" // (Required) The status of the task assignment. 'true' to state the task as completed, 'false' for pending\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:objectId","description":"<h3 id=\"api-endpoint-to-mark-a-task-of-an-employee-as-completedincomplete\">API Endpoint to mark a task of an employee as completed/incomplete.</h3>\n<p>This endpoint toggles a task assignment as a <strong>pending task</strong> or <strong>completed task</strong> for the specified employee. If the task is associated with a TalentLMS training course, it cannot be marked as complete or incomplete. Additionally, if the task involves an asset, the asset will only be assigned to the employee after the task is completed. However, if a task transitions from completed to pending status, any assets previously connected to the employee will be absolved.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>boolean</td>\n<td>true</td>\n<td>The status of the task assignment. 'true' to state the task as completed, 'false' for pending. If the task is connected with TalentLMS training then  <br />it cannot be mark as complete or incomplete.</td>\n<td>e.g. true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","task-assignments",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"58fb3d55-89d6-4668-9144-7d9f2624b92d","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 44,\n    \"task_id\": 5,\n    \"employee_id\": 15,\n    \"task_for_id\": 44,\n    \"name\": \"Introduction to Team and Networking\",\n    \"description\": \"Facilitate introductions between new hires and their team members. Encourage team-building activities and create opportunities for networking within the organization. This helps foster a sense of belonging and collaboration.\",\n    \"task_type_id\": 2,\n    \"task_category_id\": null,\n    \"due_date_period\": \"Days\",\n    \"due_date_schedule\": \"After\",\n    \"due_date_value\": 5,\n    \"done\": true,\n    \"done_at\": \"2024-03-05 12:52:50\",\n    \"deadline_due_date\": \"2024-03-10\",\n    \"employment_status_record_id\": null,\n    \"created_at\": \"2024-03-05 09:41:20\",\n    \"updated_at\": \"2024-03-05 12:52:50\",\n    \"deleted_at\": null,\n    \"course_id\": null,\n    \"asset_id\": 7,\n    \"asset\": {\n      \"id\": 7,\n      \"name\": \"Membership 1\",\n      \"asset_category_id\": 2,\n      \"serial_number\": null,\n      \"label\": null,\n      \"cost_frequency\": \"per-month\",\n      \"cost_model\": \"per-user\",\n      \"cost\": \"100.00\",\n      \"purchase_date\": \"2023-12-01\",\n      \"warranty_end_date\": null,\n      \"asset_status_id\": 2,\n      \"description\": null,\n      \"created_at\": \"2024-02-16 09:41:18\",\n      \"updated_at\": \"2024-02-16 09:41:18\",\n      \"deleted_at\": null,\n      \"asset_type_id\": 2\n    },\n    \"employee\": {\n      \"id\": 44,\n      \"user_id\": 46,\n      \"ssn\": null,\n      \"birth_date\": null,\n      \"hire_date\": \"2024-03-05\",\n      \"hire_date_utc\": \"2024-03-04 22:00:00\",\n      \"personal_email\": null,\n      \"marital_status\": null,\n      \"nationality\": null,\n      \"work_phone\": null,\n      \"phone\": null,\n      \"country\": null,\n      \"address\": null,\n      \"postal_code\": null,\n      \"city\": null,\n      \"reports_to_employee_id\": 15,\n      \"linked_in_url\": null,\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png?Expires=1709729570&Signature=NtIuJ-KndrZe3JmILtILyrt6A7NfP1ElDmSY0R6GVxVLMkBRKJtPPTp6gt0~9z1x2UBOY0zi9Nx48MosjHagwwkJJga9RD~FBki3UaqxicEDMNG8aeJHIVV~TdFmKjQ9tvrMFnKUEm7VcDgadfr8~g5dkWvQ5a-jHChAcaI0Qx5PdLFYmujN6jlc0ANQlaxqfbLoTbyu9GPJsIkfr0zJZHtVKdhU2UPKpMehWmcpWPO1t2sffYdfxCP8D~wApufGhjSAfR4n6apop5gyKSHoJv9RncYLFCroBQ6rs5kmGZsG~j80h-kDYtV3wxOG49U~NqgmobMotFpmVddfjvibyw__&Key-Pair-Id=K2KPAB7VLWPOH\",\n      \"citizenship\": null,\n      \"termination_date\": null,\n      \"termination_date_utc\": null,\n      \"is_existing\": 0,\n      \"created_at\": \"2024-03-05 09:41:18\",\n      \"updated_at\": \"2024-03-05 09:41:18\",\n      \"deleted_at\": null,\n      \"gender\": null,\n      \"job_title_id\": null,\n      \"division_id\": null,\n      \"department_id\": null,\n      \"location_id\": 36,\n      \"employment_status_id\": 1,\n      \"employee_number\": null,\n      \"passport_number\": null,\n      \"passport_issued_date\": null,\n      \"passport_expiry_date\": null,\n      \"passport_issuing_country\": null,\n      \"visa_type\": null,\n      \"visa_number\": null,\n      \"visa_expiry_date\": null,\n      \"driver_license_number\": null,\n      \"driver_license_issued_date\": null,\n      \"driver_license_expiry_date\": null,\n      \"driver_license_issuing_country\": null,\n      \"sec_address\": null,\n      \"sec_city\": null,\n      \"sec_postal_code\": null,\n      \"sec_country\": null,\n      \"twitter_url\": null,\n      \"facebook_url\": null,\n      \"instagram_url\": null,\n      \"pinterest_url\": null,\n      \"github_url\": null,\n      \"behance_url\": null,\n      \"skype_name\": null,\n      \"shirt_size\": null,\n      \"t_shirt_size\": null,\n      \"allergies\": null\n    },\n    \"task_type\": {\n      \"id\": 2,\n      \"name\": \"Onboarding\"\n    }\n  }\n}"},{"id":"e407c8ec-8071-412e-94af-28f8f3c0c06f","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"096fa786-6cff-4e4f-a375-eb552acff4d6","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/task-assignments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","task-assignments",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"5a60a5f7-604b-44ee-918c-5ec4ea9b502d"},{"name":"Get employee's time off budgets","id":"7e1dd343-9002-4122-a819-4f243ccc3f80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets","description":"<h3 id=\"api-endpoint-to-get-the-time-off-budgets-of-an-employee\">API Endpoint to get the Time Off budgets of an employee.</h3>\n<p>This endpoint provides comprehensive information into the time-off budgets (the allocated amount of time off) allocated for the specified employee yearly. This includes historical data from the employee's start year to the year following the current calendar year.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-budgets"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"a6bf15a5-8d58-427d-bd8c-25967739e115","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-budgets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 10,\n      \"employee_id\": 1,\n      \"budget\": \"15.000\",\n      \"year\": \"2023\",\n      \"timeoff_type_name\": \"Vacation\",\n      \"timeoff_type_slug\": \"vacation\",\n      \"used_budget\": \"0.000\",\n      \"original_budget\": \"15.000\",\n      \"paid\": true,\n      \"timeoff_type_id\": 4,\n      \"created_at\": \"2023-11-15 13:56:10\",\n      \"updated_at\": \"2023-12-04 10:19:38\",\n      \"deleted_at\": null\n    }\n  ]\n}"},{"id":"0c727b48-0c08-472d-8e74-0104c27e4b4b","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-budgets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"7e1dd343-9002-4122-a819-4f243ccc3f80"},{"name":"Update a time off budget","id":"77d3631c-1d1c-4728-b4f0-aa8493fc5003","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"original_budget\": \"<number>\" // (Required) Employee's original time off budget (in days) for a time off type. Min value is 0 and max is 365. Allows 3 decimal places.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets/:objectId","description":"<h3 id=\"api-endpoint-to-update-the-time-off-budget-of-an-employee\">API Endpoint to update the Time Off budget of an employee.</h3>\n<p>This endpoint facilitates the updating of the time-off budget for the specified employee. To use this endpoint , the Employee id and the Time off budget id must be specified. The budget value must fall within the range of greater than 1 day and less than 365 days.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>original_budget</td>\n<td>number</td>\n<td>true</td>\n<td>Employee's original time off budget (in days) for a time off type. Min value is 0 and max is 365. Allows 3 decimal places.</td>\n<td>e.g. 12.5</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-budgets",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"d97acc51-0e8b-4f37-85cc-29b4f0d581bf","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"original_budget\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-budgets",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 10,\n    \"employee_id\": 1,\n    \"budget\": \"15.000\",\n    \"year\": \"2023\",\n    \"used_budget\": \"0.000\",\n    \"original_budget\": \"15.000\",\n    \"timeoff_type_id\": 4,\n    \"created_at\": \"2023-11-15 13:56:10\",\n    \"updated_at\": \"2023-12-04 10:19:38\",\n    \"deleted_at\": null,\n    \"timeoff_type\": {\n      \"id\": 4,\n      \"name\": \"Vacation\",\n      \"slug\": \"vacation\"\n    }\n  }\n}"},{"id":"a113353d-0940-4463-823c-a5715fa218f9","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"original_budget\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-budgets",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"08c99d6a-727b-40dd-8eb1-15691f6b872c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"original_budget\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-budgets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-budgets",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"77d3631c-1d1c-4728-b4f0-aa8493fc5003"},{"name":"Get employee's time off requests","id":"02d0fa24-5208-4bea-99dc-edba84382780","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests?limit=<integer>&offset=<integer>&sort=<string>","description":"<h3 id=\"api-endpoint-to-get-the-time-off-requests-of-an-employee\">API Endpoint to get the Time Off requests of an employee.</h3>\n<p>This endpoint retrieves comprehensive information regarding time-off requests of the specified employee. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n<p>In addition to pagination parameters, you can sort the retrieved data.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-requests"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's sort. Enum ['id', 'timeoff_type_name', 'created_at']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"}],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"a0da74cf-9fc8-495d-85da-a75b75da1bb6","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests?limit=<integer>&offset=<integer>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-requests"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\\\"\": \"true,\",\n  \"data\\\"\": {\n    \"total\\\"\": 5,\n    \"rows\\\"\": [\n      {\n        \"id\": 20,\n        \"approved\": true,\n        \"note\": null,\n        \"budget\": \"2.000\",\n        \"is_canceled\": true,\n        \"start_date\": \"2024-01-08\",\n        \"end_date\": \"2024-01-10\",\n        \"employee_id\": 1,\n        \"created_at\": \"2024-01-10 11:22:09\",\n        \"updated_at\": \"2024-01-10 12:10:03\",\n        \"deleted_at\": null,\n        \"timeoff_type_id\": 4,\n        \"timeoff_type_name\": \"Vacation\",\n        \"timeoff_type_slug\": \"vacation\",\n        \"allow_cancel\": false\n      },\n      {\n        \"id\": 19,\n        \"approved\": true,\n        \"note\": null,\n        \"budget\": \"5.000\",\n        \"is_canceled\": true,\n        \"start_date\": \"2023-12-11\",\n        \"end_date\": \"2023-12-15\",\n        \"employee_id\": 1,\n        \"created_at\": \"2023-12-04 10:19:22\",\n        \"updated_at\": \"2023-12-04 10:19:38\",\n        \"deleted_at\": null,\n        \"timeoff_type_id\": 4,\n        \"timeoff_type_name\": \"Vacation\",\n        \"timeoff_type_slug\": \"vacation\",\n        \"allow_cancel\": false\n      }\n    ]\n  }\n}"},{"id":"27b3cd75-8a50-4495-a67a-cda897ea8fbe","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests?limit=<integer>&offset=<integer>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-requests"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"02d0fa24-5208-4bea-99dc-edba84382780"},{"name":"Create a time off request","id":"7015ca0e-7126-4492-91dd-c575663015d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"<p>(string) Required. Interval start as <code>YYYY-MM-DD</code> text. Must not precede hire date when applicable; must not follow termination date when applicable; must fall within one year of the current date.</p>\n"},{"key":"end_date","value":"<date>","type":"text","description":"<p>(string) Required. Interval end as <code>YYYY-MM-DD</code> text; must be on or after <code>start_date</code>; same hire, termination, and one-year rules as <code>start_date</code>.</p>\n"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"<p>(string encoding integer) Required. Time-off type id as plain text.</p>\n"},{"key":"preapproved","value":"<boolean>","type":"text","description":"<p>(string) Optional. Send <code>true</code> or <code>false</code> as text. When true, auto-approval path applies when permitted by permissions.</p>\n"},{"key":"amount_options","value":"<string (JSON)>","type":"text","description":"<p><strong>Type: string (JSON).</strong> Optional. One <strong>Text</strong> form-data part; the <strong>Value</strong> cell must contain JSON text (a single line is typical).</p>\n<p><strong>Days format example:</strong>\n<code>{\"2024-01-10\":1,\"2024-01-11\":1,\"2024-01-12\":0.5,\"2024-01-13\":0,\"2024-01-14\":0}</code></p>\n<p><strong>Hours/days format example:</strong>\n<code>{\"2024-01-10\":{\"amount_days\":0.5,\"amount_hours\":0},\"2024-01-11\":{\"amount_hours\":4}}</code></p>\n<p>Keys must cover each <code>YYYY-MM-DD</code> from <code>start_date</code> through <code>end_date</code>; do not use both a bare day number and an <code>amount_days</code> / <code>amount_hours</code> object on the same date.</p>\n"},{"key":"note","value":"<string>","type":"text","description":"<p>(string) Optional. Max 255 characters.</p>\n"},{"key":"attachment","description":"<p>(file) Optional. Allowed types include docx, doc, odt, odp, ods, xls, xlsx, ppt, pptx, pdf, png, jpg, jpeg, svg, csv, gif, webp, tsv, txt. Maximum file size <strong>30000 KB</strong> per server validation.</p>\n","type":"file","value":null}]},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests-advanced","description":"<h3 id=\"api-endpoint-to-book-a-time-off-request\">API Endpoint to book a time off request.</h3>\n<p>This endpoint facilitates the booking of a time-off request for the specified employee. A time off request is an entity that describes the decision making process for approving time off.<br />It can be used for various reasons such as vacation, personal matters, bereavement or illness.</p>\n<p>The request body includes the start and end dates for the time-off request, the type of time-off requested, the preapproved attribute indicating whether the request will be automatically approved or requires manager approval, the amount option providing a detailed analysis of each day's duration (e.g., full-day as 1, half-day as 0.5, etc), and can include hours in the per-day breakdown when hour-based amounts apply, optional notes accompanying the request, and an optional file attachment for supporting documents (sent as the multipart <strong><code>attachment</code></strong> part when used; see the request body table for size and type rules).</p>\n<ul>\n<li>For future-hire employees, the time-off request cannot have a start date before their hire date.</li>\n<li>For terminated employees, the time-off request must come before the termination date.</li>\n</ul>\n<p><em><strong>Note:</strong></em> <em>The start_date and end_date must fall within one year from the current date.</em></p>\n<hr />\n<p>When the \"book time off\" request is successfully submitted and <strong><code>preapproved</code></strong> is <strong><code>false</code></strong> or the part is omitted, an email is automatically dispatched to the employee's manager, requesting approval or rejection of the time off request. If the manager is currently off work and thus unable to respond, an email notification is sent to the employee, informing them that their manager is presently unavailable to address the request.</p>\n<hr />\n<p><strong>Request body (form-data):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Interval start date in <code>YYYY-MM-DD</code> format. Must be on or after the employee hire date when applicable, must not follow the termination date when applicable, must fall within one year of the current date, and must fall within a valid time off cycle.</td>\n<td>e.g. <code>2026-04-01</code></td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Interval end date in <code>YYYY-MM-DD</code> format (inclusive). Must be on or after <code>start_date</code>; same hire, termination, one-year, and cycle rules as <code>start_date</code>.</td>\n<td>e.g. <code>2026-04-05</code></td>\n</tr>\n<tr>\n<td>timeoff_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Time off type id. Must reference a non-deleted, enabled time off type.</td>\n<td>e.g. <code>3</code></td>\n</tr>\n<tr>\n<td>preapproved</td>\n<td>boolean</td>\n<td>no</td>\n<td>When <code>true</code>, uses the pre-approve permission path when the caller is allowed and the request may be auto-approved when permitted; when omitted or <code>false</code>, uses the standard create permission and normal approval flow. In multipart, send as the text <code>true</code> or <code>false</code>.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>amount_options</td>\n<td>string</td>\n<td>no</td>\n<td>Optional multipart text field whose value is JSON encoding per-day amounts for every date from <code>start_date</code> through <code>end_date</code> (inclusive). Each date value is either a day fraction (<code>1</code>, <code>0.5</code>, <code>0</code>, …; minimum <code>0.001</code> when non-zero) or an object with <code>amount_days</code> and/or <code>amount_hours</code>—not both styles on the same date. Use <code>0</code> for non-working days and holidays where required.</td>\n<td>e.g. <code>{\"2024-01-10\":1,\"2024-01-11\":0.5}</code></td>\n</tr>\n<tr>\n<td>note</td>\n<td>string</td>\n<td>no</td>\n<td>Optional note. Maximum 255 characters.</td>\n<td>e.g. <code>Doctor appointment</code></td>\n</tr>\n<tr>\n<td>attachment</td>\n<td>file</td>\n<td>no</td>\n<td>Optional supporting document (multipart part named <code>attachment</code>). Allowed types: docx, doc, odt, odp, ods, xls, xlsx, ppt, pptx, pdf, png, jpg, jpeg, svg, csv, gif, webp, tsv, txt. Maximum size 30000 KB.</td>\n<td>file (optional)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-requests-advanced"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"8b6bf1cb-c198-4f3e-8e61-53b891f9ac41","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time-off type id"},{"key":"preapproved","value":"<boolean>","type":"text","description":"(string) true or false"},{"key":"amount_options","value":"<string (JSON)>","type":"text","description":"**Type: string (JSON).** Saved **OK (200)** example row uses a placeholder in **Value**; paste JSON text there when replaying.\n\n**Days format example:**\n`{\"2024-01-10\":1,\"2024-01-11\":1,\"2024-01-12\":0.5,\"2024-01-13\":0,\"2024-01-14\":0}`\n\n**Hours/days format example:**\n`{\"2024-01-10\":{\"amount_days\":0.5,\"amount_hours\":0},\"2024-01-11\":{\"amount_hours\":4}}`"},{"key":"note","value":"<string>","type":"text","description":"(string) optional"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests-advanced"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2402,\n    \"timeoff_type_id\": 1,\n    \"start_date\": \"2024-03-04\",\n    \"end_date\": \"2024-03-08\",\n    \"employee_id\": 15,\n    \"budget\": \"2.000\",\n    \"approved\": null,\n    \"created_at\": \"2026-05-11 10:00:00\",\n    \"updated_at\": \"2026-05-11 10:00:00\",\n    \"deleted_at\": null,\n    \"working_hours\": 8,\n    \"budget_days\": \"2.000\",\n    \"budget_hours\": null,\n    \"attachment_url\": null,\n    \"attachment_name\": null,\n    \"time_off_type\": {\n      \"id\": 1,\n      \"name\": \"Sick Leave\",\n      \"slug\": \"sick-leave\"\n    }\n  }\n}"},{"id":"00a61d22-7e20-411c-9e2a-f2653f4e7bc1","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time-off type id"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests-advanced"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"693db254-02cc-458d-bb9d-8dd41fc38631","name":"Conflict (409) — business rule","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time-off type id"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests-advanced"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot request timeoff on a terminated employee.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"8c4cc04a-7ef4-4780-bc0b-dde2f575a188","name":"Unprocessable Entity (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"not-an-integer","type":"text","description":"(string) invalid example — not an integer; triggers 422"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests-advanced"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The timeoff type id must be an integer.\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"timeoff_type_id\": [\n      \"The timeoff type id must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"7015ca0e-7126-4492-91dd-c575663015d5"},{"name":"Update time off request","id":"4ef43ed3-be57-4872-887e-d5c5fbe95c29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"<p>(string) Required. Interval start as YYYY-MM-DD text (hire, termination, and one-year rules apply).</p>\n"},{"key":"end_date","value":"<date>","type":"text","description":"<p>(string) Required. Interval end as YYYY-MM-DD text; on or after start_date.</p>\n"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"<p>(string) Required. Time off type id as plain text.</p>\n"},{"key":"preapproved","value":"<boolean>","type":"text","description":"<p>(string) Optional. Literal text true or false. When true, the pre-approve permission and behaviour apply when the caller is allowed; omit or false uses the standard update permission.</p>\n"},{"key":"amount_options","value":"<string (JSON)>","type":"text","description":"<p><strong>Type: string (JSON).</strong> Optional. One <strong>Text</strong> form-data part; the <strong>Value</strong> cell must contain JSON text (same rules as <strong>Create a time off request</strong>).</p>\n<p><strong>Days format example:</strong>\n<code>{\"2024-01-10\":1,\"2024-01-11\":1,\"2024-01-12\":0.5,\"2024-01-13\":0,\"2024-01-14\":0}</code></p>\n<p><strong>Hours/days format example:</strong>\n<code>{\"2024-01-10\":{\"amount_days\":0.5,\"amount_hours\":0},\"2024-01-11\":{\"amount_hours\":4}}</code></p>\n<p>Keys must cover each <code>YYYY-MM-DD</code> from <code>start_date</code> through <code>end_date</code>; do not use both a bare day number and an <code>amount_days</code> / <code>amount_hours</code> object on the same date.</p>\n"},{"key":"note","value":"<string>","type":"text","description":"<p>(string) Optional. Max 255 characters.</p>\n"},{"key":"attachment","description":"<p>(file) Optional. Same allowed types as create; maximum file size <strong>30000 KB</strong> per server validation. When a new file is sent it replaces any existing attachment on the request.</p>\n","type":"file","value":null}]},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests/:timeoff_request","description":"<h3 id=\"api-endpoint-to-update-a-time-off-request\">API Endpoint to update a time off request.</h3>\n<p>This endpoint updates an existing time-off request for the employee identified in the path and the time off request identified by <code>timeoff_request</code>. A time off request is an entity that describes the decision making process for approving time off. It can be used for various reasons such as vacation, personal matters, bereavement or illness.</p>\n<p><strong>Canceled, pending, or already rejected requests cannot be updated.</strong></p>\n<p>The request body includes the start and end dates for the time-off request, the type of time-off requested, the <code>preapproved</code> attribute indicating whether the pre-approve permission path applies when the caller is allowed, the <code>amount_options</code> field providing a detailed analysis of each day's duration (e.g., full-day as <code>1</code>, half-day as <code>0.5</code>, etc.), and can include hours in the per-day breakdown when hour-based amounts apply, optional notes accompanying the request, and an optional file attachment for supporting documents (sent as the multipart <code>attachment</code> part when used; see the request body table for size and type rules). When a new attachment is uploaded, it replaces any existing attachment on the request.</p>\n<ul>\n<li>For future-hire employees, the updated <code>start_date</code> cannot precede the employee's hire date.</li>\n<li>Terminated employees cannot have time off requests updated.</li>\n<li>The path <code>employee</code> id must be the owner of the time off request.</li>\n</ul>\n<p><em><strong>Note:</strong></em> <em>The <code>start_date</code> and <code>end_date</code> must fall within one year from the current date.</em></p>\n<hr />\n<p>Requires permission to update this time off request when <code>preapproved</code> is omitted or <code>false</code>; when <code>preapproved</code> is <code>true</code>, requires permission to pre-approve time off for that employee. When the time off type does not require approval, the request may be approved automatically after a successful update. When the employee has no manager and the request is unanswered, or when <code>preapproved</code> is <code>true</code>, approval may be applied as part of the update flow.</p>\n<hr />\n<p><strong>Request body (form-data):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Interval start date in <code>YYYY-MM-DD</code> format. Must be on or after the employee hire date when applicable, must not follow the termination date when applicable, must fall within one year of the current date, and must fall within a valid time off cycle.</td>\n<td>e.g. <code>2026-04-01</code></td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Interval end date in <code>YYYY-MM-DD</code> format (inclusive). Must be on or after <code>start_date</code>; same hire, termination, one-year, and cycle rules as <code>start_date</code>.</td>\n<td>e.g. <code>2026-04-05</code></td>\n</tr>\n<tr>\n<td>timeoff_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Time off type id. Must reference a non-deleted, enabled time off type.</td>\n<td>e.g. <code>3</code></td>\n</tr>\n<tr>\n<td>preapproved</td>\n<td>boolean</td>\n<td>no</td>\n<td>When <code>true</code>, uses the pre-approve permission path when the caller is allowed; when omitted or <code>false</code>, uses the standard update permission. In multipart, send as the text <code>true</code> or <code>false</code>.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>amount_options</td>\n<td>string</td>\n<td>no</td>\n<td>Optional multipart text field whose value is JSON encoding per-day amounts for every date from <code>start_date</code> through <code>end_date</code> (inclusive). Each date value is either a day fraction (<code>1</code>, <code>0.5</code>, <code>0</code>, …; minimum <code>0.001</code> when non-zero) or an object with <code>amount_days</code> and/or <code>amount_hours</code>—not both styles on the same date. Use <code>0</code> for non-working days and holidays where required.</td>\n<td>e.g. <code>{\"2024-01-10\":1,\"2024-01-11\":0.5}</code></td>\n</tr>\n<tr>\n<td>note</td>\n<td>string</td>\n<td>no</td>\n<td>Optional note. Maximum 255 characters.</td>\n<td>e.g. <code>Doctor appointment</code></td>\n</tr>\n<tr>\n<td>attachment</td>\n<td>file</td>\n<td>no</td>\n<td>Optional supporting document (multipart part named <code>attachment</code>). Allowed types: docx, doc, odt, odp, ods, xls, xlsx, ppt, pptx, pdf, png, jpg, jpeg, svg, csv, gif, webp, tsv, txt. Maximum size 30000 KB. A new file replaces any existing attachment on the request.</td>\n<td>file (optional)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-requests",":timeoff_request"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Employee id. Must be the owner of the time off request.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer, required) Time off request id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeoff_request"}]}},"response":[{"id":"ed22d13a-2fd4-4b2e-bb54-329636144d6f","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time off type id"},{"key":"preapproved","value":"false","type":"text","description":"(string) literal true or false"},{"key":"amount_options","value":"<string (JSON)>","type":"text","description":"**Type: string (JSON).** Saved **OK (200)** example row uses a placeholder in **Value**; paste JSON text there when replaying.\n\n**Days format example:**\n`{\"2024-01-10\":1,\"2024-01-11\":1,\"2024-01-12\":0.5,\"2024-01-13\":0,\"2024-01-14\":0}`\n\n**Hours/days format example:**\n`{\"2024-01-10\":{\"amount_days\":0.5,\"amount_hours\":0},\"2024-01-11\":{\"amount_hours\":4}}`"},{"key":"note","value":"<string>","type":"text","description":"(string) optional"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2401,\n    \"timeoff_type_id\": 1,\n    \"start_date\": \"2026-06-01\",\n    \"end_date\": \"2026-06-02\",\n    \"employee_id\": 15,\n    \"budget\": \"2.000\",\n    \"approved\": null,\n    \"note\": \"Updated dates\",\n    \"created_at\": \"2026-05-02 09:15:00\",\n    \"updated_at\": \"2026-05-08 14:22:03\",\n    \"deleted_at\": null,\n    \"answered\": 0,\n    \"assignee_id\": 22,\n    \"is_canceled\": false,\n    \"is_updatable\": true,\n    \"working_hours\": 8,\n    \"budget_days\": \"2.000\",\n    \"budget_hours\": null,\n    \"attachment_url\": null,\n    \"attachment_name\": null,\n    \"document_id\": null,\n    \"allow_cancel\": true,\n    \"time_off_type\": {\n      \"id\": 1,\n      \"name\": \"Sick Leave\",\n      \"slug\": \"sick-leave\",\n      \"calendar_blocking\": true,\n      \"visible_internally\": true,\n      \"needs_approval\": true\n    }\n  }\n}"},{"id":"657ce2a7-233d-4127-be1b-2fcc3f4ba540","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time off type id"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"f6e1a757-3ec0-4026-a556-1f4776e3600a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time off type id"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"10f04652-cc6d-4fdb-abd5-41d66f06bd05","name":"Not Found (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time off type id"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeOffRequest] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"d66d7641-a93e-42cd-a3d5-3bd31491bb36","name":"Conflict (409) — business rule","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"<integer>","type":"text","description":"(string) time off type id"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"This time off request has been canceled.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"5e8324c5-c4f0-4631-a6f9-cfe38701a6d6","name":"Unprocessable Entity (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"end_date","value":"<date>","type":"text","description":"(string) YYYY-MM-DD"},{"key":"timeoff_type_id","value":"not-an-integer","type":"text","description":"(string) invalid example — not an integer; triggers 422"}]},"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The timeoff type id must be an integer.\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"timeoff_type_id\": [\n      \"The timeoff type id must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"4ef43ed3-be57-4872-887e-d5c5fbe95c29"},{"name":"Cancel time off request","id":"2927e153-edb1-47c6-8efd-b79b1cd2b9bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests/:timeoff_request","description":"<p>This endpoint cancels an approved time off request for the employee in the path. The server marks the request as canceled. Pending and  rejected requests cannot be canceled.</p>\n<p>Requires permission to cancel this time off request.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-requests",":timeoff_request"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Employee id. Must be the owner of the time off request.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer, required) Time off request id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeoff_request"}]}},"response":[{"id":"90e548a6-de04-4f74-95ec-b89e21485dfe","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"1a8c2436-54ca-43f7-8565-6f4ff48fea69","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"aee6cd8a-3b9d-49a9-bc42-da7894656f1e","name":"Forbidden (403) — not approved or pending","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot cancel a time off that is not approved!\",\n    \"hr_code\": 103\n  }\n}"},{"id":"e7c3f63b-4480-45f7-b1e0-2458ebc33a32","name":"Forbidden (403) — already canceled","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The requested time off has already been canceled!\",\n    \"hr_code\": 103\n  }\n}"},{"id":"92902411-fad8-49d3-933a-e9f8991cc762","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/2401"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"7723fdb9-76a3-4946-b870-7a1fb31864ca","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/15/time-off-requests/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeOffRequest] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"2927e153-edb1-47c6-8efd-b79b1cd2b9bc"},{"name":"Approve or reject time off request","id":"9328d865-1df8-4363-96a1-e7e36838dde2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept\": \"<boolean>\" // Required field. Approve 'true' or Reject 'false' the specified time off request.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests/:objectId/reply","description":"<h3 id=\"api-endpoint-to-approve-or-reject-a-specified-time-off-request-for-an-employee\">API Endpoint to approve or reject a specified time off request for an employee.</h3>\n<p>This endpoint enables the approval or rejection of time-off requests specifically for employees under your supervision.</p>\n<hr />\n<p>When a decision is made and submitted successfully regarding the approval or rejection of this request, an email is automatically sent to the employee. This email notifies the employee about the outcome, ensuring they are promptly informed whether their request has been approved or rejected.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accept</td>\n<td>boolean</td>\n<td>true</td>\n<td>Approve 'true' or Reject 'false' the specified time off request. If the time off request has been answered or it has been cancelled then you cannot appove or reject it.</td>\n<td>e. g. true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-requests",":objectId","reply"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"ea053ea8-191a-4902-9ca2-1cb3eeb7c717","name":"Simple boolean response","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests/:objectId/reply","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-requests",":objectId","reply"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"2ba89cf7-bd6f-4b67-bb17-0e252dbafec0","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests/:objectId/reply","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-requests",":objectId","reply"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"82366165-4b4b-4eb7-afcd-46879cc571d2","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-requests/:objectId/reply","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-off-requests",":objectId","reply"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"9328d865-1df8-4363-96a1-e7e36838dde2"},{"name":"Change role to 'Employee'","id":"e2a77788-981b-4780-98f9-44db75e597b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/make-employee","description":"<h3 id=\"api-endpoint-to-change-the-user-role-of-an-employee-to-employee\">API Endpoint to change the user role of an employee to “Employee”.</h3>\n<p>This endpoint facilitates the change of role for the specified employee to 'Employee'. However, if the employee's current role is already 'Employee', attempting this change will result in a <strong>409 (Conflict)</strong> status error message.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","make-employee"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"d6e8cda0-d74d-4461-bef4-08ad7edf83f7","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/make-employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","make-employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employee_id\": 10\n  }\n}"},{"id":"4489d99e-2b8d-4017-ad8b-bf80adc6e86d","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/make-employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","make-employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"bafb5dbf-9e33-45df-9fd6-17590433ebcb","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/make-employee","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","make-employee"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"e2a77788-981b-4780-98f9-44db75e597b4"},{"name":"Change role to 'HR-Manager'","id":"85cdd667-03aa-4b19-999b-9a59fdcb31d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/make-hr-manager","description":"<h3 id=\"api-endpoint-to-change-the-user-role-of-an-employee-to-hr-manager\">API Endpoint to change the user role of an employee to “HR-Manager”.</h3>\n<p>This endpoint facilitates the change of role for the specified employee to 'HR-Manager'. However, if the employee's current role is already 'HR-Manager', attempting this change will result in a <strong>409</strong> <strong>(Conflict)</strong> status error message.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","make-hr-manager"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"ee06f787-ea28-4cd9-98ba-21a2ee578798","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/make-hr-manager","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","make-hr-manager"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employee_id\": 10\n  }\n}"},{"id":"1201334c-dfec-41f1-8746-b526b5ecc283","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/make-hr-manager","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","make-hr-manager"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"47631c51-c4e3-49f7-b946-2dd6178fbabd","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/make-hr-manager","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","make-hr-manager"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"85cdd667-03aa-4b19-999b-9a59fdcb31d6"},{"name":"Show employee manager","id":"4502d113-f2d1-4c9c-bfa0-e1a624264962","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-a-specified-manager-record-of-an-employee\">API Endpoint to retrieve a specified Manager record of an employee.</h3>\n<p>This endpoint retrieves the specified manager record for the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","managers",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"6b75692a-2f56-4468-a71d-feaf6d544c7c","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 18,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"reports_to_employee_id\": 1,\n    \"effective_date\": \"2012-01-02\",\n    \"end_date\": null,\n    \"from_id\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2023-11-15 14:45:25\",\n    \"deleted_at\": null,\n    \"manager\": {\n      \"id\": 1,\n      \"user_id\": 1,\n      \"user\": {\n        \"id\": 1,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\"\n      }\n    }\n  }\n}"},{"id":"7834f050-2f3f-40b6-9379-4ffeadf09336","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"4502d113-f2d1-4c9c-bfa0-e1a624264962"},{"name":"Update a manager record","id":"a875c292-2885-491a-b186-463c93513c0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\", // The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'.\n  \"reports_to_employee_id\": \"<integer>\" // The employee Id that is goint to be the manager of the specified employee.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","description":"<h3 id=\"api-endpoint-to-update-a-specified-manager-record-of-an-employee\">API Endpoint to update a specified Manager record of an employee.</h3>\n<p>This endpoint updates a manager record for the specified employee. The request body should include these variables: the effective date of the record, formatted as 'YYYY-MM-DD', and the manager's employee ID.</p>\n<p>You can only modify the current(active) manager record.</p>\n<p>When we are updating a new manager record, we should avoid creating loops or circles in the organization hierarchy.</p>\n<p>It's essential to note that an employee must have at least one manager record with an effective date matching their hire date. While creating a new manager record we have to know:</p>\n<ul>\n<li>The effective date must be after or equal of employee's hire date.</li>\n<li>If a termination date is specified for the employee, then the effective date must not exceed the termination date.</li>\n<li>If the specified employee is a future hire, then you cannot assign them any manager until after their hire date.</li>\n<li>The person that is going to be the manager of the specified employee must be an active employee.</li>\n<li>While updating the current active manager record, Task Assignments and Performance reviews that concern the current manager of the specified employee will be reassigned to the new manager.</li>\n</ul>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>date</td>\n<td>true</td>\n<td>The effective date that this takes place. The effective date must be formatted as 'YYYY-MM-DD'.  <br />The date must before or equal of the current date and after or equal employee's hire date.</td>\n<td>e.g. 2024-02-01</td>\n</tr>\n<tr>\n<td>reports_to_employee_id</td>\n<td>integer</td>\n<td>true</td>\n<td>The employee ID (Active Employee) that is going to be the manager of the specified employee.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","managers",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"aba1d17f-f665-42bf-a5b9-24eb212c639d","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"reports_to_employee_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 18,\n    \"employee_id\": 15,\n    \"cycle_id\": 4,\n    \"reports_to_employee_id\": 1,\n    \"effective_date\": \"2012-01-02\",\n    \"end_date\": null,\n    \"from_id\": null,\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2023-11-15 14:45:25\",\n    \"deleted_at\": null,\n    \"manager\": {\n      \"id\": 1,\n      \"user_id\": 1,\n      \"user\": {\n        \"id\": 1,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\"\n      }\n    }\n  }\n}"},{"id":"97a47946-fe96-40d9-9c35-86db71f89baa","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"reports_to_employee_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"eedc4a79-ebba-4591-9b29-477f02b62638","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"<date>\",\n  \"reports_to_employee_id\": \"<integer>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/managers/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","managers",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"a875c292-2885-491a-b186-463c93513c0d"},{"name":"Show employee settings","id":"8a76d9ee-801e-4c90-b7fe-cf4a3d0cd9e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/settings","description":"<h3 id=\"api-endpoint-to-retrieve-the-timezone-and-language-preference-of-an-employee\">API Endpoint to retrieve the timezone and language preference of an employee.</h3>\n<p>This endpoint provides access to the custom settings configured by employees. These settings include preferred language for the system interface and timezone preferences.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","settings"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"262622dd-af59-43cc-aa75-718dcba6db1a","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/settings","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","settings"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"timezone\": \"Europe/Athens\",\n    \"language_locale\": \"en\",\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2024-03-01 11:12:24\",\n    \"deleted_at\": null\n  }\n}"},{"id":"40c8b98b-3a48-47f0-9c22-3624964785df","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/settings","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","settings"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"8a76d9ee-801e-4c90-b7fe-cf4a3d0cd9e2"},{"name":"Update employee settings","id":"9c10e3d4-5c35-415f-bb30-0e35b9bcc566","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"timezone\": \"<string>\", // (Required) This must be a valid timezone from the provided 'timezones' of the system.\n  \"language\": \"<string>\" // (Required) This must be a valid language code from the provided 'languages' of the system.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/settings","description":"<h3 id=\"api-endpoint-to-update-the-timezone-and-language-of-an-employee\">API Endpoint to update the timezone and language of an employee.</h3>\n<p>This endpoint allows for the update of employee preferences, including preferred language for the system interface and desired timezone settings.</p>\n<p><em><strong>Note:</strong></em> <em>Both language and timezone must be valid values provided by the 'timezones' &amp; 'languages' of the system.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>timezone</td>\n<td>string</td>\n<td>true</td>\n<td>This must be a valid timezone from the provided 'timezones' of the system.</td>\n<td>e.g. Europe/Athens</td>\n</tr>\n<tr>\n<td>language</td>\n<td>string</td>\n<td>true</td>\n<td>This must be a valid language code from the provided 'languages' of the system.</td>\n<td>e.g. en (for English)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","settings"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"7db09ba9-c4e7-4129-839c-9cc3b92cb0a3","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"timezone\": \"<string>\",\n  \"language\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/settings","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","settings"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"timezone\": \"Europe/Athens\",\n    \"language_locale\": \"en\",\n    \"created_at\": \"2023-11-15 14:45:25\",\n    \"updated_at\": \"2024-03-01 11:12:24\",\n    \"deleted_at\": null\n  }\n}"},{"id":"dd3d7128-c70b-42a8-b138-2e4467cfe406","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"timezone\": \"<string>\",\n  \"language\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/settings","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","settings"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"bd904a72-49ce-4329-bfdd-c8508e0d8623","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"timezone\": \"<string>\",\n  \"language\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/settings","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","settings"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"9c10e3d4-5c35-415f-bb30-0e35b9bcc566"},{"name":"Get employee assets","id":"1eb25cba-275d-44ca-9890-5decd3d13438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/assets?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-the-assets-that-are-assigned-to-an-employee\">API Endpoint to retrieve the assets that are assigned to an employee.</h3>\n<p>This endpoint retrieves comprehensive information regarding the assets (Inventory and Membership) assigned to the specified employee. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n<p>In addition to pagination parameters, users can customize the order and sorting of the retrieved data.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","assets"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum ['assing_date', 'name', 'category', 'type', 'serial_number']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"}],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"3ee66454-53ce-4926-bdd8-124ead1fecd1","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/assets?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","assets"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 11,\n        \"name\": \"membership-name\",\n        \"asset_category_id\": 6,\n        \"serial_number\": null,\n        \"label\": null,\n        \"cost_frequency\": \"per-month\",\n        \"cost_model\": \"per-user\",\n        \"cost\": \"15.99\",\n        \"purchase_date\": \"2024-02-01\",\n        \"warranty_end_date\": null,\n        \"asset_status_id\": 2,\n        \"asset_type_id\": 2,\n        \"description\": \"This is a description...\",\n        \"created_at\": \"2024-02-14 09:28:07\",\n        \"updated_at\": \"2024-02-14 09:28:55\",\n        \"deleted_at\": null,\n        \"asset_type\": {\n          \"id\": 2,\n          \"slug\": \"subscription\",\n          \"name\": \"Subscription\"\n        },\n        \"asset_status\": {\n          \"id\": 2,\n          \"slug\": \"available\",\n          \"name\": \"Available\",\n          \"is_enabled\": 1\n        },\n        \"asset_category\": {\n          \"id\": 6,\n          \"name\": \"category-name\",\n          \"is_enabled\": 1,\n          \"created_at\": \"2023-11-16 09:04:03\",\n          \"updated_at\": \"2023-11-16 09:32:03\",\n          \"deleted_at\": null\n        }\n      }\n    ]\n  }\n}"},{"id":"8390249a-733e-45df-b7d4-6c4b38c2e07b","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/assets?limit=<integer>&offset=<integer>&order=<string>&sort=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","assets"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"1eb25cba-275d-44ca-9890-5decd3d13438"},{"name":"Get employee available assets","id":"aef2df74-20fa-47b9-9bff-f23c040057f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/available-assets","description":"<h3 id=\"api-endpoint-to-retrieve-the-assets-that-are-available-to-be-assigned-to-an-employee\">API Endpoint to retrieve the assets that are available to be assigned to an employee.</h3>\n<p>This endpoint provides a comprehensive list of available assets, accessible to the specified employee, within the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","available-assets"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"570b33ef-1580-433e-87f0-745603649e5d","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/available-assets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","available-assets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 19,\n      \"name\": \"inventory-name\",\n      \"asset_category_id\": 1,\n      \"asset_type_id\": 1,\n      \"asset_type\": {\n        \"id\": 1,\n        \"slug\": \"inventory\",\n        \"name\": \"Inventory\"\n      },\n      \"asset_category\": {\n        \"id\": 1,\n        \"name\": \"category-name\",\n        \"asset_type_id\": 1\n      }\n    }\n  ]\n}"},{"id":"9a791b7f-6c04-4b57-b90d-68a558e31f6d","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/available-assets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","available-assets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"74a94b22-87cc-44b7-8125-ecda5a590667","name":"Internal server error (500)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/available-assets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","available-assets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Error message...\",\n    \"code\": \"HY000\",\n    \"hr_code\": 100\n  }\n}"}],"_postman_id":"aef2df74-20fa-47b9-9bff-f23c040057f9"},{"name":"Assign assets to a specified employee","id":"03df2902-bef2-4f59-a16a-b212a4ededd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"assets\" : [\"<integer>\"] // (Required) Array of Asset Ids. (Both membership and Inventory Assets). The assets status on these assets must be 'avaialable'.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/assign-assets","description":"<h3 id=\"api-endpoint-to-assign-assets-to-a-specified-employee\">API Endpoint to assign assets to a specified employee.</h3>\n<p>This endpoint facilitates the assignment of assets (both Inventory and Membership type) to a specified employee. The request body should include an array of assets to be assigned. It's important to ensure that the selected assets are available for assignment to the specified employee.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>assets</td>\n<td>array</td>\n<td>true</td>\n<td>Array of Asset Ids. (Both membership and Inventory Assets). The asset status on these assets must be 'avaialable'.</td>\n<td>e.g. [1,2,3,4]</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","assign-assets"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"03037dab-7cd7-4784-88ff-a63f3566f248","name":"Simple boolean response","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/assign-assets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","assign-assets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"87f60ac7-b317-4dbe-b9fe-3d7cbdb8b2ad","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/assign-assets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","assign-assets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"1eba423c-db5a-4899-9f8f-ef9542670592","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/assign-assets","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","assign-assets"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"03df2902-bef2-4f59-a16a-b212a4ededd7"},{"name":"Upload employee's avatar","id":"cc95da8f-fc63-4579-9c70-30b7370a1ec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"avatar","description":"<p>(Required) Image of employee's avatar. The current image must not surpass 10MB. Valid formats (jpng, jpg, jpeg, svg, webp)</p>\n","type":"file","value":null}]},"url":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","description":"<h3 id=\"api-endpoint-to-upload-the-avatar-of-the-specified-employee\">API Endpoint to upload the avatar of the specified employee.</h3>\n<p>This endpoint enables the update of the avatar (photo) for the specified employee. The uploaded image should be in one of the <strong>valid formats:</strong> png, jpg, jpeg, svg, or webp, and must not exceed 10MB in size.</p>\n<hr />\n<p>Filenames within the system must not start with any illegal character or symbol (e.g. <code>@</code> (at sign), <code>$</code> (dollar sign), <code>%</code> (percent), <code>&amp;</code> (ampersand)) and should maintain a reasonable length, ensuring they do not exceed 250 characters.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>avatar</td>\n<td>file</td>\n<td>true</td>\n<td>Image of employee's avatar. The current image must not surpass 10MB. Valid formats (  <br />png, jpg, jpeg, svg, webp  <br />)</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","avatar"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"75a51d89-3ee9-463b-afd4-09fceb38467d","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","avatar"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employee\": {\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1_1710511790.jpeg...\"\n    }\n  }\n}"},{"id":"6ee28b28-cc46-4bb4-adef-cc2566a6c1d0","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","avatar"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"d81e3af1-ec67-4d5a-ab41-ecf392d5cacd","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","avatar"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"cc95da8f-fc63-4579-9c70-30b7370a1ec1"},{"name":"Delete employee's avatar","id":"dd63f42d-a447-4054-acae-8b3c9865f0d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","description":"<h3 id=\"api-endpoint-to-delete-employees-avatar\">API Endpoint to delete employee's avatar.</h3>\n<p>This endpoint deletes the avatar (photo) of the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","avatar"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"538ced13-284f-43d8-8176-51ca595c0ed3","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","avatar"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employee\": {\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1_1710511790.jpeg...\"\n    }\n  }\n}"},{"id":"ace68f2b-210d-45eb-a073-67ed730869dc","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/avatar","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","avatar"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"dd63f42d-a447-4054-acae-8b3c9865f0d6"},{"name":"Get employee working days","id":"fc04bfa8-4b6d-43b9-9509-01c35ee79c51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/working-days","description":"<p>This endpoint returns the domain working days configuration and the employee-specific working days override (if set) for the given employee.</p>\n<p>Working days use numeric values where 1 corresponds to Monday, 2 to Tuesday, 3 to Wednesday, 4 to Thursday, 5 to Friday, 6 to Saturday, and 7 to Sunday.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","working-days"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"1bde5349-dd86-4f73-a71a-fb6da194737c","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"domain_working_days\": [\n      1,\n      2,\n      3,\n      4,\n      5\n    ],\n    \"working_days\": [\n      1,\n      2,\n      3,\n      4\n    ]\n  }\n}"},{"id":"7036bcfd-e044-4101-95f2-64a76c40d6b7","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"977b72c5-628f-4031-badd-d1ff3d4aeedc","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"fc04bfa8-4b6d-43b9-9509-01c35ee79c51"},{"name":"Update employee working days","id":"609e6c08-2087-413d-af3a-c13f97f896f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/working-days","description":"<p>This endpoint updates the employee-specific working days override for the given employee. Requires permission to update employee working days.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>working_days</td>\n<td>array</td>\n<td>no</td>\n<td>Employee-specific working days override. Send as a JSON array of integers (1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday, 7 = Sunday). Maximum 7 values; each element must be 1, 2, 3, 4, 5, 6, or 7. When omitted or JSON null, the override is cleared and domain defaults apply.</td>\n<td>e.g. <code>[1,2,3,4,5]</code>, e.g. <code>null</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","working-days"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"939b88ae-8769-4fec-a67c-9c664157af86","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"db3f03ee-c287-48e5-af69-1d6dc5145d9f","name":"Unprocessable Content (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"working_days\": [\n    0\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"working_days\": [\n        \"The field is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"4890290f-c5f6-4e20-a457-3eb769851373","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"3896616a-9ff7-44c4-974f-6d1c39b7c41e","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"working_days\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/working-days"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"609e6c08-2087-413d-af3a-c13f97f896f3"},{"name":"Get time off approvers for an employee","id":"bf91194e-7be4-4e1a-be6c-509e7b423685","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-request/approvers","description":"<p>This endpoint returns the time off approvers configured for the given employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-request","approvers"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"fc92ee65-7b15-44d3-9b7d-604eed5bf785","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 10,\n      \"employee_id\": 10,\n      \"first_name\": \"Alex\",\n      \"last_name\": \"Manager\",\n      \"is_manager\": true,\n      \"approval_required\": true,\n      \"photo_url\": \"https://example.com/storage/employees/10/photo.jpg\",\n      \"resized_photo_url\": \"https://example.com/storage/employees/10/photo-256.jpg\",\n      \"job_title_id\": 3,\n      \"job_title_name\": \"Engineering Manager\"\n    },\n    {\n      \"id\": 24,\n      \"employee_id\": 24,\n      \"first_name\": \"Sam\",\n      \"last_name\": \"Approver\",\n      \"is_manager\": false,\n      \"approval_required\": false,\n      \"photo_url\": \"https://example.com/storage/employees/24/photo.jpg\",\n      \"resized_photo_url\": \"https://example.com/storage/employees/24/photo-256.jpg\",\n      \"job_title_id\": 7,\n      \"job_title_name\": \"People Operations\"\n    }\n  ]\n}"},{"id":"b64b8ebb-5b10-44b8-9d66-62ea71fee3ad","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"60e15672-d578-4deb-9f2f-c400b5fb4bb4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"bf91194e-7be4-4e1a-be6c-509e7b423685"},{"name":"Replace time off approvers for an employee","id":"9bbd3246-76d5-49cb-8ffb-9cc0368b39a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"approvers\": [\n    {\n      \"employee_id\": 10,\n      \"approval_required\": true\n    },\n    {\n      \"employee_id\": 24,\n      \"approval_required\": false\n    }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-off-request/approvers","description":"<p>This endpoint replaces the time off approvers configured for the given employee. Requires permission to update employee time off approvers.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>approvers</td>\n<td>array</td>\n<td>yes</td>\n<td>Full list of time off approvers for the employee (replaces the existing configuration). Maximum 3 entries. The employee's direct manager must be included; do not include the employee themselves. Each object must include <code>employee_id</code> (integer, id of an existing non-terminated employee who is not a future hire) and <code>approval_required</code> (boolean, JSON <code>true</code> or <code>false</code> only).</td>\n<td>e.g. <code>[{\"employee_id\":10,\"approval_required\":true},{\"employee_id\":24,\"approval_required\":false}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-off-request","approvers"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"a4b87e6b-b420-4a3c-973f-d696d124f281","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"approvers\": [\n    {\n      \"employee_id\": 10,\n      \"approval_required\": true\n    },\n    {\n      \"employee_id\": 24,\n      \"approval_required\": false\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"d76e6f01-3daf-4d5f-a2da-e1b80b97487d","name":"Unprocessable Content (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"approvers\": [\n    {\n      \"employee_id\": 999999,\n      \"approval_required\": true\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"approvers\": [\n        \"The selected approvers list must include the manager.\"\n      ]\n    }\n  }\n}"},{"id":"282617b3-e3bf-4534-b78c-58885faffcdb","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"approvers\": [\n    {\n      \"employee_id\": 10,\n      \"approval_required\": true\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"a5619d5b-8fce-4855-baf8-75f728073151","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"approvers\": [\n    {\n      \"employee_id\": 10,\n      \"approval_required\": true\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/time-off-request/approvers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"9bbd3246-76d5-49cb-8ffb-9cc0368b39a4"},{"name":"List employee compensation bonuses","id":"dff1cad9-4a8c-4639-9d93-9a1f84fc7642","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-bonus","description":"<p>This endpoint returns compensation bonus records for the given employee. Results are ordered by effective_date (descending) .  Requires permission to view employee compensation.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-bonus"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"fc38426d-427a-4da7-9376-ab2b075e871c","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 7,\n      \"employee_id\": 1,\n      \"amount\": \"250.00\",\n      \"currency\": \"USD\",\n      \"effective_date\": \"2026-04-01\",\n      \"reason_text\": \"Performance bonus\",\n      \"created_at\": \"2026-04-01 10:00:00\",\n      \"updated_at\": \"2026-04-01 10:00:00\",\n      \"deleted_at\": null\n    }\n  ]\n}"},{"id":"0753ee6e-6de2-4fbb-b99c-ce2b41b1e364","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"9e45144c-60b2-44cd-bd8b-5f4478fa4f03","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"dff1cad9-4a8c-4639-9d93-9a1f84fc7642"},{"name":"Get employee compensation bonus","id":"57689c68-399e-4c1f-ac84-7069e4666008","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-bonus/:bonus","description":"<p>This endpoint returns a single compensation bonus record for the given employee. Requires permission to view employee compensation.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-bonus",":bonus"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Compensation bonus id (<code>employee_compensation_bonuses.id</code>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"bonus"}]}},"response":[{"id":"75149d4e-d047-474a-91cf-a13b16ce91a6","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 7,\n    \"employee_id\": 1,\n    \"amount\": \"250.00\",\n    \"currency\": \"USD\",\n    \"effective_date\": \"2026-04-01\",\n    \"reason_text\": \"Performance bonus\",\n    \"created_at\": \"2026-04-01 10:00:00\",\n    \"updated_at\": \"2026-04-01 10:00:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"a56c9139-6775-402d-85e4-0a5767def876","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/7"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5d5ecae9-11de-4ff2-8d06-fb06df539b2c","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/7"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"eaff9f6d-c4a1-4d51-811d-162a006c9332","name":"Not Found (404) — bonus not for employee","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee Compensation Record not found.\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"57689c68-399e-4c1f-ac84-7069e4666008"},{"name":"Create employee compensation bonus","id":"a755a613-53de-4aa0-8d70-26c1fbcd84ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"reason_text\": \"Performance bonus\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-bonus","description":"<p>This endpoint creates a compensation bonus record for the given employee. Requires permission to create employee compensation.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Effective date in <code>YYYY-MM-DD</code> format. Must be on or after the employee hire date. When the employee has a termination date and is not a future rehire, must be before the termination date.</td>\n<td>e.g. <code>2026-04-01</code></td>\n</tr>\n<tr>\n<td>amount</td>\n<td>string</td>\n<td>yes</td>\n<td>Numeric amount. Up to 8 digits before the decimal point; optional decimal point with 1 or 2 digits after.</td>\n<td>e.g. <code>250.00</code></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>no</td>\n<td>Supported currency code (ISO 4217). Allowed codes can be retrieved from GET <a href=\"https://pubapi.talenthr.io/v1/currencies\">https://pubapi.talenthr.io/v1/currencies</a>. When omitted, defaults to the tenant company currency.</td>\n<td>e.g. <code>USD</code></td>\n</tr>\n<tr>\n<td>reason_text</td>\n<td>string</td>\n<td>no</td>\n<td>Optional free-text reason.</td>\n<td>e.g. <code>Performance bonus</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-bonus"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"afbc6b79-0fa9-4fe5-80d2-86971d161c80","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"reason_text\": \"Performance bonus\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8,\n    \"employee_id\": 1,\n    \"amount\": \"250.00\",\n    \"currency\": \"USD\",\n    \"effective_date\": \"2026-04-01\",\n    \"reason_text\": \"Performance bonus\",\n    \"created_at\": \"2026-05-06 11:10:00\",\n    \"updated_at\": \"2026-05-06 11:10:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"b68c85f6-9d70-4c37-a64e-1e2c5f85f526","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"250.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"43a18df5-8a17-4fde-aa3a-b280ab234d9e","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"250.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"b760abc2-e87b-4c24-a5b4-5e3dbda5b5a8","name":"Unprocessable Content (422) — validation","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"\",\n  \"amount\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"effective_date\": [\n      \"The effective date field is required.\"\n    ],\n    \"amount\": [\n      \"The amount field is required.\"\n    ]\n  }\n}"},{"id":"8535eddc-d103-4fb4-968a-c65765a80826","name":"Modify terminated employee (452)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"250.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus"},"status":"Modify Terminated Employee","code":452,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee's contract has terminated. Account can not be modified.\",\n    \"hr_code\": 101\n  }\n}"}],"_postman_id":"a755a613-53de-4aa0-8d70-26c1fbcd84ca"},{"name":"Update employee compensation bonus","id":"f2bb02bb-2409-4cf5-9f28-2dd52a4b9baf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"300.00\",\n  \"currency\": \"USD\",\n  \"reason_text\": \"Updated bonus\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-bonus/:bonus","description":"<p>This endpoint updates a compensation bonus record for the given employee. Requires permission to update employee compensation.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>effective_date</td>\n<td>string</td>\n<td>yes</td>\n<td>Effective date in <code>YYYY-MM-DD</code> format. Must be on or after the employee hire date. When the employee has a termination date and is not a future rehire, must be before the termination date.</td>\n<td>e.g. <code>2026-04-01</code></td>\n</tr>\n<tr>\n<td>amount</td>\n<td>string</td>\n<td>yes</td>\n<td>Numeric amount. Up to 8 digits before the decimal point; optional decimal point with 1 or 2 digits after.</td>\n<td>e.g. <code>300.00</code></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>no</td>\n<td>Supported currency code (ISO 4217). Allowed codes can be retrieved from GET <a href=\"https://pubapi.talenthr.io/v1/currencies\">https://pubapi.talenthr.io/v1/currencies</a>. When omitted, defaults to the tenant company currency.</td>\n<td>e.g. <code>USD</code></td>\n</tr>\n<tr>\n<td>reason_text</td>\n<td>string</td>\n<td>no</td>\n<td>Optional free-text reason.</td>\n<td>e.g. <code>Updated bonus</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-bonus",":bonus"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Compensation bonus id (<code>employee_compensation_bonuses.id</code>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"bonus"}]}},"response":[{"id":"63817a13-9a6f-42d5-908f-50ac9e1838e5","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"300.00\",\n  \"currency\": \"USD\",\n  \"reason_text\": \"Updated bonus\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8,\n    \"employee_id\": 1,\n    \"amount\": \"300.00\",\n    \"currency\": \"USD\",\n    \"effective_date\": \"2026-04-01\",\n    \"reason_text\": \"Updated bonus\",\n    \"created_at\": \"2026-05-06 11:10:00\",\n    \"updated_at\": \"2026-05-06 11:12:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"31c7ea2d-415c-4888-906c-913515e31f64","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"300.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"01e8de37-cfa8-437a-97e7-842a8746050b","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"300.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"b900a868-5325-4519-8083-3630c668f9b4","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"300.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\EmployeeCompensationBonus] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"552f84a9-ae54-4502-9d80-bf41f373ff1e","name":"Unprocessable Content (422) — validation","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"\",\n  \"amount\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"effective_date\": [\n      \"The effective date field is required.\"\n    ],\n    \"amount\": [\n      \"The amount field is required.\"\n    ]\n  }\n}"},{"id":"58d73f66-5086-4460-bd98-556581dc78e7","name":"Modify terminated employee (452)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"effective_date\": \"2026-04-01\",\n  \"amount\": \"300.00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Modify Terminated Employee","code":452,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee's contract has terminated. Account can not be modified.\",\n    \"hr_code\": 101\n  }\n}"}],"_postman_id":"f2bb02bb-2409-4cf5-9f28-2dd52a4b9baf"},{"name":"Delete employee compensation bonus","id":"d298e88e-4c35-4e3f-935b-7bfe6162a67e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/compensation-bonus/:bonus","description":"<p>This endpoint deletes a compensation bonus record for the given employee. Requires permission to delete employee compensation.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","compensation-bonus",":bonus"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Compensation bonus id (<code>employee_compensation_bonuses.id</code>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"bonus"}]}},"response":[{"id":"bcd3efea-85bd-4247-9015-b8ef2cc66790","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"f3da48c6-e93c-469e-b0d1-7bec3e2ce717","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"112a2a6f-fd1b-4b2e-8e56-365ba32fccc2","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"e80749b0-39cc-4306-a23d-f822223a8b71","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\EmployeeCompensationBonus] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"49d3188f-76be-4906-b9f6-5fdbd05cfa83","name":"Modify terminated employee (452)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/1/compensation-bonus/8"},"status":"Modify Terminated Employee","code":452,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Employee's contract has terminated. Account can not be modified.\",\n    \"hr_code\": 101\n  }\n}"}],"_postman_id":"d298e88e-4c35-4e3f-935b-7bfe6162a67e"}],"id":"ae73a6bd-0ee2-4f29-825c-a7e5a3d736ac","_postman_id":"ae73a6bd-0ee2-4f29-825c-a7e5a3d736ac","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Employee custom fields","item":[{"name":"List employee custom fields","id":"26516df2-e268-4abd-8af8-5b14b87b3159","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields","description":"<p>This endpoint returns tenant employee custom fields grouped into standard fields, extra fields, and custom (tenant-defined) fields. Each row includes its type and, where applicable, sub-field summaries. Requires permission to list employee custom fields.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"653f64f2-043f-4f32-ae55-3d6a2a4a7715","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"standard_fields\": [\n      {\n        \"id\": 14,\n        \"name\": \"City\",\n        \"slug\": \"city\",\n        \"custom_field_type_id\": 1,\n        \"subfields\": 0,\n        \"is_predefined\": true,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"expiration_id\": null,\n        \"always_active\": false,\n        \"is_editable\": true,\n        \"form\": null,\n        \"custom_field_type\": {\n          \"id\": 1,\n          \"slug\": \"single-line-text\",\n          \"name\": \"Single line text\",\n          \"is_visible\": true\n        },\n        \"subfields_names\": [],\n        \"field_name\": \"city\"\n      }\n    ],\n    \"extra_fields\": [\n      {\n        \"id\": 22,\n        \"name\": \"Personal Phone\",\n        \"slug\": \"phone\",\n        \"custom_field_type_id\": 1,\n        \"subfields\": 0,\n        \"is_predefined\": true,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"expiration_id\": null,\n        \"always_active\": false,\n        \"is_editable\": true,\n        \"form\": null,\n        \"custom_field_type\": {\n          \"id\": 1,\n          \"slug\": \"single-line-text\",\n          \"name\": \"Single line text\",\n          \"is_visible\": true\n        },\n        \"subfields_names\": []\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"id\": 500,\n        \"name\": \"Certification ID\",\n        \"slug\": \"certification-id\",\n        \"custom_field_type_id\": 1,\n        \"subfields\": 0,\n        \"is_predefined\": false,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"expiration_id\": null,\n        \"always_active\": false,\n        \"is_editable\": true,\n        \"form\": null,\n        \"custom_field_type\": {\n          \"id\": 1,\n          \"slug\": \"single-line-text\",\n          \"name\": \"Single line text\",\n          \"is_visible\": true\n        },\n        \"subfields_names\": []\n      }\n    ]\n  }\n}"},{"id":"5ae5722f-c455-4786-b40f-a8d334f22c10","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"cb747593-43cb-4156-a9d2-8263a638935a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"26516df2-e268-4abd-8af8-5b14b87b3159"},{"name":"Get employee custom field","id":"c326ae4f-5881-4f63-9ed8-706bd6dda8b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/:customField","description":"<p>This endpoint returns one employee custom field with its type, choice values when applicable, sub-fields when the custom field is a group, and the permissions matrix for employee profile access. Requires permission to view that custom field.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":customField"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id (custom_fields.id).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customField"}]}},"response":[{"id":"bc8c3c46-3043-4ea9-b7e7-f1dbca19b281","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 500,\n    \"name\": \"Certification tier\",\n    \"slug\": \"certification-tier\",\n    \"custom_field_type_id\": 4,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": true,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-03-01 10:00:00\",\n    \"updated_at\": \"2026-03-15 14:30:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null,\n    \"permissions\": [\n      {\"resource\": null, \"user_role_id\": 3, \"action\": \"view\", \"value\": true, \"condition\": \"all\"},\n      {\"resource\": null, \"user_role_id\": 3, \"action\": \"edit\", \"value\": true, \"condition\": \"manager\"}\n    ],\n    \"sub_fields\": [],\n    \"custom_field_type\": {\"id\": 4, \"slug\": \"single-choice\", \"name\": \"Single choice\", \"is_visible\": true},\n    \"custom_field_values\": [\n      {\"id\": 901, \"custom_field_id\": 500, \"name\": \"Bronze\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-01 10:00:05\", \"deleted_at\": null},\n      {\"id\": 902, \"custom_field_id\": 500, \"name\": \"Silver\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-01 10:00:05\", \"deleted_at\": null},\n      {\"id\": 903, \"custom_field_id\": 500, \"name\": \"Gold\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-01 10:00:05\", \"deleted_at\": null}\n    ]\n  }\n}"},{"id":"b3213734-ece3-4373-90c5-aa024f7d62d2","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"2edf1ce2-c906-47f4-a6da-04c3f81bbe48","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"64431bd3-0015-4851-9fa3-b1d03a5ae970","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\CustomFields\\\\CustomField] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"c326ae4f-5881-4f63-9ed8-706bd6dda8b2"},{"name":"Create employee custom field","id":"dd11e336-d6a6-488c-bf64-b9682d074436","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Unique field name among tenant-defined fields (server rules also apply for predefined groups). Maximum 255 characters. Example: Certification tier.\n  \"custom_field_type_id\": \"<integer>\", // (Required) Type: integer. On create, use an id from GET https://pubapi.talenthr.io/v1/custom-fields-values → data.type_values where is_visible is true (group type is not valid for new fields). On update, must equal the field's existing type id.\n  \"permissions\": [ // (Required) Type: array. Each row: user_role_id (integer — each id from GET https://pubapi.talenthr.io/v1/user-roles → data[].id); action and condition strings must match GET https://pubapi.talenthr.io/v1/custom-fields-values → data.permission_values (actions, conditions).\n    {\n      \"user_role_id\": \"<integer>\",\n      \"action\": \"view\",\n      \"condition\": [\"all\"]\n    },\n    {\n      \"user_role_id\": \"<integer>\",\n      \"action\": \"edit\",\n      \"condition\": [\"manager\"]\n    }\n  ],\n  \"values\": [ // (Conditional) Omit for non-choice types. Required when custom_field_type_id is single-choice or multiple-choice (see GET https://pubapi.talenthr.io/v1/custom-fields-values type_values). Each object: text (string, required); id (integer) optional on update.\n    {\"text\": \"<string>\"},\n    {\"text\": \"<string>\"},\n    {\"text\": \"<string>\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields","description":"<h3>Create employee custom field</h3>\n\n<p>Creates a tenant-defined employee custom field with a display name, field type, role-based permissions, and—when the type is single-choice or multiple-choice—a list of option labels.</p>\n<p>Requires permission to create employee custom fields.</p>\n<p>Use <strong>Get type and permission values</strong> (<code>GET</code> <code>custom-fields-values</code>) for allowed type ids (<code>data.type_values</code>; do not use the group type on create) and permission actions/conditions. Use <strong>List user roles</strong> (<code>GET</code> <code>user-roles</code>) for <code>user_role_id</code> values in each permissions row.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Display name for the field. Maximum 255 characters; must be unique per server rules.</td>\n<td>e.g. <code>Certification tier</code></td>\n</tr>\n<tr>\n<td>custom_field_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Field type id from <strong>Get type and permission values</strong> (<code>data.type_values</code>). Use an entry where <code>is_visible</code> is true; the group type is not accepted on create. The type cannot be changed after creation.</td>\n<td>e.g. <code>4</code></td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>array</td>\n<td>yes</td>\n<td>Access rules by user role. Each object: <code>user_role_id</code> (from <strong>List user roles</strong>), <code>action</code>, and <code>condition</code> (string or array of strings). Allowed <code>action</code> and <code>condition</code> values are listed under <code>data.permission_values</code> in <strong>Get type and permission values</strong>.</td>\n<td>e.g. <code>[{\"user_role_id\":3,\"action\":\"view\",\"condition\":[\"all\"]},{\"user_role_id\":3,\"action\":\"edit\",\"condition\":[\"manager\"]}]</code></td>\n</tr>\n<tr>\n<td>values</td>\n<td>array</td>\n<td>conditional</td>\n<td>Required when the field type is single-choice or multiple-choice. Each object requires <code>text</code> (option label). On update, existing options may include <code>id</code>.</td>\n<td>e.g. <code>[{\"text\":\"Bronze\"},{\"text\":\"Silver\"},{\"text\":\"Gold\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>There are no path parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4fc07dcf-b9d2-4415-99d3-1d224007705b","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Certification tier\",\n  \"custom_field_type_id\": 4,\n  \"permissions\": [\n    {\"user_role_id\": 3, \"action\": \"view\", \"condition\": [\"all\"]},\n    {\"user_role_id\": 3, \"action\": \"edit\", \"condition\": [\"manager\"]}\n  ],\n  \"values\": [\n    {\"text\": \"Bronze\"},\n    {\"text\": \"Silver\"},\n    {\"text\": \"Gold\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 500,\n    \"name\": \"Certification tier\",\n    \"slug\": \"certification-tier\",\n    \"custom_field_type_id\": 4,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": true,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-03-01 10:00:00\",\n    \"updated_at\": \"2026-03-15 14:30:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null,\n    \"permissions\": [\n      {\"resource\": null, \"user_role_id\": 3, \"action\": \"view\", \"value\": true, \"condition\": \"all\"},\n      {\"resource\": null, \"user_role_id\": 3, \"action\": \"edit\", \"value\": true, \"condition\": \"manager\"}\n    ],\n    \"sub_fields\": [],\n    \"custom_field_type\": {\"id\": 4, \"slug\": \"single-choice\", \"name\": \"Single choice\", \"is_visible\": true},\n    \"custom_field_values\": [\n      {\"id\": 901, \"custom_field_id\": 500, \"name\": \"Bronze\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-01 10:00:05\", \"deleted_at\": null},\n      {\"id\": 902, \"custom_field_id\": 500, \"name\": \"Silver\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-01 10:00:05\", \"deleted_at\": null},\n      {\"id\": 903, \"custom_field_id\": 500, \"name\": \"Gold\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-01 10:00:05\", \"deleted_at\": null}\n    ]\n  }\n}"},{"id":"174789cc-a5b2-4cc6-8ad0-43d1e2f2e4e0","name":"Unprocessable Entity (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\"name\":\"\"}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\"The name field is required.\"]\n  }\n}"},{"id":"50687051-44b9-4826-8fa7-91d7f57abc9a","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"e0b08cd6-5fc6-4f29-a72c-cbe863b59703","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"dd11e336-d6a6-488c-bf64-b9682d074436"},{"name":"Update employee custom field","id":"aceb8816-7caa-428b-9366-0c3308f121dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Example: Certification tier (updated).\n  \"custom_field_type_id\": \"<integer>\", // (Required) Must match the field's existing type id (same id you would read from data.type_values via GET https://pubapi.talenthr.io/v1/custom-fields-values).\n  \"permissions\": [ // (Required) Type: array. Each row: user_role_id (integer — each id from GET https://pubapi.talenthr.io/v1/user-roles → data[].id); action and condition strings must match GET https://pubapi.talenthr.io/v1/custom-fields-values → data.permission_values (actions, conditions).\n    {\n      \"user_role_id\": \"<integer>\",\n      \"action\": \"view\",\n      \"condition\": [\"all\"]\n    },\n    {\n      \"user_role_id\": \"<integer>\",\n      \"action\": \"edit\",\n      \"condition\": [\"manager\"]\n    }\n  ],\n  \"values\": [ // (Conditional) Omit for non-choice types. Required when the field type is single-choice or multiple-choice. Each object: text (string, required); id (integer) optional on update for existing options.\n    {\"id\": \"<integer>\", \"text\": \"<string>\"},\n    {\"id\": \"<integer>\", \"text\": \"<string>\"},\n    {\"text\": \"<string>\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/:customField","description":"<h3>Update employee custom field</h3>\n\n<p>Updates an existing tenant-defined employee custom field identified in the path. The payload uses the same shape as create: name, permissions, and option labels for choice types. The field type id must match the field’s current type and cannot be changed.</p>\n<p>Requires permission to update the custom field.</p>\n<p>Use <strong>Get type and permission values</strong> and <strong>List user roles</strong> for the same reference data as create.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Display name for the field. Maximum 255 characters; must satisfy uniqueness rules.</td>\n<td>e.g. <code>Certification tier (updated)</code></td>\n</tr>\n<tr>\n<td>custom_field_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Must equal the field’s existing type id (the API rejects type changes). Compare with <code>data.type_values</code> from <strong>Get type and permission values</strong>.</td>\n<td>e.g. <code>4</code></td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>array</td>\n<td>yes</td>\n<td>Access rules by user role. Each object: <code>user_role_id</code>, <code>action</code>, and <code>condition</code>. See <code>data.permission_values</code> in <strong>Get type and permission values</strong>.</td>\n<td>e.g. <code>[{\"user_role_id\":3,\"action\":\"view\",\"condition\":[\"all\"]},{\"user_role_id\":3,\"action\":\"edit\",\"condition\":[\"manager\"]}]</code></td>\n</tr>\n<tr>\n<td>values</td>\n<td>array</td>\n<td>conditional</td>\n<td>Required when the field type is single-choice or multiple-choice. Each object requires <code>text</code>. Include <code>id</code> on objects that update existing options.</td>\n<td>e.g. <code>[{\"id\":901,\"text\":\"Bronze\"},{\"id\":902,\"text\":\"Silver\"},{\"text\":\"Platinum\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":customField"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id to update.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customField"}]}},"response":[{"id":"7b40ef3d-a9fa-4a0c-ba8b-30fdd84914d4","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Certification tier\",\n  \"custom_field_type_id\": 4,\n  \"permissions\": [\n    {\"user_role_id\": 3, \"action\": \"view\", \"condition\": [\"all\"]},\n    {\"user_role_id\": 3, \"action\": \"edit\", \"condition\": [\"manager\"]}\n  ],\n  \"values\": [\n    {\"id\": 901, \"text\": \"Bronze\"},\n    {\"id\": 902, \"text\": \"Silver\"},\n    {\"text\": \"Platinum\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 500,\n    \"name\": \"Certification tier\",\n    \"slug\": \"certification-tier\",\n    \"custom_field_type_id\": 4,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": true,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-03-01 10:00:00\",\n    \"updated_at\": \"2026-03-16 09:15:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null,\n    \"permissions\": [\n      {\"resource\": null, \"user_role_id\": 3, \"action\": \"view\", \"value\": true, \"condition\": \"all\"},\n      {\"resource\": null, \"user_role_id\": 3, \"action\": \"edit\", \"value\": true, \"condition\": \"manager\"}\n    ],\n    \"sub_fields\": [],\n    \"custom_field_type\": {\"id\": 4, \"slug\": \"single-choice\", \"name\": \"Single choice\", \"is_visible\": true},\n    \"custom_field_values\": [\n      {\"id\": 901, \"custom_field_id\": 500, \"name\": \"Bronze\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-16 09:15:00\", \"deleted_at\": null},\n      {\"id\": 902, \"custom_field_id\": 500, \"name\": \"Silver\", \"created_at\": \"2026-03-01 10:00:05\", \"updated_at\": \"2026-03-16 09:15:00\", \"deleted_at\": null},\n      {\"id\": 904, \"custom_field_id\": 500, \"name\": \"Platinum\", \"created_at\": \"2026-03-16 09:15:00\", \"updated_at\": \"2026-03-16 09:15:00\", \"deleted_at\": null}\n    ]\n  }\n}"},{"id":"5addbc52-907e-4ebb-9943-1663f6860c74","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\"name\":\"\"}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\"The name field is required.\"]\n  }\n}"},{"id":"a55755c6-8c73-4d69-91cb-a363c28caf31","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"977ce412-2b14-4ad7-bb67-3d84d7d3f2e4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"aceb8816-7caa-428b-9366-0c3308f121dd"},{"name":"Toggle employee custom field enabled","id":"1931daeb-0f87-49f3-9b19-e453aab0ae7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/:customField/toggle-enabled","description":"<h3>Toggle employee custom field enabled</h3>\n\n<p>Enables or disables the employee custom field identified in the path. When the field is a group, the same enabled state is applied to its sub-fields. Fields marked as always active cannot be disabled.</p>\n<p>Requires permission to update the custom field and a subscription that includes the Custom Fields feature (activation).</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>is_enabled</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Requested enabled state for the field (and its sub-fields when the path identifies a group). JSON booleans only. Fields that are always active reject attempts to disable.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":customField","toggle-enabled"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id (custom_fields.id).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customField"}]}},"response":[{"id":"99a39578-95e7-4459-bc96-de5cf160f1cf","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500/toggle-enabled"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 500,\n    \"name\": \"Certification tier\",\n    \"slug\": \"certification-tier\",\n    \"custom_field_type_id\": 4,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": false,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-03-01 10:00:00\",\n    \"updated_at\": \"2026-03-15 15:00:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null\n  }\n}"},{"id":"2c959394-082f-4f55-8f27-e0985affab08","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500/toggle-enabled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"42367a9d-e58c-4627-ba0d-7832512e9c82","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500/toggle-enabled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"852858f7-5044-4384-add7-52aadc1d9b2d","name":"Forbidden (403) — subscription","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500/toggle-enabled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Custom Fields enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"e23dac19-860b-44c5-83da-44724a3d65fc","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/99999999/toggle-enabled"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\CustomFields\\\\CustomField] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"2ebbfc1d-0bf4-4659-ad82-81b2dd625e6d","name":"Conflict (409) — always active","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/2/toggle-enabled"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Field Name can't be disabled\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"eaa15a34-0817-4811-9f93-56c5c7a5e851","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/500/toggle-enabled"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"is_enabled\": [\n      \"The is enabled field is required.\"\n    ]\n  }\n}"}],"_postman_id":"1931daeb-0f87-49f3-9b19-e453aab0ae7b"},{"name":"Create employee custom field expiration","id":"e72e0a7f-1bdf-41b6-802f-01707f7b0715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 30,\n  \"expiration_date\": \"2027-06-01\",\n  \"recipients\": [\n    { \"id\": 101 }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/:expirable/expirations","description":"<h3>Create employee custom field expiration</h3>\n\n<p>Creates an expiration reminder schedule on a date-type employee custom field that does not already have one. Defines when reminders start relative to the expiration date, the expiration date itself, and who receives notifications.</p>\n<p>Requires permission to create employee custom fields.</p>\n<p>The path custom field must use the date type (see Get type and permission values, GET <a href=\"https://pubapi.talenthr.io/v1/custom-fields-values\">https://pubapi.talenthr.io/v1/custom-fields-values</a> ).</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>notify_before</td>\n<td>integer</td>\n<td>yes</td>\n<td>Whole days before <code>expiration_date</code> when reminder notifications begin. Minimum 0.</td>\n<td>e.g. <code>30</code></td>\n</tr>\n<tr>\n<td>expiration_date</td>\n<td>string (date)</td>\n<td>no</td>\n<td>Calendar date (<code>YYYY-MM-DD</code>). When omitted, the server derives a date from <code>notify_before</code>. When provided, must be on or after today plus <code>notify_before</code> days.</td>\n<td>e.g. <code>2027-06-01</code></td>\n</tr>\n<tr>\n<td>recipients</td>\n<td>array</td>\n<td>yes</td>\n<td>Who receives expiration reminders. Send as a JSON array (a JSON string is also accepted). At most three objects. Each object must include either <code>id</code> (employee id) or <code>email</code>, not both. Employee ids must exist and must not refer to terminated employees; emails must be valid; duplicate targets are rejected.</td>\n<td>e.g. <code>[{\"id\": 101}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":expirable","expirations"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id (custom_fields.id). The referenced field uses the date type (see GET https://pubapi.talenthr.io/v1/custom-fields-values).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expirable"}]}},"response":[{"id":"aafc43e8-39b6-426c-84cb-4aa95bd9b539","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 30,\n  \"expiration_date\": \"2027-06-01\",\n  \"recipients\": [\n    { \"id\": 101 }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 91001,\n    \"expiration_date\": \"2027-06-01\",\n    \"object_type\": \"App\\\\Models\\\\CustomFields\\\\CustomField\",\n    \"object_id\": 510,\n    \"notify_before\": 30,\n    \"created_at\": \"2026-05-05 09:15:00\",\n    \"updated_at\": \"2026-05-05 09:15:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"27120cd0-49be-4169-8a88-9f513a9c4aa2","name":"Unprocessable Entity (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": -1,\n  \"expiration_date\": \"2020-01-01\",\n  \"recipients\": [\n    { \"id\": 101, \"email\": \"person@example.com\" }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"notify_before\": [\n      \"The notify before field must be at least 0.\"\n    ],\n    \"expiration_date\": [\n      \"The expiration date field must be a date after or equal to 2026-06-06.\"\n    ],\n    \"recipients\": [\n      \"The defined recipients are not valid.\"\n    ]\n  }\n}"},{"id":"8289350a-10ed-445e-b3f7-279cb30daa55","name":"Conflict (409)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 14,\n  \"expiration_date\": \"2028-01-15\",\n  \"recipients\": [{ \"id\": 101 }]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Expiration already exists for this object.\",\n    \"hr_code\": 12,\n    \"hr_code_key\": \"object_has_expiration\",\n    \"code\": 409\n  }\n}"},{"id":"502f9e85-b5ef-405f-9cc2-2708994f6200","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 30,\n  \"expiration_date\": \"2027-06-01\",\n  \"recipients\": [{ \"id\": 101 }]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"c1c5130b-9ee2-484a-bc86-337709f27b2a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 30,\n  \"expiration_date\": \"2027-06-01\",\n  \"recipients\": [{ \"id\": 101 }]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"e72e0a7f-1bdf-41b6-802f-01707f7b0715"},{"name":"Get employee custom field expiration","id":"262a4df7-e55c-4f53-bd85-83aec8794d88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/:expirable/expirations/:expiration","description":"<p>This endpoint returns one expiration for the referenced employee custom field, including recipients with condensed employee and user fields for employee targets. expiration refers to expirations.id wired to expirable (custom_fields.id) via object_type / object_id. Authorization matches Create employee custom field.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":expirable","expirations",":expiration"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id (<strong>custom_fields.id</strong>) for this expiration schedule.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expirable"},{"description":{"content":"<p>(integer) Expiration row id (<strong>expirations.id</strong>) linked to this custom field via <strong><code>object_type</code></strong> / <strong><code>object_id</code></strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expiration"}]}},"response":[{"id":"d9140d15-0f2c-4d50-88d6-01c94de95d48","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 91001,\n    \"expiration_date\": \"2027-06-01\",\n    \"object_type\": \"App\\\\Models\\\\CustomFields\\\\CustomField\",\n    \"object_id\": 510,\n    \"notify_before\": 30,\n    \"created_at\": \"2026-05-05 09:15:00\",\n    \"updated_at\": \"2026-05-05 09:15:00\",\n    \"deleted_at\": null,\n    \"recipients\": [\n      {\n        \"id\": 7201,\n        \"expiration_id\": 91001,\n        \"recipient_id\": 101,\n        \"recipient_email\": null,\n        \"created_at\": \"2026-05-05 09:15:00\",\n        \"updated_at\": \"2026-05-05 09:15:00\",\n        \"employee\": {\n          \"id\": 101,\n          \"user_id\": 502,\n          \"photo_url\": null,\n          \"resized_photo_url\": null,\n          \"user\": {\n            \"id\": 502,\n            \"first_name\": \"Alex\",\n            \"email\": \"alex.nguyen@example.com\",\n            \"last_name\": \"Nguyen\"\n          }\n        }\n      },\n      {\n        \"id\": 7202,\n        \"expiration_id\": 91001,\n        \"recipient_id\": null,\n        \"recipient_email\": \"compliance-review@example.com\",\n        \"created_at\": \"2026-05-05 09:15:01\",\n        \"updated_at\": \"2026-05-05 09:15:01\",\n        \"employee\": null\n      }\n    ]\n  }\n}"},{"id":"9aff4093-cbdb-4c01-b586-0f7e24f43f7b","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Expiration] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"017284b8-fcf4-413d-afd2-f8c649e94c9f","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"b8908646-39b3-4a94-8e2e-161de2dec9f7","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"262a4df7-e55c-4f53-bd85-83aec8794d88"},{"name":"Update employee custom field expiration","id":"4df4efab-3c1c-4532-91e0-fa43708bd667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 45,\n  \"expiration_date\": \"2027-09-01\",\n  \"recipients\": [\n    { \"id\": 101 },\n    { \"email\": \"compliance-review@example.com\" }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/:expirable/expirations/:expiration","description":"<h3>Update employee custom field expiration</h3>\n\n<p>Updates the expiration reminder schedule for a date-type employee custom field. Replaces notify_before, expiration_date, and recipients for the expiration identified in the path.</p>\n<p>Requires permission to create employee custom fields.</p>\n<p>The expiration id in the path must belong to the custom field in the path.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>notify_before</td>\n<td>integer</td>\n<td>yes</td>\n<td>Whole days before <code>expiration_date</code> when reminder notifications begin. Minimum 0.</td>\n<td>e.g. <code>30</code></td>\n</tr>\n<tr>\n<td>expiration_date</td>\n<td>string (date)</td>\n<td>no</td>\n<td>Calendar date (<code>YYYY-MM-DD</code>). When omitted, the server derives a date from <code>notify_before</code>. When provided, must be on or after today plus <code>notify_before</code> days.</td>\n<td>e.g. <code>2027-06-01</code></td>\n</tr>\n<tr>\n<td>recipients</td>\n<td>array</td>\n<td>yes</td>\n<td>Who receives expiration reminders. Send as a JSON array (a JSON string is also accepted). At most three objects. Each object must include either <code>id</code> (employee id) or <code>email</code>, not both. Employee ids must exist and must not refer to terminated employees; emails must be valid; duplicate targets are rejected.</td>\n<td>e.g. <code>[{\"id\": 101}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":expirable","expirations",":expiration"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id (<strong>custom_fields.id</strong>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expirable"},{"description":{"content":"<p>(integer) Expiration row id (<strong>expirations.id</strong>) for <strong><code>expirable</code></strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expiration"}]}},"response":[{"id":"7755015b-b579-433e-adc5-db9251424d3f","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 45,\n  \"expiration_date\": \"2027-09-01\",\n  \"recipients\": [\n    { \"id\": 101 },\n    { \"email\": \"compliance-review@example.com\" }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 91001,\n    \"expiration_date\": \"2027-09-01\",\n    \"object_type\": \"App\\\\Models\\\\CustomFields\\\\CustomField\",\n    \"object_id\": 510,\n    \"notify_before\": 45,\n    \"created_at\": \"2026-05-05 09:15:00\",\n    \"updated_at\": \"2026-05-05 09:35:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"62f42014-1362-4278-b49c-4d33152a9a08","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": -1,\n  \"expiration_date\": \"invalid-date\",\n  \"recipients\": [\n    { \"id\": 101, \"email\": \"person@example.com\" }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"notify_before\": [\n      \"The notify before field must be at least 0.\"\n    ],\n    \"expiration_date\": [\n      \"The expiration date does not match the format YYYY-MM-DD.\"\n    ],\n    \"recipients\": [\n      \"The defined recipients are not valid.\"\n    ]\n  }\n}"},{"id":"4d8c0a0f-2df7-438a-946a-3976ec5f7e89","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}\n","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Expiration] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"f83396a5-6949-4a42-b529-3b6fbc5af3b2","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 30,\n  \"expiration_date\": \"2027-06-01\",\n  \"recipients\": [{ \"id\": 101 }]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5664e138-efb8-431e-8741-d0b6a3edf491","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"notify_before\": 30,\n  \"expiration_date\": \"2027-06-01\",\n  \"recipients\": [{ \"id\": 101 }]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"4df4efab-3c1c-4532-91e0-fa43708bd667"},{"name":"Delete employee custom field expiration","id":"3cff61f9-9fed-4e1e-bb64-8d853d61a289","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/:expirable/expirations/:expiration","description":"<p>This endpoint deletes the expiration (<strong><code>expiration</code></strong>) belonging to <strong><code>expirable</code></strong>, removes related recipient rows, and clears <strong><code>expiration_id</code></strong> on that custom field. Authorization matches <strong>Create employee custom field</strong>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":expirable","expirations",":expiration"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id (<strong>custom_fields.id</strong>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expirable"},{"description":{"content":"<p>(integer) Expiration row id (<strong>expirations.id</strong>) attached to <strong><code>expirable</code></strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"expiration"}]}},"response":[{"id":"753a222b-32a5-40df-9952-3987367a59f6","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"b76b7bb1-bd52-4f02-8855-1a1dd5e630b3","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Expiration] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"f0c18213-8595-4a84-b41b-8d6ce827ace7","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"26063563-eb5a-47c5-98bf-1b9910223780","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/510/expirations/91001"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"3cff61f9-9fed-4e1e-bb64-8d853d61a289"},{"name":"Delete employee custom field","id":"29f1bb52-09ab-446d-9c9e-64b8897d2831","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/:customField","description":"<p>This endpoint deletes a tenant-defined employee custom field and related employee values, expirations, choice values, and report references where applicable. Predefined fields cannot be deleted. Requires permission to delete the custom field.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields",":customField"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant employee custom field id to delete.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customField"}]}},"response":[{"id":"77741adc-25da-4b5a-96b8-93510075cdaf","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"06e22512-daae-4bc9-9da0-7b0fe88decd3","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"fe9806ae-fc1b-4ca9-8cc9-54d48bc72031","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields/500"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"29f1bb52-09ab-446d-9c9e-64b8897d2831"}],"id":"8c98a362-b922-4f2a-b976-326a85d52dec","_postman_id":"8c98a362-b922-4f2a-b976-326a85d52dec","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Employee (Education Records)","item":[{"name":"Get Employee's Education records","id":"a1f42f71-8385-4954-aefb-5d2c31ae8e0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","description":"<h3>API endpoint to get the education information of an employee.</h3>\n\n<p>This API endpoint get all the education items of the employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","education-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"2b14d2f0-5fb6-46a9-881b-a70548bf9a16","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"education-records\": [\n    {\n      \"id\": 1,\n      \"employee_id\": 1,\n      \"education_level_id\": 4,\n      \"grad_date\": \"2024-02-08\",\n      \"department\": \"a-department\",\n      \"institution\": \"an-institution\",\n      \"created_at\": \"2024-02-09 12:43:36\",\n      \"updated_at\": \"2024-02-09 12:43:36\",\n      \"deleted_at\": null,\n      \"education_level\": {\n        \"id\": 4,\n        \"name\": \"BSc\"\n      }\n    },\n    {\n      \"id\": 2,\n      \"employee_id\": 1,\n      \"education_level_id\": 2,\n      \"grad_date\": \"2023-12-05\",\n      \"department\": \"a-department\",\n      \"institution\": \"an-institution\",\n      \"created_at\": \"2024-02-09 13:58:46\",\n      \"updated_at\": \"2024-02-09 13:58:46\",\n      \"deleted_at\": null,\n      \"education_level\": {\n        \"id\": 2,\n        \"name\": \"Other\"\n      }\n    }\n  ]\n}"},{"id":"42d8c8bd-5492-4c0e-82a2-4c3cf885d5af","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"a1f42f71-8385-4954-aefb-5d2c31ae8e0a"},{"name":"Create an education record","id":"9bfda70f-266c-42d1-bf0c-9d63b6f91670","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\", // Required field. Unique identifier of education levels.This must be a valid education level from the provided 'education levels' of the system.\n  \"grad_date\": \"<date>\", // Required field. The graduation date must be formatted as 'YYYY-MM-DD'.\n  \"department\": \"<string>\", //  Required field. Maximum character limit:191 characters.\n  \"institution\": \"<string>\" //  Required field. Maximum character limit:191 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","description":"<h3>API endpoint to create an education record for an employee.</h3>\n\n<p>This API endpoint enables the creation of education record for the specified employee. You should provide the employee's gradutation date, the department ,the institution and the education level id.</p>\n<p><em><strong>Note:</strong></em> <em>You can locate the desired education level ID by accessing the 'education levels' endpoint.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>education_level_id</td>\n<td>integer</td>\n<td>true</td>\n<td>Unique identifier of education levels.</td>\n<td>e.g 1</td>\n</tr>\n<tr>\n<td>grad_date</td>\n<td>date</td>\n<td>true</td>\n<td>The graduation date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g 2024-03-01</td>\n</tr>\n<tr>\n<td>department</td>\n<td>string</td>\n<td>true</td>\n<td>A division of a large organization such as university. Maximum character limit:191 characters.</td>\n<td>e.g Computer Science</td>\n</tr>\n<tr>\n<td>institution</td>\n<td>string</td>\n<td>true</td>\n<td>An organization founded for a education purpose. Maximum character limit:191 characters.</td>\n<td>e.g University of Crete</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","education-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"21403f26-8209-430b-850e-de9e8fcf108a","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\",\n  \"grad_date\": \"<date>\",\n  \"department\": \"<string>\",\n  \"institution\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"education_level_id\": 3,\n    \"grad_date\": \"2024-02-01\",\n    \"department\": \"a-department\",\n    \"institution\": \"an-institution\",\n    \"employee_id\": 1,\n    \"updated_at\": \"2024-02-09 14:02:56\",\n    \"created_at\": \"2024-02-09 14:02:56\",\n    \"id\": 4,\n    \"education_level\": {\n      \"id\": 3,\n      \"name\": \"MSc\"\n    }\n  }\n}"},{"id":"023f43dc-161f-4e90-b4e2-bdd9a040a8db","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\",\n  \"grad_date\": \"<date>\",\n  \"department\": \"<string>\",\n  \"institution\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"d6cfdae3-00ee-4415-abd5-7ccce95321b0","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\",\n  \"grad_date\": \"<date>\",\n  \"department\": \"<string>\",\n  \"institution\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"9bfda70f-266c-42d1-bf0c-9d63b6f91670"},{"name":"Update an education record","id":"9ad8d2c2-72e0-4251-8c47-51ffa537ef8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\", // Required field. Unique identifier of education levels.This must be a valid education level from the provided 'education levels' of the system.\n  \"grad_date\": \"<date>\", // Required field. The graduation date must be formatted as 'YYYY-MM-DD'.\n  \"department\": \"<string>\", //  Required field. Maximum character limit:191 characters.\n  \"institution\": \"<string>\" //  Required field. Maximum character limit:191 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","description":"<h3>API endpoint to update the specified education record of an employee.</h3>\n\n<p>This API endpoint updates an education record for the specified employee. You should provide the employee's gradutation date, the department ,the institution and the education level id.</p>\n<p><em><strong>Note:</strong></em> <em>You can locate the desired education level ID by accessing the 'education levels' endpoint.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>education_level_id</td>\n<td>integer</td>\n<td>true</td>\n<td>Unique identifier of education levels.</td>\n<td>e.g 1</td>\n</tr>\n<tr>\n<td>grad_date</td>\n<td>date</td>\n<td>true</td>\n<td>The graduation date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g 2024-03-01</td>\n</tr>\n<tr>\n<td>department</td>\n<td>string</td>\n<td>true</td>\n<td>A division of a large organization such as university. Maximum character limit:191 characters.</td>\n<td>e.g Computer Science</td>\n</tr>\n<tr>\n<td>institution</td>\n<td>string</td>\n<td>true</td>\n<td>An organization founded for a education purpose. Maximum character limit:191 characters.</td>\n<td>e.g University of Crete</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","education-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"7d9c0751-1174-4fc4-b439-a8e4ba6b2d5b","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\",\n  \"grad_date\": \"<date>\",\n  \"department\": \"<string>\",\n  \"institution\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"education_level_id\": 3,\n    \"grad_date\": \"2024-02-01\",\n    \"department\": \"a-department\",\n    \"institution\": \"an-institution\",\n    \"employee_id\": 1,\n    \"updated_at\": \"2024-02-09 14:02:56\",\n    \"created_at\": \"2024-02-09 14:02:56\",\n    \"id\": 4,\n    \"education_level\": {\n      \"id\": 3,\n      \"name\": \"MSc\"\n    }\n  }\n}"},{"id":"b06a9a22-a03d-44e9-8a6c-4c3b4035edcd","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\",\n  \"grad_date\": \"<date>\",\n  \"department\": \"<string>\",\n  \"institution\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"dca34546-c601-4d36-9b7e-8201b179347e","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"education_level_id\": \"<integer>\",\n  \"grad_date\": \"<date>\",\n  \"department\": \"<string>\",\n  \"institution\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"9ad8d2c2-72e0-4251-8c47-51ffa537ef8b"},{"name":"Delete an education record","id":"1f29557d-4ba4-46a8-9d83-dc5606d95f73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","description":"<h3>API endpoint to delete the specified education record of an employee.</h3>\n\n<p>This endpoint deletes the specified education record for the specified employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","education-records",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"085a0bd3-b559-45b6-8531-517fa6af7da1","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"c4aabf50-355a-4f71-8a9f-ae2f4ea2e77f","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/education-records/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","education-records",":objectId"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"1f29557d-4ba4-46a8-9d83-dc5606d95f73"}],"id":"9ebdef55-bb7f-4c90-b3ad-8db16f4db9f1","_postman_id":"9ebdef55-bb7f-4c90-b3ad-8db16f4db9f1","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Directory","item":[{"name":"Get a directory's filters","id":"3e62d1e6-64c4-4afa-b3fc-bfe92476a244","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/directory/filters","description":"<h3 id=\"api-endpoint-to-retrieves-the-available-filters-for-directory\">API Endpoint to retrieves the available filters for directory.</h3>\n<p>This endpoint allows you to fetch a list of valid filters for the directory. Utilize the 'id' field from the returned objects to filter employees in the 'directory' endpoint.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["directory","filters"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"27b41ba8-5707-45ab-9fdd-47a6a71d40b8","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/directory/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"departments\": [\n      {\n        \"id\": 6,\n        \"name\": \"Administration & Operations\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": 7,\n        \"name\": \"Research & Development\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": 8,\n        \"name\": \"Marketing & Sales\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": 9,\n        \"name\": \"Human Resources\",\n        \"object_type\": \"department\"\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 12,\n        \"name\": \"North America\",\n        \"object_type\": \"division\"\n      },\n      {\n        \"id\": 13,\n        \"name\": \"Europe\",\n        \"object_type\": \"division\"\n      }\n    ],\n    \"locations\": [\n      {\n        \"id\": 33,\n        \"name\": \"New York\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": 34,\n        \"name\": \"California\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": 35,\n        \"name\": \"London\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": 36,\n        \"name\": \"Athens\",\n        \"object_type\": \"location\"\n      }\n    ],\n    \"emp_state\": [\n      {\n        \"id\": 1,\n        \"name\": \"Full-Time\",\n        \"object_type\": \"employment_status\"\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Part-Time\",\n        \"object_type\": \"employment_status\"\n      }\n    ],\n    \"time_off_types\": [\n      {\n        \"id\": 4,\n        \"name\": \"Vacation\",\n        \"slug\": \"vacation\"\n      },\n      {\n        \"id\": 1,\n        \"name\": \"Sick Leave\",\n        \"slug\": \"sick-leave\"\n      }\n    ]\n  }\n}"}],"_postman_id":"3e62d1e6-64c4-4afa-b3fc-bfe92476a244"},{"name":"Get directory's info","id":"5774f898-11c8-4957-a0c8-9fcaa404a4d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/directory?limit=<integer>&offset=<integer>&filter=<string>&custom_fields=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-all-the-employees-with-some-information-for-each-of-them\">API Endpoint to retrieve all the employees with some information for each of them.</h3>\n<p>This endpoint retrieves comprehensive information regarding the system's employee directory.</p>\n<p>You can paginate results using <code>limit</code> and <code>offset</code>. If <code>limit</code> is omitted, it defaults to 10. The maximum supported value for <code>limit</code> is 100. If <code>offset</code> is omitted, it defaults to 0.</p>\n<p>In addition to pagination parameters, you can utilize filters to precisely retrieve the data you want. You can find suitable IDs for the current filters by accessing the 'directory filters' endpoint.</p>\n<p>Optionally, you can request employee custom fields to be included in the response by providing the <code>custom_fields</code> query parameter as a comma-separated list of field slugs (from <code>GET https://pubapi.talenthr.io/v1/custom-fields</code>). Standard/predefined field slugs are merged at the root of each row, while custom (non-predefined) field slugs are returned under the <code>custom_fields</code> array.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["directory"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Filters for the directory arrays with their Ids (integer), ('location' =&gt; [],'department' =&gt; [],'division' =&gt; [],'time_off' =&gt; [],'time_off_type' =&gt; [],'emp_state' =&gt; [],'time_off_status' =&gt; []). Example: location=36;emp_state=1,2,3,5;</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>Comma-separated employee custom field slugs to include in each row. You can include slugs for standard/predefined fields and custom (non-predefined) fields as returned by <code>GET https://pubapi.talenthr.io/v1/custom-fields</code>.</p>\n<p>When provided:</p>\n<ul>\n<li>Standard/predefined fields are merged at the root of each <code>rows[]</code> item (e.g., <code>address</code>, <code>city</code>, <code>postal_code</code>, <code>country</code>, <code>sec_address</code>, etc.).</li>\n<li>Custom (non-predefined) fields are returned in the <code>custom_fields</code> array (employee-show format).</li>\n</ul>\n<p>Unknown or disabled slugs return a 422 validation error.</p>\n","type":"text/plain"},"key":"custom_fields","value":"<string>"}],"variable":[]}},"response":[{"id":"a8f7b644-fb9f-49af-81ad-2e022da29504","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/directory?limit=<integer>&offset=<integer>&filter=location=36;emp_state=1,2,3,5;&custom_fields=custom-field-001,custom-field-002,address,city,postal-code,country,sec-address,sec-city,sec-postal-code,sec-country","host":["https://pubapi.talenthr.io/v1"],"path":["directory"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"filter","value":"location=36;emp_state=1,2,3,5;"},{"key":"custom_fields","value":"custom-field-001,custom-field-002,address,city,postal-code,country,sec-address,sec-city,sec-postal-code,sec-country"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 19,\n        \"user_id\": 19,\n        \"reports_to_employee_id\": 1,\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png...\",\n        \"u_id\": 19,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"email\": \"jdoe@example.com\",\n        \"division_id\": 13,\n        \"division\": \"Europe\",\n        \"employment_status_id\": 1,\n        \"employment_status_name\": \"Full-Time\",\n        \"department_id\": 6,\n        \"department\": \"Administration & Operations\",\n        \"job_title_id\": 26,\n        \"job_title\": \"Business Analyst\",\n        \"location_id\": 36,\n        \"location\": \"Athens\",\n        \"termination_date\": null,\n        \"hire_date\": \"2023-11-28\",\n        \"linked_in_url\": null,\n        \"work_phone\": null,\n        \"address\": \"Address name\",\n        \"city\": \"Athens\",\n        \"postal_code\": \"105 63\",\n        \"country\": \"Greece\",\n        \"sec_address\": \"Secondary address name\",\n        \"sec_city\": \"Athens\",\n        \"sec_postal_code\": \"105 63\",\n        \"sec_country\": \"Greece\",\n        \"custom_fields\": [\n          {\n            \"custom_field_id\": 47,\n            \"custom_field_slug\": \"custom-field-001\",\n            \"custom_field_name\": \"Custom Field 001\",\n            \"values\": [\n              {\n                \"value\": \"https://www.mydomain.com/custom-fields\"\n              }\n            ]\n          },\n          {\n            \"custom_field_id\": 48,\n            \"custom_field_slug\": \"custom-field-002\",\n            \"custom_field_name\": \"Custom-field-002\",\n            \"values\": [\n              {\n                \"value\": \"62\"\n              },\n              {\n                \"value\": \"64\"\n              }\n            ]\n          }\n        ],\n        \"user_role\": {\n          \"id\": 3,\n          \"slug\": \"employee\",\n          \"name\": \"Employee\"\n        }\n      }\n    ]\n  }\n}"}],"_postman_id":"5774f898-11c8-4957-a0c8-9fcaa404a4d5"},{"name":"Get organization chart's info","id":"92b92b51-9f76-4225-a875-15a010435954","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/organization-chart","description":"<h3 id=\"api-endpoint-to-retrieve-all-the-current-employees-with-their-managers\">API Endpoint to retrieve all the current employees with their managers.</h3>\n<p>This endpoint retrieves comprehensive information regarding the system's organization chart.</p>\n<p>The organization chart shows the company's internal structure by detailing the roles, and relationships between the employees of the company.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["organization-chart"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"9c568fc1-5cdb-4ed2-a35a-0323ab453899","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/organization-chart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"user_id\": 1,\n      \"reports_to_employee_id\": null,\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1700059519_NNcbnWBX.jpg...\",\n      \"u_id\": 1,\n      \"first_name\": \"Dimos\",\n      \"last_name\": \"Karras\",\n      \"email\": \"karras+1@openit.gr\",\n      \"job_title_id\": 18,\n      \"job_title\": \"Chief Executive Officer\",\n      \"user_role\": {\n        \"id\": \"1,\",\n        \"slug\": \"company-administrator\",\n        \"name\": \"Company Administrator\"\n      }\n    }\n  ]\n}"}],"_postman_id":"92b92b51-9f76-4225-a875-15a010435954"}],"id":"e60f8733-2361-4de1-b075-81eef595f260","_postman_id":"e60f8733-2361-4de1-b075-81eef595f260","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Calendar","item":[{"name":"Get a calendar's filters","id":"c2d36bff-b4aa-4c69-8cfd-21d0f7154b1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/calendar/filters","description":"<h3 id=\"api-endpoint-to-retrieve-the-available-filters-for-calendar\">API Endpoint to retrieve the available filters for calendar.</h3>\n<p>This endpoint allows you to fetch a list of valid filters for the system's calendar. Utilize the 'id' field from the returned objects to filter employees in the 'calendar' endpoint.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["calendar","filters"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"ce8423ae-4d79-4d55-8caa-23fcceef7c77","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/calendar/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"departments\": [\n      {\n        \"id\": 6,\n        \"name\": \"Administration & Operations\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": 7,\n        \"name\": \"Research & Development\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": 8,\n        \"name\": \"Marketing & Sales\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": 9,\n        \"name\": \"Human Resources\",\n        \"object_type\": \"department\"\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 12,\n        \"name\": \"North America\",\n        \"object_type\": \"division\"\n      },\n      {\n        \"id\": 13,\n        \"name\": \"Europe\",\n        \"object_type\": \"division\"\n      }\n    ],\n    \"locations\": [\n      {\n        \"id\": 33,\n        \"name\": \"New York\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": 34,\n        \"name\": \"California\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": 35,\n        \"name\": \"London\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": 36,\n        \"name\": \"Athens\",\n        \"object_type\": \"location\"\n      }\n    ],\n    \"emp_state\": [\n      {\n        \"id\": 1,\n        \"name\": \"Full-Time\",\n        \"object_type\": \"employment_status\"\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Part-Time\",\n        \"object_type\": \"employment_status\"\n      }\n    ],\n    \"time_off_types\": [\n      {\n        \"id\": 4,\n        \"name\": \"Vacation\",\n        \"slug\": \"vacation\"\n      },\n      {\n        \"id\": 1,\n        \"name\": \"Sick Leave\",\n        \"slug\": \"sick-leave\"\n      }\n    ],\n    \"time_off_status\": [\n      \"Approved\",\n      \"Pending\"\n    ]\n  }\n}"}],"_postman_id":"c2d36bff-b4aa-4c69-8cfd-21d0f7154b1f"},{"name":"Get calendar's info","id":"84368794-4ec7-4430-ba44-038ccb7d675a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/calendar?start_date=<date>&end_date=<date>&employee_id=<string>&filter=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-the-dates-that-each-employees-is-off-for-the-specified-date-range\">API Endpoint to retrieve the dates that each employee(s) is off, for the specified date range.</h3>\n<p>This endpoint retrieves comprehensive information regarding the system's calendar.</p>\n<p>The calendar endpoint provides information about employee time off and holidays. Users can filter this information based on various criteria, including pending time-offs, completed time-offs, time-offs for specific divisions, departments, locations, time off types, and employment statuses. Additionally, historical data of time-offs for terminated employees are also available. Besides the filters, you have the option to provide the <code>employee_id</code> parameter to the calendar endpoint. This allows you to specify the employee of your choice and retrieve his/her calendar data.</p>\n<p><em><strong>Note:</strong></em> <em>If the end date is not provided, the calendar period will extend from the start date provided to the end of the month in which the start date falls.</em></p>\n<hr />\n<p>You have the option to utilize filters to precisely retrieve the data you want. You can find suitable IDs for the current filters by accessing the 'directory filters' endpoint. The filters include information regarding time off status, location, division, departments, employment status, and time off types.</p>\n<p><em><strong>Note:</strong></em> <em>Filter options in the filters are represented as arrays of IDs. However, the</em> <em><strong>time off status</strong></em> <em>(as time_off in filters) for the calendar has two options and they are represented as strings: \"pending\" and \"approved\". These can be specified directly in the filters. (E.g. time_off=pending,approved;)</em></p>\n<p><em><strong>Note:</strong></em> <em>If no filter provided then the calendar will return all the employees (included the terminated) with their time-offs and the holidays for the specified period.</em></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["calendar"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(Required) Start date (Format can be either of YYYY-MM-DD or YYYY-MM)</p>\n","type":"text/plain"},"key":"start_date","value":"<date>"},{"description":{"content":"<p>End date (Optional, cannot exceed 2 years after the start date)</p>\n","type":"text/plain"},"key":"end_date","value":"<date>"},{"description":{"content":"<p>Employee Id</p>\n","type":"text/plain"},"key":"employee_id","value":"<string>"},{"description":{"content":"<p>Filters for the calendar. Arrays with their Ids (integer) except time_off, which is enum values [pending, approved], ('location' =&gt; [], 'department' =&gt; [], 'division' =&gt; [], 'time_off' =&gt; [], 'time_off_type' =&gt; [], 'emp_state' =&gt; [], 'time_off_status' =&gt; []). Example: department=10;location=36,37;division=17;emp_state=1,2,3,5;time_off_type=2;time_off=pending,approved;</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"5f8c9236-8c23-4cf3-89ce-7803a1af1302","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/calendar?start_date=<date>&end_date=<date>&employee_id=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["calendar"],"query":[{"key":"start_date","value":"<date>"},{"key":"end_date","value":"<date>"},{"key":"employee_id","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"employees\": [\n      {\n        \"id\": 16,\n        \"user_id\": 16,\n        \"reports_to_employee_id\": 14,\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/16_1700479590.jpg...\",\n        \"u_id\": 16,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"email\": \"jdoe@example.com\",\n        \"division_id\": 13,\n        \"division\": \"Europe\",\n        \"department_id\": 9,\n        \"department\": \"Human Resources\",\n        \"job_title_id\": 21,\n        \"job_title\": \"Human Resources Manager\",\n        \"work_phone\": \"phone-number\",\n        \"linked_in_url\": null,\n        \"location_id\": 36,\n        \"employment_status_id\": 1,\n        \"user_role\": {\n          \"id\": 2,\n          \"name\": \"HR Manager\",\n          \"slug\": \"hr-manager\"\n        },\n        \"holidays\": [\n          11,\n          12\n        ],\n        \"time_off_request\": [\n          {\n            \"id\": 9,\n            \"employee_id\": 16,\n            \"start_date\": \"2023-11-27\",\n            \"budget\": \"10.000\",\n            \"end_date\": \"2023-12-08\",\n            \"timeoff_type_id\": 2,\n            \"approved\": true,\n            \"allow_cancel\": true,\n            \"time_off_type\": {\n              \"id\": 2,\n              \"name\": \"WFH\",\n              \"slug\": \"wfh\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"}],"_postman_id":"84368794-4ec7-4430-ba44-038ccb7d675a"}],"id":"7663a144-9ed2-46b3-a108-c01080ffc159","_postman_id":"7663a144-9ed2-46b3-a108-c01080ffc159","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Applicant Tracking System (Job Positions)","item":[{"name":"Get all job positions","id":"79807c2a-c0e4-4cdc-82e5-b0240d3a457e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions","description":"<h3 id=\"api-endpoint-to-retrieve-the-available-job-positions\">API Endpoint to retrieve the available job positions.</h3>\n<p>This endpoint offers a comprehensive overview of available job positions within the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"3dd483df-bdd7-443f-acf8-b8f1a542be00","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2,\n      \"job_position_title\": \"job-position-title\",\n      \"is_remote\": false,\n      \"publish_date\": \"2023-12-11 11:13:32\",\n      \"end_date\": null,\n      \"slug\": \"job-position-slug\",\n      \"job_description\": \"This is a job description...\",\n      \"location_id\": 36,\n      \"department_id\": null,\n      \"employment_status_id\": 1,\n      \"job_position_status_id\": 2,\n      \"available_steps\": [\n        {\n          \"id\": 1,\n          \"name\": \"Applied\",\n          \"slug\": \"applied\",\n          \"editable\": 0,\n          \"is_enabled\": 1,\n          \"sort_order\": 1\n        },\n        {\n          \"id\": 4,\n          \"name\": \"Interview\",\n          \"slug\": \"interview\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 4\n        },\n        {\n          \"id\": 5,\n          \"name\": \"Hired\",\n          \"slug\": \"hired\",\n          \"editable\": 0,\n          \"is_enabled\": 1,\n          \"sort_order\": 5\n        }\n      ],\n      \"job_position_status_name\": \"Published\",\n      \"job_position_status_slug\": \"published\",\n      \"created_at\": \"2023-12-11 11:13:32\",\n      \"updated_at\": \"2023-12-11 11:13:32\",\n      \"deleted_at\": null,\n      \"applied_count\": 1,\n      \"processed_count\": 0,\n      \"hired_count\": 0,\n      \"address\": \"1, Likourgrou Street\",\n      \"city\": \"Athens\",\n      \"region\": \"Attica\",\n      \"postal_code\": \"10551\",\n      \"country\": \"GR\",\n      \"employment_type\": \"Hybrid\",\n      \"location_name\": \"Athens\",\n      \"location_address\": \"location-address\",\n      \"department_name\": null,\n      \"employment_status_name\": \"Full-Time\",\n      \"has_applications\": true\n    }\n  ]\n}"}],"_postman_id":"79807c2a-c0e4-4cdc-82e5-b0240d3a457e"},{"name":"Create a job position","id":"053334c7-ef9c-4e42-99d8-ff96fccaa98f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\", // The current title of the job position. Maximum character limit: 255 characters.\n  \"job_position_status\": \"<string>\", // The current status of the job position. Valid values are ['draft','published']\n  \"job_description\": \"<string>\", // Maximum character limit: 30000 characters. Required only when the job position status is 'published'.\n  \"available_steps\": [ // Array of available steps, for every 5 steps of the system. Each set must include the step's slug (string), name(string), and its enabled status (boolean). All 5 steps must be present.\n    { // First Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Second Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Third Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Fourth Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Fifth Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    }\n  ],\n  \"hiring_team\": [ // Array of employee Ids. This is the hiring team members for the job position.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"custom_questions\": [ // Optional array of ATS application custom question ids to associate with the job position. Use ids from GET https://pubapi.talenthr.io/v1/job-positions/custom-questions → data[].id\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"min_salary\": \"<number>\", // Optional min salary (up to 8 digits + optional 2 decimals).\n  \"max_salary\": \"<number>\", // Optional max salary (up to 8 digits + optional 2 decimals).\n  \"salary_currency\": \"<string>\", // Optional ISO currency code (max length 3). Required when min_salary is set.\n  \"salary_unit\": \"<string>\", // Optional salary unit. Valid values are ['hour','day','week','month','year']. Required when min_salary is set.\n  \"address\": \"<string>\", // Optional address.\n  \"city\": \"<string>\", // Optional city.\n  \"region\": \"<string>\", // Optional region/state.\n  \"country\": \"<string>\", // Optional country code (e.g. 'GR').\n  \"postal_code\": \"<string>\", // Optional postal/zip code.\n  \"employment_type\": \"<string>\", // Optional employment type. Valid values are ['Remote','On-site','Hybrid'].\n  \"department_id\": \"<integer>\",  // This must be a valid department from the provided 'departments' of the system.\n  \"location_id\": \"<integer>\", // Required only when the job position status is 'published'. This must be a valid location from the provided 'locations' of the system.\n  \"employment_status_id\": \"<integer>\", // This must be a valid employment status from the provided 'employment-statuses' of the system. Required only when the job position status is 'published'.\n  \"is_remote\": \"<boolean>\" // 'true' for Remote job Position, 'false' for non-Remote job Position\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions","description":"<h3 id=\"api-endpoint-to-create-a-new-job-position\">API Endpoint to create a new Job Position.</h3>\n<p>This endpoint facilitates the creation of a new job position. The request body for this endpoint should include a title and a description for the job position, the hiring team, interview steps, location, department, employment status (e.g., Full Time, Part Time), remote option (if applicable for a remote job), and the current status of the job position (draft or published).</p>\n<p><em><strong>Note:</strong></em> <em>Valid options for Location, Department, and Employment Status IDs can be found in the endpoints that return information about the system's 'locations', 'departments', and 'employment statuses'.</em></p>\n<p><strong>Available Steps:</strong></p>\n<p>The available steps in the system are predefined and consist of five steps, all of which must be present. They represent the interview process from the initial application stage to the final hiring decision.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Step</strong></th>\n<th><strong>Name</strong></th>\n<th><strong>Slug</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>First</td>\n<td>Applied</td>\n<td>applied</td>\n</tr>\n<tr>\n<td>Second</td>\n<td>Promising</td>\n<td>promising</td>\n</tr>\n<tr>\n<td>Third</td>\n<td>Phone Screen</td>\n<td>phone-screen</td>\n</tr>\n<tr>\n<td>Fourth</td>\n<td>Interview</td>\n<td>interview</td>\n</tr>\n<tr>\n<td>Fifth</td>\n<td>Hired</td>\n<td>hired</td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>Note:</strong></em> <em>The first and fifth steps are always enabled and cannot be disabled. You can only update the names of the steps and the enable property, which indicates whether the step is currently enabled or not.</em></p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>job_position_title</td>\n<td>string</td>\n<td>true</td>\n<td>The current title of the job position. Maximum character limit: 255 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>job_position_status</td>\n<td>enum</td>\n<td>true</td>\n<td>The current status of the job position. Valid values are ['draft','published']</td>\n<td>e.g. draft</td>\n</tr>\n<tr>\n<td>job_description</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 30000 characters. Required only when the job position status is 'published'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>available_steps</td>\n<td>array</td>\n<td>true</td>\n<td>Array of available steps, for every 5 steps of the system. Each step (object) must include the step's slug (string), name(string), and its enabled status (boolean). All 5 steps must be present. The first and the last step cannot be disabled.</td>\n<td>e.g. [{\"slug\":\"applied\", \"name\":\"Applied\",\"is_enabled\": false},...]</td>\n</tr>\n<tr>\n<td>hiring_team</td>\n<td>array</td>\n<td>false</td>\n<td>Array of employee Ids (Active and not Terminated employees). This is the hiring team members for the job position.</td>\n<td></td>\n</tr>\n<tr>\n<td>custom_questions</td>\n<td>array</td>\n<td>false</td>\n<td>Optional array of ATS application custom question ids to associate with this job position.</td>\n<td>Use ids from GET https://pubapi.talenthr.io/v1/job-positions/custom-questions → data[].id</td>\n</tr>\n<tr>\n<td>min_salary</td>\n<td>number</td>\n<td>false</td>\n<td>Optional minimum salary (up to 8 digits + optional 2 decimals).</td>\n<td>e.g. 1200.00</td>\n</tr>\n<tr>\n<td>max_salary</td>\n<td>number</td>\n<td>false</td>\n<td>Optional maximum salary (up to 8 digits + optional 2 decimals).</td>\n<td>e.g. 2500.00</td>\n</tr>\n<tr>\n<td>salary_currency</td>\n<td>string</td>\n<td>false</td>\n<td>Optional ISO currency code (max length 3). Required when min_salary is set.</td>\n<td>e.g. EUR</td>\n</tr>\n<tr>\n<td>salary_unit</td>\n<td>enum</td>\n<td>false</td>\n<td>Optional salary unit. Required when min_salary is set.</td>\n<td>hour, day, week, month, year</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>false</td>\n<td>Optional address.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>false</td>\n<td>Optional city.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>region</td>\n<td>string</td>\n<td>false</td>\n<td>Optional region/state.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>false</td>\n<td>Optional country code.</td>\n<td>e.g. GR</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>false</td>\n<td>Optional postal/zip code.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>enum</td>\n<td>false</td>\n<td>Optional employment type.</td>\n<td>Remote, On-site, Hybrid</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Required only when the job position status is 'published'. This must be a valid department from the provided 'departments' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Required only when the job position status is 'published'. This must be a valid location from the provided 'locations' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_status_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Required only when the job position status is 'published'. This must be a valid employment status from the provided 'employment-statuses' of the system. Required only when the job position status is 'published'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_remote</td>\n<td>boolean</td>\n<td>false</td>\n<td>'true' for Remote job Position, 'false' for non-Remote job Position</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"ccc53a54-9f49-4777-8804-a1c72def00a1","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\",\n  \"job_position_status\": \"<string>\",\n  \"job_description\": \"<string>\",\n  \"available_steps\": [\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    }\n  ],\n  \"hiring_team\": [\n    1,\n    2,\n    3\n  ],\n  \"department_id\": \"<integer>\",\n  \"location_id\": \"<integer>\",\n  \"employment_status_id\": \"<integer>\",\n  \"is_remote\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 4,\n    \"job_position_title\": \"job-title\",\n    \"department_id\": 42,\n    \"employment_status_id\": 1,\n    \"location_id\": 36,\n    \"is_remote\": false,\n    \"job_description\": \"<p>this is a job description...</p>\",\n    \"publish_date\": null,\n    \"end_date\": null,\n    \"slug\": \"job-title-slug\",\n    \"available_steps\": [\n      {\n        \"id\": 1,\n        \"name\": \"Applied\",\n        \"slug\": \"applied\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 1\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Promising\",\n        \"slug\": \"promising\",\n        \"editable\": 1,\n        \"is_enabled\": 0,\n        \"sort_order\": 2\n      },\n      {\n        \"id\": 3,\n        \"name\": \"Phone Screen\",\n        \"slug\": \"phone-screen\",\n        \"editable\": 1,\n        \"is_enabled\": 0,\n        \"sort_order\": 3\n      },\n      {\n        \"id\": 4,\n        \"name\": \"Interview\",\n        \"slug\": \"interview\",\n        \"editable\": 1,\n        \"is_enabled\": 1,\n        \"sort_order\": 4\n      },\n      {\n        \"id\": 5,\n        \"name\": \"Hired\",\n        \"slug\": \"hired\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 5\n      }\n    ],\n    \"job_position_status_id\": 1,\n    \"created_at\": \"2024-02-26 09:29:46\",\n    \"updated_at\": \"2024-02-26 09:29:46\",\n    \"deleted_at\": null,\n    \"tone\": \"balanced\",\n    \"min_salary\": 1200.00,\n    \"max_salary\": 2500.00,\n    \"salary_currency\": \"EUR\",\n    \"salary_unit\": \"month\",\n    \"address\": \"1, Likourgrou Street\",\n    \"city\": \"Athens\",\n    \"region\": \"Attica\",\n    \"country\": \"GR\",\n    \"postal_code\": \"10551\",\n    \"employment_type\": \"Hybrid\",\n    \"notification_manager_id\": 1,\n    \"location_name\": \"Athens\",\n    \"location_address\": \"1, Likourgrou Street, Athens, Greece 10551\",\n    \"department_name\": \"department-name\",\n    \"employment_status_name\": \"Full-Time\",\n    \"has_applications\": false,\n    \"custom_questions\": [\n      {\n        \"id\": 102,\n        \"body\": \"Which shift do you prefer?\",\n        \"is_active\": true,\n        \"is_required\": false,\n        \"custom_question_type_id\": 3,\n        \"created_at\": \"2026-05-02 14:30:00\",\n        \"updated_at\": \"2026-05-02 14:30:00\",\n        \"deleted_at\": null,\n        \"custom_question_type\": {\n          \"id\": 3,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\"\n        },\n        \"custom_answers\": [\n          {\n            \"id\": 501,\n            \"custom_question_id\": 102,\n            \"sort\": null,\n            \"body\": \"Day\",\n            \"meta\": null,\n            \"created_at\": \"2026-05-02 14:30:00\",\n            \"updated_at\": \"2026-05-02 14:30:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 502,\n            \"custom_question_id\": 102,\n            \"sort\": null,\n            \"body\": \"Night\",\n            \"meta\": null,\n            \"created_at\": \"2026-05-02 14:30:00\",\n            \"updated_at\": \"2026-05-02 14:30:00\",\n            \"deleted_at\": null\n          }\n        ]\n      }\n    ],\n    \"job_position_status\": {\n      \"id\": 1,\n      \"slug\": \"draft\",\n      \"name\": \"Draft\",\n      \"is_enabled\": 1\n    }\n  }\n}"},{"id":"bf65055c-11a7-40f6-ba48-01a866e0dce8","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\",\n  \"job_position_status\": \"<string>\",\n  \"job_description\": \"<string>\",\n  \"available_steps\": [\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    }\n  ],\n  \"hiring_team\": [\n    1,\n    2,\n    3\n  ],\n  \"custom_questions\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"min_salary\": \"<number>\",\n  \"max_salary\": \"<number>\",\n  \"salary_currency\": \"<string>\",\n  \"salary_unit\": \"<string>\",\n  \"address\": \"<string>\",\n  \"city\": \"<string>\",\n  \"region\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postal_code\": \"<string>\",\n  \"employment_type\": \"<string>\",\n  \"department_id\": \"<integer>\",\n  \"location_id\": \"<integer>\",\n  \"employment_status_id\": \"<integer>\",\n  \"is_remote\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"053334c7-ef9c-4e42-99d8-ff96fccaa98f"},{"name":"Get a job position","id":"2a40f6a0-2fc5-43b9-90f4-0bc188988e77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","description":"<p>This endpoint retrieves comprehensive information for a specified job position.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"918facd4-f3f1-4351-b39f-8c0d4a1c3b0d","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 4,\n    \"job_position_title\": \"job-title\",\n    \"department_id\": 42,\n    \"employment_status_id\": 1,\n    \"location_id\": 36,\n    \"is_remote\": false,\n    \"job_description\": \"<p>this is a job description...</p>\",\n    \"publish_date\": null,\n    \"end_date\": null,\n    \"slug\": \"job-title-slug\",\n    \"available_steps\": [\n      {\n        \"id\": 1,\n        \"name\": \"Applied\",\n        \"slug\": \"applied\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 1\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Promising\",\n        \"slug\": \"promising\",\n        \"editable\": 1,\n        \"is_enabled\": 0,\n        \"sort_order\": 2\n      },\n      {\n        \"id\": 3,\n        \"name\": \"Phone Screen\",\n        \"slug\": \"phone-screen\",\n        \"editable\": 1,\n        \"is_enabled\": 0,\n        \"sort_order\": 3\n      },\n      {\n        \"id\": 4,\n        \"name\": \"Interview\",\n        \"slug\": \"interview\",\n        \"editable\": 1,\n        \"is_enabled\": 1,\n        \"sort_order\": 4\n      },\n      {\n        \"id\": 5,\n        \"name\": \"Hired\",\n        \"slug\": \"hired\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 5\n      }\n    ],\n    \"job_position_status_id\": 1,\n    \"created_at\": \"2024-02-26 09:29:46\",\n    \"updated_at\": \"2024-02-26 09:29:46\",\n    \"deleted_at\": null,\n    \"tone\": \"balanced\",\n    \"min_salary\": 1200.00,\n    \"max_salary\": 2500.00,\n    \"salary_currency\": \"EUR\",\n    \"salary_unit\": \"month\",\n    \"address\": \"1, Likourgrou Street\",\n    \"city\": \"Athens\",\n    \"region\": \"Attica\",\n    \"postal_code\": \"10551\",\n    \"country\": \"GR\",\n    \"employment_type\": \"Hybrid\",\n    \"notification_manager_id\": 1,\n    \"location_name\": \"Athens\",\n    \"location_address\": \"1, Likourgrou Street, Athens, Greece 10551\",\n    \"department_name\": \"department-name\",\n    \"employment_status_name\": \"Full-Time\",\n    \"has_applications\": false,\n    \"job_position_status\": {\n      \"id\": 1,\n      \"slug\": \"draft\",\n      \"name\": \"Draft\",\n      \"is_enabled\": 1\n    },\n    \"hiring_team\": [\n      {\n        \"id\": 19,\n        \"job_position_id\": 9,\n        \"employee_id\": 15,\n        \"created_at\": \"2024-02-26 09:29:46\",\n        \"updated_at\": \"2024-02-26 09:29:46\"\n      }\n    ],\n    \"custom_questions\": [\n      {\n        \"id\": 102,\n        \"body\": \"Which shift do you prefer?\",\n        \"is_active\": true,\n        \"is_required\": false,\n        \"custom_question_type_id\": 3,\n        \"created_at\": \"2026-05-02 14:30:00\",\n        \"updated_at\": \"2026-05-02 14:30:00\",\n        \"deleted_at\": null,\n        \"custom_question_type\": {\n          \"id\": 3,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\"\n        },\n        \"custom_answers\": [\n          {\n            \"id\": 501,\n            \"custom_question_id\": 102,\n            \"sort\": null,\n            \"body\": \"Day\",\n            \"meta\": null,\n            \"created_at\": \"2026-05-02 14:30:00\",\n            \"updated_at\": \"2026-05-02 14:30:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 502,\n            \"custom_question_id\": 102,\n            \"sort\": null,\n            \"body\": \"Night\",\n            \"meta\": null,\n            \"created_at\": \"2026-05-02 14:30:00\",\n            \"updated_at\": \"2026-05-02 14:30:00\",\n            \"deleted_at\": null\n          }\n        ]\n      }\n    ]\n  }\n}"},{"id":"8c36ce4b-ce24-476a-a674-e842fc40ad43","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"2a40f6a0-2fc5-43b9-90f4-0bc188988e77"},{"name":"Update a job position","id":"213fdc90-8172-438e-bafb-6f4632e14337","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\", // The current title of the job position. Maximum character limit: 255 characters.\n  \"job_position_status\": \"<string>\", // The current status of the job position. Valid values are ['draft','published']\n  \"job_description\": \"<string>\", // Maximum character limit: 30000 characters. Required only when the job position status is 'published'.\n  \"available_steps\": [ // Array of available steps, for every 5 steps of the system. Each set must include the step's slug (string), name(string), and its enabled status (boolean). All 5 steps must be present.\n    { // First Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Second Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Third Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Fourth Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    },\n    { // Fifth Step\n      \"slug\": \"<string>\",\n      \"name\": \"<string>\",\n      \"is_enabled\": \"<boolean>\"\n    }\n  ],\n  \"hiring_team\": [ // Array of employee Ids. This is the hiring team members for the job position.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"custom_questions\": [ // Optional array of ATS application custom question ids to associate with the job position. Use ids from GET https://pubapi.talenthr.io/v1/job-positions/custom-questions → data[].id\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"min_salary\": \"<number>\", // Optional min salary (up to 8 digits + optional 2 decimals).\n  \"max_salary\": \"<number>\", // Optional max salary (up to 8 digits + optional 2 decimals).\n  \"salary_currency\": \"<string>\", // Optional ISO currency code (max length 3). Required when min_salary is set.\n  \"salary_unit\": \"<string>\", // Optional salary unit. Valid values are ['hour','day','week','month','year']. Required when min_salary is set.\n  \"address\": \"<string>\", // Optional address.\n  \"city\": \"<string>\", // Optional city.\n  \"region\": \"<string>\", // Optional region/state.\n  \"country\": \"<string>\", // Optional country code (e.g. 'GR').\n  \"postal_code\": \"<string>\", // Optional postal/zip code.\n  \"employment_type\": \"<string>\", // Optional employment type. Valid values are ['Remote','On-site','Hybrid'].\n  \"department_id\": \"<integer>\",  // This must be a valid department from the provided 'departments' of the system.\n  \"location_id\": \"<integer>\", // Required only when the job position status is 'published'. This must be a valid location from the provided 'locations' of the system.\n  \"employment_status_id\": \"<integer>\", // This must be a valid employment status from the provided 'employment-statuses' of the system. Required only when the job position status is 'published'.\n  \"is_remote\": \"<boolean>\" // 'true' for Remote job Position, 'false' for non-Remote job Position\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","description":"<h3 id=\"api-endpoint-to-update-a-specified-job-position\">API Endpoint to update a specified job position.</h3>\n<p>This endpoint updates the specified job position. The request body for this endpoint should include a title and a description for the job position, the hiring team, interview steps, location, department, employment status (e.g., Full Time, Part Time), remote option (if applicable for a remote job), and the current status of the job position (draft or published).</p>\n<p><em><strong>Note:</strong></em> <em>Valid options for Location, Department, and Employment Status IDs can be found in the endpoints that return information about the system's 'locations', 'departments' and 'employment statuses'.</em></p>\n<p><strong>Available Steps:</strong></p>\n<p>The available steps in the system are predefined and consist of five steps, all of which must be present. They represent the interview process from the initial application stage to the final hiring decision.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Step</strong></th>\n<th><strong>Name</strong></th>\n<th><strong>Slug</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>First</td>\n<td>Applied</td>\n<td>applied</td>\n</tr>\n<tr>\n<td>Second</td>\n<td>Promising</td>\n<td>promising</td>\n</tr>\n<tr>\n<td>Third</td>\n<td>Phone Screen</td>\n<td>phone-screen</td>\n</tr>\n<tr>\n<td>Fourth</td>\n<td>Interview</td>\n<td>interview</td>\n</tr>\n<tr>\n<td>Fifth</td>\n<td>Hired</td>\n<td>hired</td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>Note:</strong></em> <em>The first and fifth steps are always enabled and cannot be disabled. You can only update the names of the steps and the enable property, which indicates whether the step is currently enabled or not.</em></p>\n<p><em><strong>Note:</strong></em> <em>If at least one applicant has applied for the current job position, the available steps cannot be enabled or disabled (You can change only the name).</em></p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>job_position_title</td>\n<td>string</td>\n<td>true</td>\n<td>The current title of the job position. Maximum character limit: 255 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>job_position_status</td>\n<td>enum</td>\n<td>true</td>\n<td>The current status of the job position. Valid values are ['draft','published']</td>\n<td>e.g. draft</td>\n</tr>\n<tr>\n<td>job_description</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 30000 characters. Required only when the job position status is 'published'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>available_steps</td>\n<td>array</td>\n<td>true</td>\n<td>Array of available steps, for every 5 steps of the system. Each step (object) must include the step's slug (string), name(string), and its enabled status (boolean). All 5 steps must be present. The first and the last step cannot be disabled.</td>\n<td>e.g. [{\"slug\":\"applied\", \"name\":\"Applied\",\"is_enabled\": false},...]</td>\n</tr>\n<tr>\n<td>hiring_team</td>\n<td>array</td>\n<td>false</td>\n<td>Array of employee Ids (Active and not Terminated employees). This is the hiring team members for the job position.</td>\n<td></td>\n</tr>\n<tr>\n<td>custom_questions</td>\n<td>array</td>\n<td>false</td>\n<td>Optional array of ATS application custom question ids to associate with this job position.</td>\n<td>Use ids from GET https://pubapi.talenthr.io/v1/job-positions/custom-questions → data[].id</td>\n</tr>\n<tr>\n<td>min_salary</td>\n<td>number</td>\n<td>false</td>\n<td>Optional minimum salary (up to 8 digits + optional 2 decimals).</td>\n<td>e.g. 1200.00</td>\n</tr>\n<tr>\n<td>max_salary</td>\n<td>number</td>\n<td>false</td>\n<td>Optional maximum salary (up to 8 digits + optional 2 decimals).</td>\n<td>e.g. 2500.00</td>\n</tr>\n<tr>\n<td>salary_currency</td>\n<td>string</td>\n<td>false</td>\n<td>Optional ISO currency code (max length 3). Required when min_salary is set.</td>\n<td>e.g. EUR</td>\n</tr>\n<tr>\n<td>salary_unit</td>\n<td>enum</td>\n<td>false</td>\n<td>Optional salary unit. Required when min_salary is set.</td>\n<td>hour, day, week, month, year</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>false</td>\n<td>Optional address.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>false</td>\n<td>Optional city.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>region</td>\n<td>string</td>\n<td>false</td>\n<td>Optional region/state.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>false</td>\n<td>Optional country code.</td>\n<td>e.g. GR</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>false</td>\n<td>Optional postal/zip code.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>enum</td>\n<td>false</td>\n<td>Optional employment type.</td>\n<td>Remote, On-site, Hybrid</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Required only when the job position status is 'published'. This must be a valid department from the provided 'departments' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Required only when the job position status is 'published'. This must be a valid location from the provided 'locations' of the system.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>employment_status_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Required only when the job position status is 'published'. This must be a valid employment status from the provided 'employment-statuses' of the system. Required only when the job position status is 'published'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_remote</td>\n<td>boolean</td>\n<td>false</td>\n<td>'true' for Remote job Position, 'false' for non-Remote job Position</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"a4dc1285-cef4-4cb8-b58d-285bbe34b6a7","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\",\n  \"job_position_status\": \"<string>\",\n  \"job_description\": \"<string>\",\n  \"available_steps\": [\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    }\n  ],\n  \"hiring_team\": [\n    1,\n    2,\n    3\n  ],\n  \"department_id\": \"<integer>\",\n  \"location_id\": \"<integer>\",\n  \"employment_status_id\": \"<integer>\",\n  \"is_remote\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 4,\n    \"job_position_title\": \"job-title\",\n    \"department_id\": 42,\n    \"employment_status_id\": 1,\n    \"location_id\": 36,\n    \"is_remote\": false,\n    \"job_description\": \"<p>this is a job description...</p>\",\n    \"publish_date\": null,\n    \"end_date\": null,\n    \"slug\": \"job-title-slug\",\n    \"available_steps\": [\n      {\n        \"id\": 1,\n        \"name\": \"Applied\",\n        \"slug\": \"applied\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 1\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Promising\",\n        \"slug\": \"promising\",\n        \"editable\": 1,\n        \"is_enabled\": 0,\n        \"sort_order\": 2\n      },\n      {\n        \"id\": 3,\n        \"name\": \"Phone Screen\",\n        \"slug\": \"phone-screen\",\n        \"editable\": 1,\n        \"is_enabled\": 0,\n        \"sort_order\": 3\n      },\n      {\n        \"id\": 4,\n        \"name\": \"Interview\",\n        \"slug\": \"interview\",\n        \"editable\": 1,\n        \"is_enabled\": 1,\n        \"sort_order\": 4\n      },\n      {\n        \"id\": 5,\n        \"name\": \"Hired\",\n        \"slug\": \"hired\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 5\n      }\n    ],\n    \"job_position_status_id\": 1,\n    \"created_at\": \"2024-02-26 09:29:46\",\n    \"updated_at\": \"2024-02-26 09:29:46\",\n    \"deleted_at\": null,\n    \"tone\": \"balanced\",\n    \"min_salary\": 1200.00,\n    \"max_salary\": 2500.00,\n    \"salary_currency\": \"EUR\",\n    \"salary_unit\": \"month\",\n    \"address\": \"1, Likourgrou Street\",\n    \"city\": \"Athens\",\n    \"region\": \"Attica\",\n    \"country\": \"GR\",\n    \"postal_code\": \"10551\",\n    \"employment_type\": \"Hybrid\",\n    \"notification_manager_id\": 1,\n    \"location_name\": \"Athens\",\n    \"location_address\": \"1, Likourgrou Street, Athens, Greece 10551\",\n    \"department_name\": \"department-name\",\n    \"employment_status_name\": \"Full-Time\",\n    \"has_applications\": false,\n    \"custom_questions\": [\n      {\n        \"id\": 102,\n        \"body\": \"Which shift do you prefer?\",\n        \"is_active\": true,\n        \"is_required\": false,\n        \"custom_question_type_id\": 3,\n        \"created_at\": \"2026-05-02 14:30:00\",\n        \"updated_at\": \"2026-05-02 14:30:00\",\n        \"deleted_at\": null,\n        \"custom_question_type\": {\n          \"id\": 3,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\"\n        },\n        \"custom_answers\": [\n          {\n            \"id\": 501,\n            \"custom_question_id\": 102,\n            \"sort\": null,\n            \"body\": \"Day\",\n            \"meta\": null,\n            \"created_at\": \"2026-05-02 14:30:00\",\n            \"updated_at\": \"2026-05-02 14:30:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 502,\n            \"custom_question_id\": 102,\n            \"sort\": null,\n            \"body\": \"Night\",\n            \"meta\": null,\n            \"created_at\": \"2026-05-02 14:30:00\",\n            \"updated_at\": \"2026-05-02 14:30:00\",\n            \"deleted_at\": null\n          }\n        ]\n      }\n    ],\n    \"job_position_status\": {\n      \"id\": 1,\n      \"slug\": \"draft\",\n      \"name\": \"Draft\",\n      \"is_enabled\": 1\n    }\n  }\n}"},{"id":"228debbc-9804-4a55-b458-6ee10ee518db","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\",\n  \"job_position_status\": \"<string>\",\n  \"job_description\": \"<string>\",\n  \"available_steps\": [\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    }\n  ],\n  \"hiring_team\": [\n    1,\n    2,\n    3\n  ],\n  \"custom_questions\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"tone\": \"<string>\",\n  \"end_date\": \"<date>\",\n  \"min_salary\": \"<number>\",\n  \"max_salary\": \"<number>\",\n  \"salary_currency\": \"<string>\",\n  \"salary_unit\": \"<string>\",\n  \"address\": \"<string>\",\n  \"city\": \"<string>\",\n  \"region\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postal_code\": \"<string>\",\n  \"employment_type\": \"<string>\",\n  \"department_id\": \"<integer>\",\n  \"location_id\": \"<integer>\",\n  \"employment_status_id\": \"<integer>\",\n  \"is_remote\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"4e48e633-ed66-4b39-a7d8-493f95ccecb2","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_title\": \"<string>\",\n  \"job_position_status\": \"<string>\",\n  \"job_description\": \"<string>\",\n  \"available_steps\": [\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"slug\": \"<string>\",\n      \"is_enabled\": \"<boolean>\",\n      \"is_editable\": \"<boolean>\",\n      \"sort_order\": \"<integer>\"\n    }\n  ],\n  \"hiring_team\": [\n    1,\n    2,\n    3\n  ],\n  \"department_id\": \"<integer>\",\n  \"location_id\": \"<integer>\",\n  \"employment_status_id\": \"<integer>\",\n  \"is_remote\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"213fdc90-8172-438e-bafb-6f4632e14337"},{"name":"Delete a job position","id":"483e4229-2ac4-4931-b207-acca862ed500","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","description":"<h3 id=\"api-endpoint-to-delete-a-specified-job-position\">API Endpoint to delete a specified job position.</h3>\n<p>This endpoint facilitates the deletion of the specified job position. Upon deletion, any associated notification notes created for the job position are also removed. Additionally, if the job position status was published, it is also removed from the published records of the domain's active career page.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"fa4dfddc-4a21-4432-be7b-7aa6b85d81bd","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"013628c7-9f56-4154-86de-524924835e8d","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"483e4229-2ac4-4931-b207-acca862ed500"},{"name":"Get job position's applicants","id":"e0aca123-ff5e-47c2-8486-400597fdbd14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>","description":"<h3 id=\"api-endpoint-to-get-all-the-applicants-for-a-specified-job-position\">API Endpoint to get all the applicants for a specified job position.</h3>\n<p>This endpoint retrieves comprehensive information regarding the applicants for the specified job position. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n<p>In addition to pagination parameters, users can customize the order and sorting of the retrieved data or search through them. The search option exclusively searches for first names, last names, and emails.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","ats-applicants"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum ['name', 'created_at']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>Searching</p>\n","type":"text/plain"},"key":"search","value":"<string>"}],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"318ba0bb-f185-4e78-bbb4-1037d9146896","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"}],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"Susan\",\n        \"last_name\": \"Clarke\",\n        \"email\": \"sclarke@example.com\",\n        \"phone\": \"698745215532\",\n        \"address\": \"Random Str 123A, Complex IX\",\n        \"created_at\": \"2023-12-11 11:16:50\",\n        \"starred\": false,\n        \"application\": {\n          \"id\": 2,\n          \"applicant_id\": 2,\n          \"applicants_cv_id\": 2,\n          \"job_position_id\": 2,\n          \"is_disqualified\": false,\n          \"first_name\": \"Susan\",\n          \"last_name\": \"Clarke\",\n          \"address\": \"Random Str 123A, Complex IX\",\n          \"phone\": \"698745215532\",\n          \"description\": \"NO\",\n          \"application_step_id\": 1,\n          \"created_at\": \"2023-12-11 11:16:51\",\n          \"updated_at\": \"2023-12-11 11:16:51\",\n          \"deleted_at\": null\n        },\n        \"added_at\": \"2023-12-11\"\n      }\n    ]\n  }\n}"},{"id":"53b29edd-8ca1-4c9d-b831-8aa08d6372e6","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"}],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"e0aca123-ff5e-47c2-8486-400597fdbd14"},{"name":"Create an applicant for the job position","id":"5c36c96d-bf7a-4431-b384-cc6fb77a2c43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"<string>","description":"<p>(Required) Maximum character limit: 191 characters.</p>\n","type":"text"},{"key":"last_name","value":"<string>","description":"<p>(Required) Maximum character limit: 191 characters.</p>\n","type":"text"},{"key":"email","value":"<string>","description":"<p>(Required) Maximum character limit: 191 characters.</p>\n","type":"text"},{"key":"phone","value":"<string>","description":"<p>(Required) Maximum character limit: 191 characters.</p>\n","type":"text"},{"key":"address","value":"<string>","description":"<p>(Required) Maximum character limit: 191 characters.</p>\n","type":"text"},{"key":"description","value":"<string>","description":"<p>(Required) Maximum character limit: 30000 characters.</p>\n","type":"text"},{"key":"resume","description":"<p>File. Valid Formats (docx,doc,odt,pdf). The document must not surpass 30MB.</p>\n","type":"file","value":null},{"key":"answers","value":"[{\"question_id\":<integer>,\"text\":\"<string>\"},{\"question_id\":<integer>,\"answer_id\":<integer>}]","description":"<p>(Optional) Answers to this job position's ATS custom questions. Send either (a) an array of answer objects or (b) a JSON string of that array. If the job position has required active ATS custom questions, this field becomes required. Each item must include <code>question_id</code>. Depending on the question type, send either <code>text</code> (free-text questions) or <code>answer_id</code> (single-choice / multiple-choice questions).</p>\n","type":"text"}]},"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants","description":"<h3 id=\"api-endpoint-to-create-or-update-an-applicant-and-his-application-for-the-specified-job-position\">API Endpoint to create or update an applicant (and his application) for the specified job position.</h3>\n<p>This endpoint facilitates the <strong>creation</strong> of a new applicant for the specified job position. The job position must be published. The request body should include applicant's full name (first name and last name), an email, an address, a phone number, a brief description and his/her resume.</p>\n<ul>\n<li>If you intend to <strong>update</strong> the information for the current applicant, you have to use the same email address as it is associated with the applicant's existing record.</li>\n</ul>\n<hr />\n<p>When an applicant successfully submits their application for a job position, two emails are automatically generated and sent. The first email is sent to the creator of the job position, notifying them that a new applicant has been added to the pool of candidates for the position they created. The second email is dispatched to the applicant, serving as a confirmation of their job application submission.</p>\n<hr />\n<p>Filenames within the system must not start with any illegal character or symbol (e.g. <code>@</code> (at sign), <code>$</code> (dollar sign), <code>%</code> (percent), <code>&amp;</code> (ampersand)) and should maintain a reasonable length, ensuring they do not exceed 250 characters.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td></td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td></td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters. Valid email format and structure.</td>\n<td></td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td></td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 30,000 characters.</td>\n<td></td>\n</tr>\n<tr>\n<td>resume</td>\n<td>file</td>\n<td>true</td>\n<td>File. Valid Formats (docx,doc,odt,pdf). The document must not surpass 30MB.</td>\n<td></td>\n</tr>\n<tr>\n<td>answers</td>\n<td>array or json string</td>\n<td>false</td>\n<td>Answers to this job position's ATS custom questions. Send either (a) an array of answer objects or (b) a JSON string of that array. If the job position has required active ATS custom questions, this field becomes required. Each item must include <code>question_id</code>. Depending on the question type, send either <code>text</code> (free-text questions) or <code>answer_id</code> (single-choice / multiple-choice questions).</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","ats-applicants"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"9230e997-b0f8-41d4-83b8-45ebcc30b1a8","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"last_name","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"email","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"phone","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"address","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"description","value":"<string>","description":"(Required) Maximum character limit: 30000 characters.","type":"text"},{"key":"resume","value":"<binary>","description":"File. Valid Formats (docx,doc,odt,pdf)","type":"text"},{"key":"answers","value":"[{\"question_id\":<integer>,\"text\":\"<string>\"},{\"question_id\":<integer>,\"answer_id\":<integer>}]","description":"(Optional) Answers to this job position's ATS custom questions. Send either (a) an array of answer objects or (b) a JSON string of that array. If the job position has required active ATS custom questions, this field becomes required.","type":"text"}]},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 33089509,\n    \"first_name\": \"et exercitation cons\",\n    \"last_name\": \"i\",\n    \"email\": \"amet velit consectetur laboris\",\n    \"phone\": \"sit\",\n    \"description\": \"deserunt sit nisi ess\",\n    \"starred\": true,\n    \"address\": \"incididunt exercitation de\",\n    \"latest_cv_id\": 50036183,\n    \"created_at\": \"2024-01-20 00:00:00\",\n    \"updated_at\": \"2024-01-20 00:00:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"621424aa-e2d0-4e92-ae51-6e39a245f90e","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"last_name","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"email","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"phone","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"address","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"description","value":"<string>","description":"(Required) Maximum character limit: 30000 characters.","type":"text"},{"key":"resume","value":"<binary>","description":"File. Valid Formats (docx,doc,odt,pdf)","type":"text"}]},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"42f45f85-f5a4-4dc0-80db-a4dac2068fab","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"last_name","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"email","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"phone","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"address","value":"<string>","description":"(Required) Maximum character limit: 191 characters.","type":"text"},{"key":"description","value":"<string>","description":"(Required) Maximum character limit: 30000 characters.","type":"text"},{"key":"resume","value":"<binary>","description":"File. Valid Formats (docx,doc,odt,pdf)","type":"text"}]},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"5c36c96d-bf7a-4431-b384-cc6fb77a2c43"},{"name":"Update Applicant State","id":"b2a66f27-1c02-4644-b3f8-7dca1f3a0dea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_disqualified\": \"<boolean>\" // If this it's 'true' then the applicant is being disqualified, otherwise opt for 'false'.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants/:objectId","description":"<h3 id=\"api-endpoint-to-disqualifyreturn-to-candidates-a-candidate-for-a-specified-job-position\">API Endpoint to disqualify/return to candidates a candidate for a specified job position.</h3>\n<p>This endpoint facilitates the movement of the current applicant to the disqualified candidates list for the specific step they are in or back to consideration for the current job position.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>is_disqualified</td>\n<td>boolean</td>\n<td>true</td>\n<td>If this is 'true' then the applicant is being disqualified, otherwise, opt for 'false'.</td>\n<td>e.g. true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","ats-applicants",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"ac11b674-4a4b-4b44-87e6-656ca04a8c33","name":"Simple boolean response","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_disqualified\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"873fbe5b-2f4b-43ec-9470-9b8b6517cc7a","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_disqualified\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"da4bdf93-d550-4310-85a4-bced75a6cccd","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_disqualified\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applicants",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"b2a66f27-1c02-4644-b3f8-7dca1f3a0dea"},{"name":"Get an application","id":"6f06fde4-fd43-4396-be8f-0ba8fb70b0f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-a-specified-application-for-a-job-position\">API Endpoint to retrieve a specified application for a job position.</h3>\n<p>This endpoint provides detailed information about the employee's application for the specified job position. It includes general information about the applicant, details regarding the job position, available steps within the application process, the current application step, and any associated notes from the hiring team.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","ats-applications",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"1b3c8489-f66b-4c91-8d92-d54c0c76b2d8","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"applicant_id\": 2,\n    \"applicants_cv_id\": 2,\n    \"job_position_id\": 2,\n    \"is_disqualified\": false,\n    \"first_name\": \"Susan\",\n    \"last_name\": \"Clarke\",\n    \"address\": \"address-name\",\n    \"phone\": \"phone-number\",\n    \"description\": \"This is a description...\",\n    \"application_step_id\": 2,\n    \"created_at\": \"2023-12-11 11:16:51\",\n    \"updated_at\": \"2024-02-27 08:19:33\",\n    \"deleted_at\": null,\n    \"application_date\": \"2023-12-11 13:16:51\",\n    \"application_step_slug\": \"promising\",\n    \"is_for_field\": true,\n    \"skill_scores\": [],\n    \"skills_total_score\": 0,\n    \"job_position\": {\n      \"id\": 2,\n      \"job_position_title\": \"job-position-name\",\n      \"slug\": \"job-position-slug\",\n      \"available_steps\": [\n        {\n          \"id\": 1,\n          \"name\": \"Applied\",\n          \"slug\": \"applied\",\n          \"editable\": 0,\n          \"is_enabled\": 1,\n          \"sort_order\": 1\n        },\n        {\n          \"id\": 2,\n          \"name\": \"Promising\",\n          \"slug\": \"promising\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 2\n        },\n        {\n          \"id\": 3,\n          \"name\": \"Phone Screen\",\n          \"slug\": \"phone-screen\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 3\n        },\n        {\n          \"id\": 4,\n          \"name\": \"Interview\",\n          \"slug\": \"interview\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 4\n        },\n        {\n          \"id\": 5,\n          \"name\": \"Hired\",\n          \"slug\": \"hired\",\n          \"editable\": 0,\n          \"is_enabled\": 1,\n          \"sort_order\": 5\n        }\n      ]\n    },\n    \"applicant\": {\n      \"id\": 2,\n      \"first_name\": \"Susan\",\n      \"last_name\": \"Clarke\",\n      \"email\": \"sclarke@example.com\",\n      \"starred\": false\n    },\n    \"applicant_cv\": {\n      \"id\": 2,\n      \"applicant_id\": 2,\n      \"client_filename\": \"resume.pdf\",\n      \"filename\": \"/domain/applicants_cvs/1702293410_Resume.pdf\",\n      \"filetype\": \"pdf\",\n      \"created_at\": \"2023-12-11 11:16:51\",\n      \"updated_at\": \"2023-12-11 11:16:51\",\n      \"deleted_at\": null,\n      \"master_id\": null,\n      \"preview_filename\": null,\n      \"cv_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/applicants_cvs/1702293410_Resume2.pdf?Expires=1709025658&Signature=AIPNSrCplACkQiSpUBOZGpEPFbaxQQ6bRrKbz2rBkDC6xFrUKYTG9qd5Y0NWozSmNPvA2IA7TE53nN00gxMpojrcFPoFF1T1RVCCByn-4NPj0mQXfqNMKQhnNj-di-iLDNSgODJxM0wM650yTRlU8cj0JeDCbU-RP9mNydkQruh2~-VshcftlgBONcMfcqBhe-GybJIHCrpmhS9U8ktlYl55voLFK5G0l2Wv2qqk5tN7a~QijtsaNRgsGr6F6u6QaHqStNTkAmJfPMKGUgMGMsywLEiS-OnTz-7rv5BYqQ6-uYXF0mf-0I-58tI8ZtYs4co0bfVUvkstc1QSEv1KDQ__&Key-Pair-Id=K2KPAB7VLWPOH\",\n      \"preview_cv_url\": null\n    },\n    \"application_notes\": [\n      {\n        \"id\": 10,\n        \"applicant_id\": 2,\n        \"application_id\": 2,\n        \"commentor_id\": 1,\n        \"job_position_id\": 2,\n        \"note_text\": \"...updated 3rd time...\",\n        \"created_at\": \"2024-01-31 12:27:16\",\n        \"updated_at\": \"2024-01-31 12:27:16\",\n        \"deleted_at\": null,\n        \"commentor_full_name\": \"John Doe\",\n        \"commentor_job_title_name\": \"Chief Executive Officer\",\n        \"commentor_role\": {\n          \"id\": 1,\n          \"name\": \"Company Administrator\",\n          \"slug\": \"company-administrator\"\n        },\n        \"commentor_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1700059519_NNcbnWBX.jpg?Expires=1709108458&Signature=LfEF9vqhIffIawCFOx0su2h4aC1nhFIayFLmb1vE3IR8mbuKsX5aM83Lf-aAFsvWc-Qlpfxkg2ooj9Wags2hxC5sY9i4qYtuKuKew5-oDt~xurK-TLj1~AiaHTN5~H~sXS~00QBudn0SyvRIbZptUXfFc-MeoGS-x04qMz-DAPg-04dTVBYWDtak9lHjlRNMkjnWuUW4uGTWAYqR0qc1nf65FGYHKUe30ndNYnN5cwMdBkOiG-nQb8ohoSBkvNQpAOR6dG3ptnmN79lUYQxZTUjGrDMehAN29MHIZLZlEkwCzU72E0JXmraz7YU~pPCcfzmy2KUHROaWlpNWK413YQ__&Key-Pair-Id=K2KPAB7VLWPOH\",\n        \"note_date\": \"2024-01-31 14:27:16\",\n        \"is_for_field\": true\n      }\n    ],\n    \"application_step\": {\n      \"id\": 2,\n      \"slug\": \"promising\",\n      \"name\": \"Promising\",\n      \"is_enabled\": 1,\n      \"editable\": 1,\n      \"sort_order\": 2\n    },\n    \"application_questions\": [\n      {\n        \"custom_question_id\": 1,\n        \"question_body\": \"Why are you interested in this role?\",\n        \"answers\": [\n          {\n            \"custom_answer_id\": null,\n            \"answer_body\": \"I am excited about the opportunity.\"\n          }\n        ]\n      },\n      {\n        \"custom_question_id\": 2,\n        \"question_body\": \"Do you have the required certification?\",\n        \"answers\": [\n          {\n            \"custom_answer_id\": 5,\n            \"answer_body\": \"Yes\"\n          }\n        ]\n      }\n    ]\n  }\n}"},{"id":"71f83354-8014-4879-bba9-604cf52f91b1","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"6f06fde4-fd43-4396-be8f-0ba8fb70b0f0"},{"name":"Update an application","id":"622ffd64-f88e-4d86-942e-1c95fa011d03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"step_slug\": \"<string>\" // (Required). The slug of an available job position step that is enable. To inspect and update the step_slug you're interested in, you can review all available steps of the application through the 'Get an application' endpoint.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","description":"<h3 id=\"api-endpoint-to-update-an-application-for-a-specified-job-position-change-step\">API Endpoint to update an application for a specified job position (change step).</h3>\n<p>This endpoint allows for the modification of the current step of an applicant's application for the specified job position. The step slug is generated from the name of the specified step. To view and update the 'step_slug' you're interested in, you can see the availabe steps of the system below.</p>\n<p><strong>Available Steps:</strong></p>\n<p>The available steps in the system are predefined and consist of five steps, all of which must be present. They represent the interview process from the initial application stage to the final hiring decision.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Step</strong></th>\n<th><strong>Name</strong></th>\n<th><strong>Slug</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>First</td>\n<td>Applied</td>\n<td>applied</td>\n</tr>\n<tr>\n<td>Second</td>\n<td>Promising</td>\n<td>promising</td>\n</tr>\n<tr>\n<td>Third</td>\n<td>Phone Screen</td>\n<td>phone-screen</td>\n</tr>\n<tr>\n<td>Fourth</td>\n<td>Interview</td>\n<td>interview</td>\n</tr>\n<tr>\n<td>Fifth</td>\n<td>Hired</td>\n<td>hired</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>step_slug</td>\n<td>string</td>\n<td>true</td>\n<td>The slug of an available job position step that is enabled. To inspect and update the step_slug you're interested in, you can review all available steps of the application through the 'Get an application' or 'get a job position' endpoint</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","ats-applications",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"5d046a8d-a742-4665-98c3-1c27ded22d77","name":"Simple boolean response","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"step_slug\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"38a25ebe-75c5-470b-959f-3d56d75e614b","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"step_slug\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"fc05a9a0-d984-4f69-b0e2-6065be6c0443","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"step_slug\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"622ffd64-f88e-4d86-942e-1c95fa011d03"},{"name":"Create an application note","id":"d435f5dc-73bd-457d-8b3e-dd55e09df8dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"note_text\": \"<string>\" // Required field. Maximum character limit: 30000 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId/notes","description":"<h3 id=\"api-endpoint-to-create-a-note-for-a-specific-job-application\">API Endpoint to create a note for a specific job application.</h3>\n<p>In this endpoint, members of the hiring team are able to create notes for the employee's application for the specified job position. Note creation is not restricted solely to members of the hiring team; other roles, such as Company admin or HR-manager, do have this capability. The request body should contain a note text.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>note_text</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 30000 characters.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","ats-applications",":objectId","notes"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"},{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"69aaca96-cd9c-4c6a-9a9b-09156efd6a5d","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"note_text\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId/notes","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId","notes"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 12,\n    \"applicant_id\": 2,\n    \"application_id\": 2,\n    \"commentor_id\": 1,\n    \"job_position_id\": 2,\n    \"note_text\": \"This is a note...\",\n    \"created_at\": \"2024-02-27 09:55:28\",\n    \"updated_at\": \"2024-02-27 09:55:28\",\n    \"deleted_at\": null,\n    \"commentor_full_name\": \"John Doe\",\n    \"commentor_job_title_name\": \"Chief Executive Officer\",\n    \"commentor_role\": {\n      \"id\": 1,\n      \"name\": \"Company Administrator\",\n      \"slug\": \"company-administrator\"\n    },\n    \"commentor_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/1700059519_N...\",\n    \"note_date\": \"2024-02-27 09:55:28\"\n  }\n}"},{"id":"207bf99f-488a-41a7-9ff8-fb12f82ae76f","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"note_text\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId/notes","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId","notes"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"e0c74173-009c-49a8-9da8-0ed5cd129edc","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"note_text\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/ats-applications/:objectId/notes","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","ats-applications",":objectId","notes"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."},{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"d435f5dc-73bd-457d-8b3e-dd55e09df8dd"},{"name":"Clone a job position","id":"063745a1-d42b-4476-a0a7-2471dbce99bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/clone","description":"<h3 id=\"api-endpoint-to-clone-a-specified-job-position\">API Endpoint to clone a specified job position.</h3>\n<p>This endpoint allows for the cloning of an existing job position. The job position being cloned must be valid and must already exist within the system.</p>\n<ul>\n<li>When cloning a job position in a published status, the cloned job position will not retain the published status. Instead, it will be created as a draft one.</li>\n<li>When cloning an archived job position, the cloned job position will be in the active ones with 'draft' status.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","clone"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"ce55840b-28f0-4bf0-a008-952fa3b17792","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/clone","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","clone"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 10,\n    \"job_position_title\": \"job-position-name (Copy)\",\n    \"department_id\": null,\n    \"employment_status_id\": 1,\n    \"location_id\": 36,\n    \"is_remote\": false,\n    \"job_description\": \"This is a job description...\",\n    \"publish_date\": \"2023-12-11 11:13:32\",\n    \"end_date\": null,\n    \"slug\": \"job-position-slug\",\n    \"available_steps\": [\n      {\n        \"id\": 1,\n        \"name\": \"Applied\",\n        \"slug\": \"applied\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 1\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Promising\",\n        \"slug\": \"promising\",\n        \"editable\": 1,\n        \"is_enabled\": 1,\n        \"sort_order\": 2\n      },\n      {\n        \"id\": 3,\n        \"name\": \"Phone Screen\",\n        \"slug\": \"phone-screen\",\n        \"editable\": 1,\n        \"is_enabled\": 1,\n        \"sort_order\": 3\n      },\n      {\n        \"id\": 4,\n        \"name\": \"Interview\",\n        \"slug\": \"interview\",\n        \"editable\": 1,\n        \"is_enabled\": 1,\n        \"sort_order\": 4\n      },\n      {\n        \"id\": 5,\n        \"name\": \"Hired\",\n        \"slug\": \"hired\",\n        \"editable\": 0,\n        \"is_enabled\": 1,\n        \"sort_order\": 5\n      }\n    ],\n    \"job_position_status_id\": 1,\n    \"created_at\": \"2024-02-27 10:43:02\",\n    \"updated_at\": \"2024-02-27 10:43:02\",\n    \"deleted_at\": null,\n    \"tone\": \"balanced\",\n    \"notification_manager_id\": 1\n  }\n}"},{"id":"f339bca1-25a8-42af-8279-039e513b4bee","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/clone","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","clone"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"e9901643-fc30-49fe-b080-c862da84c80b","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/clone","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","clone"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"063745a1-d42b-4476-a0a7-2471dbce99bf"},{"name":"Alter Job Position Status","id":"b7c354d9-0a18-4eab-9ee5-ca4dc8f1fe44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_status\": \"<string>\" // The current status of the job position. Valid values are ['draft', 'archived']\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/change-status","description":"<h3 id=\"api-endpoint-to-archive-or-draft-a-specified-job-position\">API Endpoint to archive or draft a specified job position.</h3>\n<p>This endpoint allows for the alteration of the status of the specified job position from archived to draft and vice versa.</p>\n<p><em><strong>Note:</strong></em> <em>If a job changes its status from published to archived, the current job position will be unpublished.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>job_position_status</td>\n<td>string</td>\n<td>true</td>\n<td>The current status of the job position.  <br />Valid values are ;['draft', 'archived']</td>\n<td>e.g. draft</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions",":jobPosition","change-status"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The job position's Id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"jobPosition"}]}},"response":[{"id":"1d4b106b-4c48-4236-b690-29cc63f7cf3e","name":"Simple boolean response","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_status\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/change-status","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","change-status"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"5cce5bfa-de13-4fcf-a422-6fb27612ebb0","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_status\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/change-status","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","change-status"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"d3ba5649-e07c-48aa-aced-37325d0ae8e1","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"job_position_status\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-positions/:jobPosition/change-status","host":["https://pubapi.talenthr.io/v1"],"path":["job-positions",":jobPosition","change-status"],"variable":[{"key":"jobPosition","value":"<integer>","description":"(Required) The job position's Id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"b7c354d9-0a18-4eab-9ee5-ca4dc8f1fe44"},{"name":"Get all published job positions","id":"8a3d2435-ac65-4bcc-a864-acbc3656bf9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/published","description":"<h3 id=\"api-endpoint-to-retrieve-published-job-positions\">API Endpoint to retrieve published job positions.</h3>\n<p>This endpoint retrieves comprehensive information on all published job positions for the current domain.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","published"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4210de47-2344-4fad-a595-1fbea804ac37","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/published"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2,\n      \"job_position_title\": \"job-position-name\",\n      \"is_remote\": false,\n      \"publish_date\": \"2024-02-27 11:51:19\",\n      \"end_date\": null,\n      \"slug\": \"job-position-slug\",\n      \"job_description\": \"This is a description...\",\n      \"location_id\": 36,\n      \"department_id\": null,\n      \"employment_status_id\": 1,\n      \"job_position_status_id\": 2,\n      \"available_steps\": [\n        {\n          \"id\": 1,\n          \"name\": \"Applied\",\n          \"slug\": \"applied\",\n          \"editable\": 0,\n          \"is_enabled\": 1,\n          \"sort_order\": 1\n        },\n        {\n          \"id\": 2,\n          \"name\": \"Promising\",\n          \"slug\": \"promising\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 2\n        },\n        {\n          \"id\": 3,\n          \"name\": \"Phone Screen\",\n          \"slug\": \"phone-screen\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 3\n        },\n        {\n          \"id\": 4,\n          \"name\": \"Interview\",\n          \"slug\": \"interview\",\n          \"editable\": 1,\n          \"is_enabled\": 1,\n          \"sort_order\": 4\n        },\n        {\n          \"id\": 5,\n          \"name\": \"Hired\",\n          \"slug\": \"hired\",\n          \"editable\": 0,\n          \"is_enabled\": 1,\n          \"sort_order\": 5\n        }\n      ],\n      \"job_position_status_name\": \"Published\",\n      \"job_position_status_slug\": \"published\",\n      \"created_at\": \"2023-12-11 11:13:32\",\n      \"updated_at\": \"2024-02-27 11:51:19\",\n      \"deleted_at\": null,\n      \"applied_count\": 0,\n      \"processed_count\": 1,\n      \"hired_count\": 0,\n      \"location_name\": \"Athens\",\n      \"location_address\": \"1, Likourgrou Street, Athens, Greece 10551\",\n      \"department_name\": null,\n      \"employment_status_name\": \"Full-Time\",\n      \"has_applications\": true\n    }\n  ]\n}"},{"id":"56141a8b-d0ef-4eb6-9853-be8984ad4b11","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/published"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"8a3d2435-ac65-4bcc-a864-acbc3656bf9b"},{"name":"Get ATS custom question type values","id":"47801430-9100-49a4-bb71-8aaa96900fec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/values","description":"<p>This endpoint returns the catalog of ATS job position custom question types.</p>\n<p>Requires permission to list ATS job position custom questions.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions","values"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"63f8f880-a1e4-4096-8ede-893c072dc6fe","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/values"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"custom_question_types\": [\n      {\"id\": 1, \"slug\": \"text-field\", \"name\": \"Text field\"},\n      {\"id\": 2, \"slug\": \"long-text-field\", \"name\": \"Long text field\"},\n      {\"id\": 3, \"slug\": \"single-choice\", \"name\": \"Single choice\"},\n      {\"id\": 4, \"slug\": \"multiple-choice\", \"name\": \"Multiple choice\"},\n      {\"id\": 5, \"slug\": \"link\", \"name\": \"Link\"},\n      {\"id\": 6, \"slug\": \"date\", \"name\": \"Date\"}\n    ]\n  }\n}"},{"id":"4786039e-33a6-4190-bc8a-1d0070335b41","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/values"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"412b3f45-4d07-4d5c-bb40-503dcc3ee20c","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/values"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"47801430-9100-49a4-bb71-8aaa96900fec"},{"name":"List ATS job position custom questions","id":"5107d22c-f36b-4498-94b0-9ea5dfad9e66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions","description":"<p>This endpoint returns all ATS job position custom question definitions for the tenant as a single non-paginated JSON array on <strong><code>data</code></strong>, ordered by <strong><code>created_at</code></strong>. Each item includes the question fields, nested <strong><code>custom_question_type</code></strong>, and <strong><code>custom_answers</code></strong> (empty for types that do not use predefined choices). Requires permission to list ATS job position custom questions.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"c2bcbef2-ff56-4207-8c29-49894e6e45e8","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 101,\n      \"body\": \"How many years of experience do you have in this role?\",\n      \"is_active\": true,\n      \"is_required\": true,\n      \"custom_question_type_id\": 1,\n      \"created_at\": \"2026-05-01 10:00:00\",\n      \"updated_at\": \"2026-05-01 10:00:00\",\n      \"deleted_at\": null,\n      \"custom_question_type\": {\n        \"id\": 1,\n        \"slug\": \"text-field\",\n        \"name\": \"Text field\"\n      },\n      \"custom_answers\": []\n    },\n    {\n      \"id\": 102,\n      \"body\": \"Which shift do you prefer?\",\n      \"is_active\": true,\n      \"is_required\": false,\n      \"custom_question_type_id\": 3,\n      \"created_at\": \"2026-05-02 14:30:00\",\n      \"updated_at\": \"2026-05-02 14:30:00\",\n      \"deleted_at\": null,\n      \"custom_question_type\": {\n        \"id\": 3,\n        \"slug\": \"single-choice\",\n        \"name\": \"Single choice\"\n      },\n      \"custom_answers\": [\n        {\n          \"id\": 501,\n          \"custom_question_id\": 102,\n          \"sort\": null,\n          \"body\": \"Day\",\n          \"meta\": null,\n          \"created_at\": \"2026-05-02 14:30:00\",\n          \"updated_at\": \"2026-05-02 14:30:00\",\n          \"deleted_at\": null\n        },\n        {\n          \"id\": 502,\n          \"custom_question_id\": 102,\n          \"sort\": null,\n          \"body\": \"Night\",\n          \"meta\": null,\n          \"created_at\": \"2026-05-02 14:30:00\",\n          \"updated_at\": \"2026-05-02 14:30:00\",\n          \"deleted_at\": null\n        }\n      ]\n    }\n  ]\n}"},{"id":"e48d3570-1d5e-4ac3-b563-5b90d319f798","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"912fd11f-473c-4244-8eeb-6074b98504e8","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"5107d22c-f36b-4498-94b0-9ea5dfad9e66"},{"name":"Get ATS job position custom question","id":"9dd5b867-fc57-43b2-8b35-7003803ddd8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/:customQuestion","description":"<p>This endpoint returns one ATS job position custom question by numeric id. The <strong><code>data</code></strong> object includes nested <strong><code>custom_question_type</code></strong> and <strong><code>custom_answers</code></strong>. Requires permission to view that custom question.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions",":customQuestion"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Custom question id (<code>custom_questions.id</code>). Use <strong><code>id</code></strong> values from <strong>List ATS job position custom questions</strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customQuestion"}]}},"response":[{"id":"939eebe9-c1d7-496a-a9e6-3ab3dcb88d07","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 102,\n    \"body\": \"Which shift do you prefer?\",\n    \"is_active\": true,\n    \"is_required\": false,\n    \"custom_question_type_id\": 3,\n    \"created_at\": \"2026-05-02 14:30:00\",\n    \"updated_at\": \"2026-05-02 14:30:00\",\n    \"deleted_at\": null,\n    \"custom_question_type\": {\n      \"id\": 3,\n      \"slug\": \"single-choice\",\n      \"name\": \"Single choice\"\n    },\n    \"custom_answers\": [\n      {\n        \"id\": 501,\n        \"custom_question_id\": 102,\n        \"sort\": null,\n        \"body\": \"Day\",\n        \"meta\": null,\n        \"created_at\": \"2026-05-02 14:30:00\",\n        \"updated_at\": \"2026-05-02 14:30:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 502,\n        \"custom_question_id\": 102,\n        \"sort\": null,\n        \"body\": \"Night\",\n        \"meta\": null,\n        \"created_at\": \"2026-05-02 14:30:00\",\n        \"updated_at\": \"2026-05-02 14:30:00\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"25bbdf6e-9538-45a3-a6f3-c74b714ce758","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"4ff6d9fe-c212-4b8b-b684-d67d165690d2","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"55f43885-1c3c-4be7-aaaf-cf3ac2ebc282","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\CustomQuestion] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"9dd5b867-fc57-43b2-8b35-7003803ddd8a"},{"name":"Create ATS job position custom question","id":"69af5c0a-ffbb-4c3c-8c24-c5a1bf23f55c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"List three relevant certifications.\",\n  \"is_required\": false,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions","description":"<h3>Create ATS job position custom question</h3>\n\n<p>Creates an ATS application custom question for job position applications. Defines the question text, whether it is mandatory, the question type, and when the type is single-choice or multiple-choice a list of answer choices.</p>\n<p>Requires permission to create ATS application custom questions.</p>\n<p>Use Get ATS custom question type values (GET <a href=\"https://pubapi.talenthr.io/v1/job-positions/custom-questions/values\">https://pubapi.talenthr.io/v1/job-positions/custom-questions/values</a>) for <code>custom_question_type_id</code> values under <code>data.custom_question_types</code>.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>body</td>\n<td>string</td>\n<td>yes</td>\n<td>Question text shown to applicants. Maximum 1000 characters.</td>\n<td>e.g. <code>List three relevant certifications.</code></td>\n</tr>\n<tr>\n<td>is_required</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether applicants must answer this question. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>custom_question_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Question type id from <strong>Get ATS custom question type values</strong> (<code>data.custom_question_types</code>).</td>\n<td>e.g. <code>1</code></td>\n</tr>\n<tr>\n<td>answers</td>\n<td>array</td>\n<td>conditional</td>\n<td>Required when the type is single-choice or multiple-choice. Each object requires <code>body</code> (choice label). Do not include <code>id</code> on create. May be sent as a JSON array or a JSON string that decodes to an array. Omit for text, long text, link, and date types.</td>\n<td>e.g. <code>[{\"body\":\"Yes\"},{\"body\":\"No\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>There are no path parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"dcb9e0e1-573f-4a6c-adbd-4fb72751f53b","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"List three relevant certifications.\",\n  \"is_required\": false,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 205,\n    \"body\": \"List three relevant certifications.\",\n    \"is_active\": true,\n    \"is_required\": false,\n    \"custom_question_type_id\": 1,\n    \"created_at\": \"2026-05-05 09:15:00\",\n    \"updated_at\": \"2026-05-05 09:15:00\",\n    \"deleted_at\": null,\n    \"custom_question_type\": {\n      \"id\": 1,\n      \"slug\": \"text-field\",\n      \"name\": \"Text field\"\n    },\n    \"custom_answers\": []\n  }\n}"},{"id":"687e8948-bb11-4232-a2f0-178f39acf959","name":"Unprocessable Entity (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"Missing choices\",\n  \"is_required\": true,\n  \"custom_question_type_id\": 3\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"answers\": [\n      \"The answers field is required when custom question type id is 3 or 4.\"\n    ]\n  }\n}"},{"id":"2bd87c86-25ef-4a6e-a829-319c9062ff81","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"x\",\n  \"is_required\": true,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"489f74a0-c97c-45aa-aac8-335319cd2d65","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"x\",\n  \"is_required\": true,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"69af5c0a-ffbb-4c3c-8c24-c5a1bf23f55c"},{"name":"Update ATS job position custom question","id":"2695ae1d-53f6-4361-a769-b47ce6330313","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"<string>\",\n  \"is_required\": \"<boolean>\",\n  \"custom_question_type_id\": \"<integer>\",\n  \"answers\": [ // Single-choice / multiple-choice, type unchanged: each kept choice must include id (from custom_answers) + body; omitted ids are deleted. New choices: body only, or id: null.\n    {\"id\": \"<integer>\", \"body\": \"<string>\"},\n    {\"body\": \"<string>\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/:customQuestion","description":"<p>This endpoint updates the editable fields on an existing ATS job position custom question. The request body uses the same keys as Create ATS job position custom question. When <strong><code>custom_question_type_id</code></strong> changes to or from choice types, the server reapplies <strong><code>answers</code></strong> according to internal rules (a type change may clear prior choices unless you supply a valid <strong><code>answers</code></strong> payload for the new type).</p>\n<p>When the question remains a <strong>single-choice</strong> or <strong>multiple-choice</strong> question, the <strong><code>answers</code></strong> array is the authoritative set of choices. Each existing choice you intend to keep or update must be sent with its numeric <strong><code>id</code></strong> (from <strong><code>custom_answers</code></strong>) and with <strong><code>body</code></strong>; choices not listed with their <strong><code>id</code></strong> are deleted. New choices are sent as <strong><code>body</code></strong> with <strong><code>id</code></strong> omitted or with <strong><code>id</code></strong> set to JSON <strong><code>null</code></strong>. The response <strong><code>data</code></strong> shape matches Get ATS job position custom question. Requires permission to update that question.</p>\n<hr />\n<p><strong>Request body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>body</td>\n<td>string</td>\n<td>yes</td>\n<td>Question text shown to applicants. Maximum 1000 characters.</td>\n<td>e.g. <code>Updated question text</code></td>\n</tr>\n<tr>\n<td>is_required</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether applicants must answer this question. JSON booleans only.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n<tr>\n<td>custom_question_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Question type id from <strong>Get ATS custom question type values</strong> (<code>data.custom_question_types</code>). Changing the type may clear or require a new <code>answers</code> payload when moving to or from single-choice or multiple-choice.</td>\n<td>e.g. <code>1</code></td>\n</tr>\n<tr>\n<td>answers</td>\n<td>array</td>\n<td>conditional</td>\n<td>Required when the type is single-choice or multiple-choice. Each object requires <code>body</code>. Include <code>id</code> for existing choices to retain or update them; omit <code>id</code> or send JSON <code>null</code> for new choices. Choices not listed with their <code>id</code> are removed. May be sent as a JSON array or a JSON string that decodes to an array. Omit for text, long text, link, and date types.</td>\n<td>e.g. <code>[{\"id\":10,\"body\":\"Yes\"},{\"body\":\"No\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions",":customQuestion"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Custom question id (<code>custom_questions.id</code>). Use <strong><code>id</code></strong> from <strong>List ATS job position custom questions</strong> or <strong>Get ATS job position custom question</strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customQuestion"}]}},"response":[{"id":"78b4568b-409e-4280-9e51-14f5981d6d80","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"Which shift do you prefer? (updated)\",\n  \"is_required\": true,\n  \"custom_question_type_id\": 3,\n  \"answers\": [\n    {\"id\": 501, \"body\": \"Day shift\"},\n    {\"body\": \"Weekend\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 102,\n    \"body\": \"Which shift do you prefer? (updated)\",\n    \"is_active\": true,\n    \"is_required\": true,\n    \"custom_question_type_id\": 3,\n    \"created_at\": \"2026-05-02 14:30:00\",\n    \"updated_at\": \"2026-05-05 10:00:00\",\n    \"deleted_at\": null,\n    \"custom_question_type\": {\n      \"id\": 3,\n      \"slug\": \"single-choice\",\n      \"name\": \"Single choice\"\n    },\n    \"custom_answers\": [\n      {\n        \"id\": 501,\n        \"custom_question_id\": 102,\n        \"sort\": null,\n        \"body\": \"Day shift\",\n        \"meta\": null,\n        \"created_at\": \"2026-05-02 14:30:00\",\n        \"updated_at\": \"2026-05-05 10:00:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 503,\n        \"custom_question_id\": 102,\n        \"sort\": null,\n        \"body\": \"Weekend\",\n        \"meta\": null,\n        \"created_at\": \"2026-05-05 10:00:00\",\n        \"updated_at\": \"2026-05-05 10:00:00\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"422e9ca8-8517-462a-837a-2e1ba685047c","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"body\": [\n      \"The body field is required.\"\n    ]\n  }\n}"},{"id":"e03d78c4-4f14-4a50-a39b-371275b569b1","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"x\",\n  \"is_required\": false,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"4f07b491-1e13-4b3b-bc8a-8769a2f86b7c","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"x\",\n  \"is_required\": false,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"0dc57005-2172-4c98-95cf-34adeacda27c","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"body\": \"x\",\n  \"is_required\": false,\n  \"custom_question_type_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\CustomQuestion] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"2695ae1d-53f6-4361-a769-b47ce6330313"},{"name":"Delete ATS job position custom question","id":"a1c6454f-b28f-41f4-86d9-ce498e04e3cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/:customQuestion","description":"<p>This endpoint deletes an ATS job position custom question. Requires permission to delete that question.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions",":customQuestion"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Custom question id (<code>custom_questions.id</code>). Use <strong><code>id</code></strong> from <strong>List ATS job position custom questions</strong> or <strong>Get ATS job position custom question</strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customQuestion"}]}},"response":[{"id":"f823f7cd-ed69-4f90-9a71-8393502b94b5","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"cdd21778-0635-4778-9280-27eaa0ba9cbf","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"44996763-c820-4a35-a335-40f582cfcfda","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/102"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"9403c41f-d709-4161-9329-dbfff898f52b","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\CustomQuestion] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"a1c6454f-b28f-41f4-86d9-ce498e04e3cb"},{"name":"Toggle ATS job position custom question active","id":"71d0ecc7-bc22-4afb-be3d-4f268e2778bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": false // (Required) Type: boolean. JSON true or false. Controls whether the question is active for ATS applications.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/:customQuestion/toggle","description":"<p>This endpoint sets the is_active flag on an ATS job position custom question. Requires permission to update that question (same gate as Update ATS job position custom question).</p>\n<hr />\n<p><strong>Request body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether the question is active. JSON booleans only.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-positions","custom-questions",":customQuestion","toggle"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Custom question id (<code>custom_questions.id</code>). Use <strong><code>id</code></strong> from <strong>List ATS job position custom questions</strong> or <strong>Get ATS job position custom question</strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"customQuestion"}]}},"response":[{"id":"f3b9ab78-796a-4faf-b31c-ea748bb7640b","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/101/toggle"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"09a8ad42-62c7-41ff-9385-910817f283c0","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/101/toggle"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"is_active\": [\n      \"The is active field is required.\"\n    ]\n  }\n}"},{"id":"4cc30f71-79f2-4388-92de-ae943eebf4a4","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/101/toggle"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5ffe41d3-fba8-40c1-a3a6-6abd983317e8","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/101/toggle"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"0d72792e-668e-47ea-8719-5a75f593b2a3","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-positions/custom-questions/99999999/toggle"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\CustomQuestion] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"71d0ecc7-bc22-4afb-be3d-4f268e2778bb"}],"id":"e339bd43-74a8-4cda-ad2c-da1384cd4c5b","description":"<p>To use this feature requires that your subscription for TalentHR supports the respective component.</p>\n","_postman_id":"e339bd43-74a8-4cda-ad2c-da1384cd4c5b","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Applicant Tracking System","item":[{"name":"Get all the candidates","id":"6a3fc3c3-5774-477a-bb91-e2a717588c48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/ats-applicants?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&pool=<boolean>","description":"<h3 id=\"api-endpoint-to-get-all-the-candidates\">API Endpoint to get all the candidates.</h3>\n<p>This endpoint retrieves comprehensive information on all domain candidates for the job positions. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n<p>In addition to pagination parameters, users can customize the order and sorting of the retrieved data or search through them. The search option exclusively searches for first names, last names, and emails.</p>\n<p>Furthermore, the candidates' endpoint offers the option to retrieve only the favorite applicants within our domain (applicants that have been starred) when opting for the pool option.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["ats-applicants"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum values ['asc','desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum values ['name', 'created_at']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>Searching</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>If '1' see only favorite applicants, else if '0' see all applicants</p>\n","type":"text/plain"},"key":"pool","value":"<boolean>"}],"variable":[]}},"response":[{"id":"b4902666-f0fe-423c-b338-83f50b4fe943","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/ats-applicants?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&pool=<boolean>","host":["https://pubapi.talenthr.io/v1"],"path":["ats-applicants"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"},{"key":"pool","value":"<boolean>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"email\": \"jdoe@example.com\",\n        \"phone\": \"0030 6985*******\",\n        \"address\": \"address-name\",\n        \"created_at\": \"2023-12-11 11:16:50\",\n        \"updated_at\": \"2023-12-11 11:16:51\",\n        \"deleted_at\": null,\n        \"starred\": false,\n        \"applications_count\": 1,\n        \"added_at\": \"2023-12-11\"\n      }\n    ]\n  }\n}"}],"_postman_id":"6a3fc3c3-5774-477a-bb91-e2a717588c48"},{"name":"Get an applicant","id":"b9194b08-9783-4dfd-b1c7-823892f54b85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/ats-applicants/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-a-specified-candidate-all-his-applications-are-included\">API Endpoint to retrieve a specified candidate (all his applications are included).</h3>\n<p>This endpoint provides comprehensive information about the specified applicant. It includes brief details about the applicant as well as information about the applications he/she is submitted and the step he/she is in for all the job positions in the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["ats-applicants",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"21e260ff-989e-42df-bc25-0000d1ebc5a7","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["ats-applicants",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\\\"\": 1,\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"phone\": \"phone-number\",\n    \"description\": \"This is a description...\",\n    \"starred\": false,\n    \"address\": \"address-name\",\n    \"latest_cv_id\": 1,\n    \"created_at\": \"2023-11-15 14:58:52\",\n    \"updated_at\": \"2023-11-15 14:59:13\",\n    \"deleted_at\": null,\n    \"latest_application_id\": 1,\n    \"applications_count\": 1,\n    \"added_at\": \"2023-11-15\",\n    \"applications\": [\n      {\n        \"id\": 1,\n        \"job_position_id\": 1,\n        \"applicant_id\": 1,\n        \"application_step_id\": 5,\n        \"application_step_slug\": \"hired\",\n        \"application_step\": {\n          \"id\": 5,\n          \"slug\": \"hired\",\n          \"name\": \"Hired\",\n          \"is_enabled\": 1,\n          \"editable\": 0,\n          \"sort_order\": 5\n        }\n      }\n    ],\n    \"latest_cv\": {\n      \"id\": 1,\n      \"applicant_id\": 1,\n      \"client_filename\": \"Resume2.pdf\",\n      \"filename\": \"/testdomain1/applicants_cvs/1700060332_Resume2.pdf\",\n      \"filetype\": \"pdf\",\n      \"created_at\": \"2023-11-15 14:58:57\",\n      \"updated_at\": \"2023-11-15 14:58:57\",\n      \"deleted_at\": null,\n      \"master_id\": null,\n      \"preview_filename\": null,\n      \"cv_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/applicants_cvs/1700060332_Resume2.pdf?Expires=1708949231&Signature=hMildweXtyS201~fB~a7CXGwerbSxOzuBJf-xdGY1Xis4AYyasAIuXnX~QD5LUb6TqlcsQenrK3hoqzAGatxJoZSqn2ID82ToMeW9RhJpPf3EDOVCUVqvF0a0V5yZDS5cPjyh4~NbjfCyw-0ai2RMBkXnIUkCpGx7gPG6crbjKfFM08UBsqNGNZKYySUmJX--B1ceDGCIqZ~ABnc4hVey4FWNUXlO-Yn4bWVIpi8~nmFFT7KmdhLAKvY7ZD-c6VAOa-BSceCfJb8ccURpfc8n8n9uCFob0s6cX90pz29NFX0vZ985pKIgjpNyfhQi05nd4sLsxzB-k6sRHKL1MRumQ__&Key-Pair-Id=K2KPAB7VLWPOH\",\n      \"preview_cv_url\": null\n    }\n  }\n}"},{"id":"70400927-b168-47be-af50-d6b71063da11","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["ats-applicants",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"b9194b08-9783-4dfd-b1c7-823892f54b85"},{"name":"Delete an applicant","id":"d84d1a01-3b7e-448d-baa9-32a4828096ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/ats-applicants/:objectId","description":"<h3 id=\"api-endpoint-to-remove-a-candidate\">API Endpoint to remove a candidate.</h3>\n<p>This endpoint facilitates the deletion of the specified applicant. Upon deletion, the associated applications, cv and application notes for this candidate will also be removed.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["ats-applicants",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"e02fe3c4-af8a-41ff-96cf-67ad2e11498c","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["ats-applicants",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"953a00e0-62b6-4882-885c-c549198adfb6","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/ats-applicants/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["ats-applicants",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"d84d1a01-3b7e-448d-baa9-32a4828096ee"}],"id":"996ced73-e92a-4640-b90f-c68dea9f92b8","_postman_id":"996ced73-e92a-4640-b90f-c68dea9f92b8","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Locations","item":[{"name":"Get all the locations","id":"b23f6377-8ba5-400a-aa48-efee7bd02e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/locations","description":"<h3>API endpoint to get all available locations.</h3>\n\n<p>This endpoint retrieves a list of all available locations.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["locations"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"dafbac43-9b38-48c5-9df3-72498b7b541f","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/locations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 34,\n      \"name\": \"California\",\n      \"object_type\": \"location\",\n      \"field_data\": {\n        \"address\": \"address-name\",\n        \"is_remote\": false\n      }\n    },\n    {\n      \"id\": 35,\n      \"name\": \"London\",\n      \"object_type\": \"location\",\n      \"field_data\": {\n        \"address\": \"address-name\",\n        \"is_remote\": true\n      }\n    }\n  ]\n}"}],"_postman_id":"b23f6377-8ba5-400a-aa48-efee7bd02e99"},{"name":"Create a location","id":"480d8350-45e3-498e-a8c9-83b000d9cafe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // Required field. Maximum character limit: 255 characters. The name must be unique.\n  \"field_data\": { // Required field. Object with properties address and is_remote.\n    \"address\": \"<string>\", // The address is required with maximum character limit: 100 characters.\n    \"is_remote\":\"<boolean>\" // THe is_remote is required.\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/locations","description":"<h3>API endpoint to create a new location.</h3>\n\n<p>This endpoint facilitates the creation of a new location. You should provide the name which should be unique, an address, and specify whether the position for this location is remote work.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Name</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g London</td>\n</tr>\n<tr>\n<td>field_data</td>\n<td>object</td>\n<td>true</td>\n<td>Object with properties address and is_remote. The address is required with maximum character limit: 100 characters. The is_remote is boolean and required.</td>\n<td>e.g.  <br />\"field_data\":{  <br />\"address\":\" 21 Main Street\",  <br />\"is_remote\":false  <br />}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["locations"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"709adddb-64d1-4912-9fde-c0a87d4ea99e","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"location-name\",\n  \"field_data\": \"{\\\"address\\\":\\\"address-name\\\",\\\"is_remote\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/locations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 34,\n    \"name\": \"California\",\n    \"object_type\": \"location\",\n    \"field_data\": {\n      \"address\": \"address-name\",\n      \"is_remote\": false\n    }\n  }\n}"},{"id":"a7704123-03eb-4e82-ae6c-710d79f330e8","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"location-name\",\n  \"field_data\": \"{\\\"address\\\":\\\"address-name\\\",\\\"is_remote\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/locations"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"480d8350-45e3-498e-a8c9-83b000d9cafe"},{"name":"Get  a location","id":"95bf9d07-4ae1-48d9-bad5-956148b80251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/locations/:objectId","description":"<h3>API endpoint to fetch the information for a specific location.</h3>\n\n<p>This endpoint retrieves the specified location from the system's 'locations'.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["locations",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"fa7c01f6-6f14-40cb-9d04-253a75546298","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 34,\n    \"name\": \"California\",\n    \"object_type\": \"location\",\n    \"field_data\": {\n      \"address\": \"address-name\",\n      \"is_remote\": false\n    }\n  }\n}"},{"id":"cacf3f43-af59-427c-9612-6299cf823ac6","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"95bf9d07-4ae1-48d9-bad5-956148b80251"},{"name":"Update a location","id":"f77728a7-2cc5-4faa-bc4b-ea57acb27bca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // Required field. Maximum character limit: 255 characters. The name must be unique.\n  \"field_data\": { // Required field. Object with properties address and is_remote.\n    \"address\": \"<string>\", // The address is required with maximum character limit: 100 characters.\n    \"is_remote\":\"<boolean>\" // THe is_remote is required.\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/locations/:objectId","description":"<h3>API endpoint to update the specified location.</h3>\n\n<p>This endpoint updates the specified location. You should provide the name which should be unique, an address, and specify whether the position for this location is remote work.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Name</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g London</td>\n</tr>\n<tr>\n<td>field_data</td>\n<td>object</td>\n<td>true</td>\n<td>Object with properties address and is_remote. The address is required with maximum character limit: 100 characters. The is_remote is boolean and required.</td>\n<td>e.g.  <br />\"field_data\":{  <br />\"address\":\" 21 Main Street\",  <br />\"is_remote\":false  <br />}</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["locations",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"5a1fb861-e6e2-4e49-9d87-0d89483ff7c6","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"location-name\",\n  \"field_data\": \"{\\\"address\\\":\\\"address-name\\\",\\\"is_remote\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 34,\n    \"name\": \"California\",\n    \"object_type\": \"location\",\n    \"field_data\": {\n      \"address\": \"address-name\",\n      \"is_remote\": false\n    }\n  }\n}"},{"id":"a39d7bdd-e754-4477-8375-59d707c22d82","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"location-name\",\n  \"field_data\": \"{\\\"address\\\":\\\"address-name\\\",\\\"is_remote\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"ddc8fec3-c78f-40f3-9560-fdabd26f9e35","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"location-name\",\n  \"field_data\": \"{\\\"address\\\":\\\"address-name\\\",\\\"is_remote\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"f77728a7-2cc5-4faa-bc4b-ea57acb27bca"},{"name":"Delete a location","id":"a65e0908-e6ae-4e56-8d62-37d442314c98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/locations/:objectId","description":"<h3>API endpoint to delete the specified location.</h3>\n\n<p>This endpoint deletes the specified location. However, if the location is associated with an active job position record or an active job position record in the Applicant Tracking System (ATS), the deletion cannot proceed.</p>\n<p>Furthermore, when a location record is deleted, any associated benefits, performance reviews, holidays, tasks, and employee asset assignments linked to the location are updated accordingly, removing the location attribute from these records.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["locations",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"e241a2d2-1bda-4b91-bd48-a236d77b0d9f","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"c89546fb-b5d0-4729-ba74-c685e7001c05","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/locations/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["locations",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"a65e0908-e6ae-4e56-8d62-37d442314c98"}],"id":"a1f311cd-a47b-408a-8854-e657551cfae2","_postman_id":"a1f311cd-a47b-408a-8854-e657551cfae2","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Divisions","item":[{"name":"Get all the divisions","id":"c409be86-a1eb-44c3-b960-9517b04f3331","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/divisions","description":"<h3>API endpoint to get all available divisions.</h3>\n\n<p>This endpoint retrieves a list of all available divisions.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["divisions"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"40d36e90-903c-4fe3-b378-3c2ce09798d0","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/divisions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 12,\n      \"name\": \"North America\",\n      \"object_type\": \"division\"\n    },\n    {\n      \"id\": 13,\n      \"name\": \"Europe\",\n      \"object_type\": \"division\"\n    }\n  ]\n}"}],"_postman_id":"c409be86-a1eb-44c3-b960-9517b04f3331"},{"name":"Create a division","id":"9094ac0f-cc0f-44c6-8dd2-fd1f0680e304","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Required field. Maximum character limit: 255 characters. The name must be unique.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/divisions","description":"<h3>API endpoint to create a new division.</h3>\n\n<p>This endpoint facilitates the creation of a new division. You should provide the name for the current division which should be unique.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g. Europe</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["divisions"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"2d333a98-2c82-4747-b8c7-2e37c765825c","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"division-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/divisions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 12,\n    \"name\": \"North America\",\n    \"object_type\": \"division\"\n  }\n}"},{"id":"7c97766b-bfe6-43a1-be0d-69b45faeaa5b","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"division-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/divisions"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"9094ac0f-cc0f-44c6-8dd2-fd1f0680e304"},{"name":"Get  a division","id":"f51c9733-09b9-4d8c-8744-eb8531074351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/divisions/:objectId","description":"<h3>API endpoint to fetch a specific division.</h3>\n\n<p>This endpoint retrieves the specified division from the system's 'divisions'.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["divisions",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"1d0c5c04-0f67-4c79-bd25-a24720c0e60c","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 12,\n    \"name\": \"North America\",\n    \"object_type\": \"division\"\n  }\n}"},{"id":"25b7df9d-94be-4c90-a32f-9dfd10b2bab1","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"f51c9733-09b9-4d8c-8744-eb8531074351"},{"name":"Update a division","id":"75aa34b2-089d-46be-8f12-8d780344619a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Required field. Maximum character limit: 255 characters. The name must be unique.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/divisions/:objectId","description":"<h3>API endpoint to update the specified division.</h3>\n\n<p>This endpoint updates the specified division. You should provide the name of the current division which should be unique.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g. Europe</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["divisions",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"d95756e0-66fc-43fa-94d6-9d5201e7c800","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"division-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 12,\n    \"name\": \"North America\",\n    \"object_type\": \"division\"\n  }\n}"},{"id":"d11fe1a0-8b5e-4912-b8ab-baa877f1e2b6","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"division-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"a1501fa1-82c2-4fa5-8eef-e60ad6ff7237","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"division-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"75aa34b2-089d-46be-8f12-8d780344619a"},{"name":"Delete a division","id":"4efe9e78-a714-4251-a443-90d09449b67a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/divisions/:objectId","description":"<h3>API endpoint to delete the specified division.</h3>\n\n<p>This endpoint deletes the specified division. However, if the division is associated with an active job position record, the deletion cannot proceed.</p>\n<p>Furthermore, when a divison record is deleted, any associated benefits, performance reviews, holidays, tasks, and employee asset assignments linked to the location are updated accordingly, removing the division attribute from these records.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["divisions",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"97e7078a-15d5-4cd6-8e43-be6d19c56914","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"868c2ac5-e9d7-4744-9a85-be65ea5d4c57","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/divisions/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["divisions",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"4efe9e78-a714-4251-a443-90d09449b67a"}],"id":"21bafa0c-e2aa-44bd-a2ff-9caf48923cfb","_postman_id":"21bafa0c-e2aa-44bd-a2ff-9caf48923cfb","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Departments","item":[{"name":"Get all the departments","id":"0fb93628-b543-443e-aa8c-aae4c95a554f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/departments","description":"<h3>API endpoint to get all available departments.</h3>\n\n<p>This endpoint retrieves a list of all available departments.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["departments"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"6474339d-9a9d-4d5f-befa-a6190e24f8c9","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/departments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 6,\n      \"name\": \"Administration & Operations\",\n      \"object_type\": \"department\"\n    },\n    {\n      \"id\": 7,\n      \"name\": \"Research & Development\",\n      \"object_type\": \"department\"\n    }\n  ]\n}"}],"_postman_id":"0fb93628-b543-443e-aa8c-aae4c95a554f"},{"name":"Create a department","id":"c316be85-e897-47d6-bce7-0a1af273770b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Required field. Maximum character limit: 255 characters. The name must be unique.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/departments","description":"<h3>API endpoint to create a new department.</h3>\n\n<p>This endpoint facilitates the creation of a new department. You should provide the name for the current department which should be unique.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Attributes</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>required</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g  <br />Customer Service</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["departments"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"9b746f24-5641-4ed4-a29b-b41851cd3a19","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"department-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/departments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6,\n    \"name\": \"Administration & Operations\",\n    \"object_type\": \"department\"\n  }\n}"},{"id":"4de4ce17-f273-41a7-b60a-04e587b3e239","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"department-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/departments"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"c316be85-e897-47d6-bce7-0a1af273770b"},{"name":"Get  a department","id":"93d401ff-91f4-478f-88dd-f50bc7e76937","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/departments/:objectId","description":"<h3>API endpoint to fetch the information for department.</h3>\n\n<p>This endpoint retrieves the specified department from the system's 'departments'.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["departments",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"970e1ff0-97db-45e3-9b37-3a52306fe858","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6,\n    \"name\": \"Administration & Operations\",\n    \"object_type\": \"department\"\n  }\n}"},{"id":"938799e8-e5e8-4841-9e65-65686803e019","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"93d401ff-91f4-478f-88dd-f50bc7e76937"},{"name":"Update a department","id":"0febaec5-7db0-40a8-ba2b-ac7a58401944","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Required field. Maximum character limit: 255 characters. The name must be unique.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/departments/:objectId","description":"<h3>API endpoint to update the specified department.</h3>\n\n<p>This endpoint updates the specified department. You should provide the name of the current department which should be unique.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g  <br />Customer Service</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["departments",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"aa18d0c4-06b3-43d7-b0dc-38ac63f75478","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"department-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6,\n    \"name\": \"Administration & Operations\",\n    \"object_type\": \"department\"\n  }\n}"},{"id":"b1d336ed-9278-46dc-918b-1b2ab02ee4a7","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"department-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"28ccc93d-5d46-4b82-81aa-c88f5b0cca5a","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"department-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"0febaec5-7db0-40a8-ba2b-ac7a58401944"},{"name":"Delete a department","id":"9cb5ab42-ed6b-41e0-bee2-6c92f6358b26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/departments/:objectId","description":"<h3>API endpoint to delete the specified department.</h3>\n\n<p>This endpoint deletes the specified department. However, if the department is associated with an active job position record or an active job position record in the Applicant Tracking System (ATS), the deletion cannot proceed.</p>\n<p>Furthermore, when a department record is deleted, any associated benefits, performance reviews, holidays, tasks, and employee asset assignments linked to the location are updated accordingly, removing the department attribute from these records.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["departments",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"2ca302f1-69d4-48d9-9acd-714036399933","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"c80d4436-6c58-4c9e-868f-cc9e91b210b4","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/departments/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["departments",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"9cb5ab42-ed6b-41e0-bee2-6c92f6358b26"}],"id":"0829c9a9-9775-462a-855c-abadb39116b9","_postman_id":"0829c9a9-9775-462a-855c-abadb39116b9","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Job Titles","item":[{"name":"Get all the job titles","id":"d674dc3b-9e43-4127-9d4c-950c2d3ed8e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-titles","description":"<h3>API endpoint to get all available job titles.</h3>\n\n<p>This endpoint retrieves a list of all available job titles.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-titles"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"b0ae7693-d43b-446b-9f8b-a7e01a60ec8e","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-titles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 29,\n      \"name\": \"Accountant\",\n      \"object_type\": \"job-title\"\n    },\n    {\n      \"id\": 21,\n      \"name\": \"Human Resources Manager\",\n      \"object_type\": \"job-title\"\n    }\n  ]\n}"}],"_postman_id":"d674dc3b-9e43-4127-9d4c-950c2d3ed8e0"},{"name":"Create a job title","id":"41583790-0d90-4b18-8320-10f709e1027f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Maximum character limit: 255 characters. The name must be unique.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-titles","description":"<h3>API endpoint to create a new job title.</h3>\n\n<p>This endpoint facilitates the creation of a new job title. You should provide the name for the current job title which should be unique.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g Sales Manager</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-titles"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"f954a9fc-0039-4220-9d1c-90ed0fc5f409","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"job-title-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-titles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 29,\n    \"name\": \"Accountant\",\n    \"object_type\": \"job-title\"\n  }\n}"},{"id":"896e6bb7-caf3-45ec-9698-42770d16400c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"job-title-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-titles"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"41583790-0d90-4b18-8320-10f709e1027f"},{"name":"Get  a job title","id":"4c419352-03c5-4308-9bec-d643e0b1e250","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-titles/:objectId","description":"<h3>API endpoint to fetch the information for a job title.</h3>\n\n<p>This endpoint retrieves the specified job title from the system's 'job-titles'.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-titles",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"4523a40e-2d2f-4c21-b9e2-d8edb4ec7de1","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 29,\n    \"name\": \"Accountant\",\n    \"object_type\": \"job-title\"\n  }\n}"},{"id":"36366901-6fad-4ddb-abee-bd5c00b1e8d1","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"4c419352-03c5-4308-9bec-d643e0b1e250"},{"name":"Update a job title","id":"5073d04f-0847-4662-88b6-c1ba2a2852cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"// Maximum character limit: 255 characters. The name must be unique.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/job-titles/:objectId","description":"<h3>API endpoint to update the specified job title.</h3>\n\n<p>This endpoint updates the specified job title. You should provide the name of the current job title which should be unique.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters. Name must be unique.</td>\n<td>e.g Sales Manager</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-titles",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"b7e38c94-2a4d-4bc7-b250-aca8fbcf5b63","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"job-title-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 29,\n    \"name\": \"Accountant\",\n    \"object_type\": \"job-title\"\n  }\n}"},{"id":"dffd151f-60e8-4fac-bae2-ddd3f7eb3ce0","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"job-title-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"ae79f989-f52d-4477-9a96-241359bcb8ff","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"job-title-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"5073d04f-0847-4662-88b6-c1ba2a2852cf"},{"name":"Delete a job title","id":"e4b3c112-ebb7-48e8-89ea-247bc2080058","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/job-titles/:objectId","description":"<h3>API endpoint to delete the specified job title.</h3>\n\n<p>This endpoint deletes the specified job title. However, if the job title is associated with an active job position record, the deletion cannot proceed.</p>\n<p>Furthermore, when a job title record is deleted, any associated benefits, performance reviews, holidays and tasks, linked to the job title are updated accordingly, removing the job title attribute from these records.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["job-titles",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"ec02de37-ed9c-4cfd-9621-b2d2c17c59ec","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"03051131-b4fb-4fcc-a326-9be3b39040f3","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/job-titles/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["job-titles",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"e4b3c112-ebb7-48e8-89ea-247bc2080058"}],"id":"37d54ee0-c2d7-42c4-a054-a9be19247aa7","_postman_id":"37d54ee0-c2d7-42c4-a054-a9be19247aa7","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Benefit","item":[{"name":"Get all benefits","id":"b70bd9d3-5ee6-4dd6-af3d-c74d41632f41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefits?filter=<string>","description":"<h3>API endpoint to get all available benefits.</h3>\n\n<p>This endpoint retrieves comprehensive information for all benefits which are available within the system. Each benefit includes general information, as well as category-specific details and prerequisites if the benefit is not required for everyone (required for specific department, division, location, job title, employment status, or employee).</p>\n<p>This endpoint offers the flexibility to use <strong>filters</strong> for retrieving specific data based on your requirements. These filters could include locations, divisions, departments, job titles, employment statuses, and individual employees. To retrieve the valid benefit filters (and therefore the Ids you need), you should access the <strong>\"Get all benefit filters\"</strong> endpoint.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefits"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>Filters for the benefits with their Ids (integer), ('location' =&gt; [],'department' =&gt; [],'division' =&gt; [],'job_title' =&gt; [],'emp_state' =&gt; [],'employee' =&gt; []). Example: location=36;emp_state=1,2,3,5;employee=1;</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"e45a4ec6-2c00-4a7e-bdf4-0cabd569f00e","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefits"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2,\n      \"name\": \"benefit-name\",\n      \"description\": null,\n      \"cost\": null,\n      \"cost_currency\": \"USD\",\n      \"cost_period\": null,\n      \"required_for_all\": false,\n      \"benefit_category_id\": 1,\n      \"created_at\": \"2023-11-16 07:48:58\",\n      \"updated_at\": \"2024-02-21 09:37:37\",\n      \"deleted_at\": null,\n      \"start_date\": \"2023-01-02\",\n      \"end_date\": \"2023-12-30\",\n      \"benefit_category\": {\n        \"id\": 1,\n        \"name\": \"benefit-category-1\"\n      },\n      \"benefit_required_for\": [\n        {\n          \"id\": 1,\n          \"benefit_id\": 2,\n          \"object_id\": 36,\n          \"required_for_type\": \"location\",\n          \"created_at\": \"2024-02-21 09:37:37\",\n          \"updated_at\": \"2024-02-21 09:37:37\",\n          \"deleted_at\": null,\n          \"object_name\": \"Athens\",\n          \"employee_custom_field\": {\n            \"id\": 36,\n            \"name\": \"Athens\",\n            \"object_type\": \"location\"\n          }\n        }\n      ]\n    }\n  ]\n}"}],"_postman_id":"b70bd9d3-5ee6-4dd6-af3d-c74d41632f41"},{"name":"Create a benefit","id":"ff66ffe3-05fa-4a0c-9533-876ad16138d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // Required field. Maximum character limit:191 characters.\n  \"start_date\": \"<date>\", // Required field. The start date must be formatted as 'YYYY-MM-DD'.\n  \"benefit_category_id\": \"<integer>\", // Nullable ield. Unique identifier of benefit categories.\n  \"end_date\": \"<date>\", // Nullable field. The end date must be formatted as 'YYYY-MM-DD'and be after or equal of 'start_date'.\n  \"cost\": \"<number>\", // Required when cost_period is available. The field can have a maximum of 2 decimal places.\n  \"cost_period\": \"<string>\",// Required when cost is available.The field can have certain specific values [Once off, hour, day, week, month, quarter, year]\n  \"description\": \"<string>\", // Nullable field. Maximum character limit:1000 characters.\n  \"required_for_all\": \"<boolean>\", //Required without 'benefit_required_for'\n  \"benefit_required_for\": {  // Required when 'required_for_all' is FALSE. Object with the required properties: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) with integer values (of Ids). At least one array within the object must contain at least one value.\n    \"location\": [\n      \"<integer>\", // Unique identifier from locations.\n      \"<integer>\" // Unique identifier from locations.\n    ],\n    \"division\": [\n      \"<integer>\", // Unique identifier from divisions.\n      \"<integer>\" // Unique identifier from divisions.\n    ],\n    \"department\": [\n      \"<integer>\", // Unique identifier from departments.\n      \"<integer>\" // Unique identifier from departments.\n    ],\n    \"job_title\": [\n      \"<integer>\", // Unique identifier from job titles.\n      \"<integer>\" // Unique identifier from job titles.\n    ],\n    \"emp_state\": [\n      \"<integer>\", // Unique identifier from employment status.\n      \"<integer>\" // Unique identifier from employment status.\n    ],\n    \"employee\": [\n      \"<integer>\", // Unique identifier from employees.\n      \"<integer>\" // Unique identifier from employees.\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefits","description":"<h3>API endpoint to create a new benefit.</h3>\n\n<p>This endpoint facilitates the creation of a new benefit. The request body should include the following parameters: the benefit's name, a start and an end date for the benefit, the benefit's specific category, its cost and cost period, a description, and a <code>required_for_all</code> flag indicating whether the benefit is mandatory for everyone.</p>\n<p>In cases where <code>required_for_all</code> is set to FALSE, an additional parameter <code>benefit_required_for</code> must be included. This parameter delineates the specific department, division, location, job title, employment status, or employee to whom the benefit applies.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g  <br />Health Insurance</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>date</td>\n<td>true</td>\n<td>The start date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g 2024-03-01</td>\n</tr>\n<tr>\n<td>benefit_category_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier from benefit categories</td>\n<td>e.g 1</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>date</td>\n<td>false</td>\n<td>The end date must be formatted as 'YYYY-MM-DD' and be after or equal the 'start_date'.</td>\n<td>e.g 2024-03-05</td>\n</tr>\n<tr>\n<td>cost</td>\n<td>number</td>\n<td>Required when cost_period is available.</td>\n<td>The field can have a maximum of 2 decimal places.</td>\n<td>e.g 965.32</td>\n</tr>\n<tr>\n<td>cost_period</td>\n<td>string</td>\n<td>true</td>\n<td>Required when cost is available.The field can have certain specific values [Once off, hour, day, week, month, quarter, year]</td>\n<td>e.g week</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit:1000 characters.</td>\n<td>e.g  <br />Health insurance pays most medical and surgical expenses and preventative care costs in return for monthly premiums.</td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>Required without 'benefit_required_for'</td>\n<td></td>\n<td>e.g true</td>\n</tr>\n<tr>\n<td>benefit_required_for</td>\n<td>object</td>\n<td>Required when 'required_for_all' is FALSE.</td>\n<td>Object with the required properties: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) with integer values (of Ids). At least one array within the object must contain at least one value.</td>\n<td>benefit_required_for':{\"location\":[35],\"division\":[16],\"department\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[]}'</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefits"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"1e04c857-51dc-4255-873a-daef543828d2","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"start_date\": \"<date>\",\n  \"benefit_category_id\": \"<integer>\",\n  \"end_date\": \"<date>\",\n  \"cost\": \"<number>\",\n  \"cost_period\": \"<string>\",\n  \"description\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"benefit_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefits"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"name\": \"benefit-name\",\n    \"description\": null,\n    \"cost\": null,\n    \"cost_currency\": \"USD\",\n    \"cost_period\": null,\n    \"required_for_all\": false,\n    \"benefit_category_id\": 1,\n    \"created_at\": \"2023-11-16 07:48:58\",\n    \"updated_at\": \"2024-02-21 09:37:37\",\n    \"deleted_at\": null,\n    \"start_date\": \"2023-01-02\",\n    \"end_date\": \"2023-12-30\",\n    \"benefit_category\": {\n      \"id\": 1,\n      \"name\": \"benefit-category-1\"\n    },\n    \"benefit_required_for\": [\n      {\n        \"id\": 1,\n        \"benefit_id\": 2,\n        \"object_id\": 36,\n        \"required_for_type\": \"location\",\n        \"created_at\": \"2024-02-21 09:37:37\",\n        \"updated_at\": \"2024-02-21 09:37:37\",\n        \"deleted_at\": null,\n        \"object_name\": \"Athens\",\n        \"employee_custom_field\": {\n          \"id\": 36,\n          \"name\": \"Athens\",\n          \"object_type\": \"location\"\n        }\n      }\n    ]\n  }\n}"},{"id":"a7333c6e-3938-4368-a899-dd15198f9861","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"start_date\": \"<date>\",\n  \"benefit_category_id\": \"<integer>\",\n  \"end_date\": \"<date>\",\n  \"cost\": \"<number>\",\n  \"cost_period\": \"<string>\",\n  \"description\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"benefit_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefits"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"ff66ffe3-05fa-4a0c-9533-876ad16138d6"},{"name":"Get a benefit","id":"fa326884-69c1-46fa-8aa3-3f64bf2738e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefits/:objectId","description":"<h3>API endpoint to fetch the information for a benefit.</h3>\n\n<p>This endpoint retrieves comprehensive information for a specified benefit.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefits",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"0f500921-75df-4c6a-9230-ab0bd34fbfb8","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"name\": \"benefit-name\",\n    \"description\": null,\n    \"cost\": null,\n    \"cost_currency\": \"USD\",\n    \"cost_period\": null,\n    \"required_for_all\": false,\n    \"benefit_category_id\": 1,\n    \"created_at\": \"2023-11-16 07:48:58\",\n    \"updated_at\": \"2024-02-21 09:37:37\",\n    \"deleted_at\": null,\n    \"start_date\": \"2023-01-02\",\n    \"end_date\": \"2023-12-30\",\n    \"benefit_category\": {\n      \"id\": 1,\n      \"name\": \"benefit-category-1\"\n    },\n    \"benefit_required_for\": [\n      {\n        \"id\": 1,\n        \"benefit_id\": 2,\n        \"object_id\": 36,\n        \"required_for_type\": \"location\",\n        \"created_at\": \"2024-02-21 09:37:37\",\n        \"updated_at\": \"2024-02-21 09:37:37\",\n        \"deleted_at\": null,\n        \"object_name\": \"Athens\",\n        \"employee_custom_field\": {\n          \"id\": 36,\n          \"name\": \"Athens\",\n          \"object_type\": \"location\"\n        }\n      }\n    ]\n  }\n}"},{"id":"0274d276-5a30-4ef2-8ec4-16ed5bcaf046","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"fa326884-69c1-46fa-8aa3-3f64bf2738e9"},{"name":"Update a benefit","id":"2bf636fa-9334-41ea-8472-92ee15fd0ce5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // Required field. Maximum character limit:191 characters.\n  \"start_date\": \"<date>\", // Required field. The start date must be formatted as 'YYYY-MM-DD'.\n  \"benefit_category_id\": \"<integer>\", // Nullable field. Unique identifier from benefit categories.\n  \"end_date\": \"<date>\", // Required field. The end date must be formatted as 'YYYY-MM-DD' and be after or equal the 'start_date'.\n  \"cost\": \"<number>\", // Required when cost_period is available. The field can have a maximum of 2 decimal places.\n  \"cost_period\": \"<string>\",// Required when cost or cost_currency is available.The field can have certain specific values [Once off, hour, day, week, month, quarter, year]\n  \"description\": \"<string>\", // Nullable field. Maximum character limit:1000 characters.\n  \"required_for_all\": \"<boolean>\", //Required without 'benefit_required_for'\n  \"benefit_required_for\": {  // Required when 'required_for_all' is FALSE. Object with the required properties: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) with integer values (of Ids). At least one array within the object must contain at least one value.\n    \"location\": [\n      \"<integer>\", // Unique identifier from locations.\n      \"<integer>\" // Unique identifier from locations.\n    ],\n    \"division\": [\n      \"<integer>\", // Unique identifier from divisions.\n      \"<integer>\" // Unique identifier from divisions.\n    ],\n    \"department\": [\n      \"<integer>\", // Unique identifier from departments.\n      \"<integer>\" // Unique identifier from departments.\n    ],\n    \"job_title\": [\n      \"<integer>\", // Unique identifier from job titles.\n      \"<integer>\" // Unique identifier from job titles.\n    ],\n    \"emp_state\": [\n      \"<integer>\", // Unique identifier from employment status.\n      \"<integer>\" // Unique identifier from employment status.\n    ],\n    \"employee\": [\n      \"<integer>\", // Unique identifier from employees.\n      \"<integer>\" // Unique identifier from employees.\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefits/:objectId","description":"<h3>API endpoint to update the specified benefit.</h3>\n\n<p>This endpoint updates the specified benefit. The request body should include the following parameters: the benefit's name, a start and end date for the benefit, the benefit's specific category, its cost and cost period, a description, and a <code>required_for_all</code> flag indicating whether the benefit is mandatory for everyone.</p>\n<p>In cases where <code>required_for_all</code> is set to FALSE, an additional parameter <code>benefit_required_for</code> must be included. This parameter delineates the specific department, division, location, job title, employment status, or employee to whom the benefit applies.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g  <br />Health Insurance</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>date</td>\n<td>true</td>\n<td>The start date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g  <br />2024-03-01</td>\n</tr>\n<tr>\n<td>benefit_category_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier from benefit categories</td>\n<td>e.g</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>date</td>\n<td>false</td>\n<td>The end date must be formatted as 'YYYY-MM-DD' and be after or equal the 'start_date'.</td>\n<td>e.g  <br />2024-03-05</td>\n</tr>\n<tr>\n<td>cost</td>\n<td>number</td>\n<td>Required when cost_period is available.</td>\n<td>The field can have a maximum of 2 decimal places.</td>\n<td>e.g 965.32</td>\n</tr>\n<tr>\n<td>cost_period</td>\n<td>string</td>\n<td>required</td>\n<td>Required when cost is available.The field can have certain specific values [Once off, hour, day, week, month, quarter, year]</td>\n<td>e.g week</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit:1000 characters.</td>\n<td>e.g  <br />Health insurance pays most medical and surgical expenses and preventative care costs in return for monthly premiums.</td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>Required without 'benefit_required_for'</td>\n<td></td>\n<td>e.g  <br />true</td>\n</tr>\n<tr>\n<td>benefit_required_for</td>\n<td>object</td>\n<td>Required when 'required_for_all' is FALSE.</td>\n<td>Object with the required properties: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) with integer values (of Ids). At least one array within the object must contain at least one value.</td>\n<td>benefit_required_for':{\"location\":[\"35\"],\"division\":[\"16\"],\"department\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[]}'</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefits",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"f6b4bd74-2747-4c3c-8d0a-76d3a1de9454","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"start_date\": \"<date>\",\n  \"benefit_category_id\": \"<integer>\",\n  \"end_date\": \"<date>\",\n  \"cost\": \"<number>\",\n  \"cost_period\": \"<string>\",\n  \"description\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"benefit_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"name\": \"benefit-name\",\n    \"description\": null,\n    \"cost\": null,\n    \"cost_currency\": \"USD\",\n    \"cost_period\": null,\n    \"required_for_all\": false,\n    \"benefit_category_id\": 1,\n    \"created_at\": \"2023-11-16 07:48:58\",\n    \"updated_at\": \"2024-02-21 09:37:37\",\n    \"deleted_at\": null,\n    \"start_date\": \"2023-01-02\",\n    \"end_date\": \"2023-12-30\",\n    \"benefit_category\": {\n      \"id\": 1,\n      \"name\": \"benefit-category-1\"\n    },\n    \"benefit_required_for\": [\n      {\n        \"id\": 1,\n        \"benefit_id\": 2,\n        \"object_id\": 36,\n        \"required_for_type\": \"location\",\n        \"created_at\": \"2024-02-21 09:37:37\",\n        \"updated_at\": \"2024-02-21 09:37:37\",\n        \"deleted_at\": null,\n        \"object_name\": \"Athens\",\n        \"employee_custom_field\": {\n          \"id\": 36,\n          \"name\": \"Athens\",\n          \"object_type\": \"location\"\n        }\n      }\n    ]\n  }\n}"},{"id":"9e2e4fdb-b644-4969-8637-b6fd7a602685","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"start_date\": \"<date>\",\n  \"benefit_category_id\": \"<integer>\",\n  \"end_date\": \"<date>\",\n  \"cost\": \"<number>\",\n  \"cost_period\": \"<string>\",\n  \"description\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"benefit_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"94df95b2-8e97-4196-9016-2d83b2b5ae1c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"start_date\": \"<date>\",\n  \"benefit_category_id\": \"<integer>\",\n  \"end_date\": \"<date>\",\n  \"cost\": \"<number>\",\n  \"cost_period\": \"<string>\",\n  \"description\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"benefit_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"2bf636fa-9334-41ea-8472-92ee15fd0ce5"},{"name":"Delete a benefit","id":"81842412-45fe-48d6-b480-13e421e5c504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefits/:objectId","description":"<h3>API endpoint to delete the specified benefit.</h3>\n\n<p>This endpoint facilitates the deletion of the specified benefit.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefits",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"99a1b884-3fbf-4619-82f6-373e6de16a6e","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"eb7a3c35-4302-4fb4-a402-b13dd9264a03","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefits/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefits",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"81842412-45fe-48d6-b480-13e421e5c504"},{"name":"Get all benefit filters","id":"74a1d52e-98dd-43c6-b774-dcfcd9adf245","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefits/filters","description":"<h3>API endpoint to get the available filters for the benefits.</h3>\n\n<p>This endpoint allows you to fetch a list of valid filters for the benefits.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefits","filters"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"a1188327-f8d0-440d-a0d6-db6d36540c6e","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefits/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"departments\": [\n      {\n        \"id\": 6,\n        \"name\": \"Administration & Operations\"\n      },\n      {\n        \"id\": 7,\n        \"name\": \"Research & Development\"\n      },\n      {\n        \"id\": 8,\n        \"name\": \"Marketing & Sales\"\n      },\n      {\n        \"id\": 9,\n        \"name\": \"Human Resources\"\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 12,\n        \"name\": \"North America\"\n      },\n      {\n        \"id\": 13,\n        \"name\": \"Europe\"\n      }\n    ],\n    \"locations\": [\n      {\n        \"id\": 33,\n        \"name\": \"New York\"\n      },\n      {\n        \"id\": 34,\n        \"name\": \"California\"\n      },\n      {\n        \"id\": 35,\n        \"name\": \"London\"\n      },\n      {\n        \"id\": 36,\n        \"name\": \"Athens\"\n      }\n    ],\n    \"job_titles\": [\n      {\n        \"id\": 18,\n        \"name\": \"Chief Executive Officer\"\n      },\n      {\n        \"id\": 21,\n        \"name\": \"Human Resources Manager\"\n      },\n      {\n        \"id\": 22,\n        \"name\": \"IT Manager\"\n      },\n      {\n        \"id\": 23,\n        \"name\": \"Marketing Manager\"\n      },\n      {\n        \"id\": 24,\n        \"name\": \"Sales Manager\"\n      }\n    ],\n    \"emp_state\": [\n      {\n        \"id\": 1,\n        \"name\": \"Full-Time\"\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Part-Time\"\n      }\n    ],\n    \"employees\": [\n      {\n        \"id\": 15,\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg?Expires=1708600410&Signature=ZxqghQxcKsjMJSBLgzEJOxdgMFQ9Tg1JsQ9fmGbZRA698CoJ67DbIK9r0jW2zO~LpwvWEL9hbR8aBeMmHem6Eqhc3NHj9suRJkYrOZr9xYJwiIC~ipODzajtHRFPzL46Y1vr~Nmcv814m6XJ5v9yoOfXl6Wrq5fd8iMJMd0Z0vGQimLH~PypvDosHuOu~il~8p7tcKCWeYITRDX6plPjmkTKAlvrp0rpppjiXc5GgjVysCB~JhEHmnMAzPLKggKOh0613AGxDPGQzbv1RhiX7iR1~0wFZRfjEyQOoUwAZAKkS6FlVimRw7Olc78G6wD4cLBx1Bn4DDT6SYnhzH8LqQ__&Key-Pair-Id=K2KPAB7VLWPOH\",\n        \"first_name\": \"Doe\",\n        \"last_name\": \"John\",\n        \"email\": \"john.doe@example.com\"\n      }\n    ]\n  }\n}"}],"_postman_id":"74a1d52e-98dd-43c6-b774-dcfcd9adf245"}],"id":"273394ed-35d8-4de8-8a2a-e52952b26060","_postman_id":"273394ed-35d8-4de8-8a2a-e52952b26060","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Benefit (Categories)","item":[{"name":"Get all benefit categories","id":"a400d302-883c-41f9-820b-992dd1e8fc80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefit-categories","description":"<h3>API endpoint to get all available benefit categories.</h3>\n\n<p>This endpoint retrieves comprehensive info about the benefit categories.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefit-categories"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"52710df0-2a74-496a-ab43-a7f9acea3def","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefit-categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"benefit-category-1\",\n      \"created_at\": \"2024-02-21 08:13:02\",\n      \"updated_at\": \"2024-02-21 08:13:02\",\n      \"deleted_at\": null\n    }\n  ]\n}"}],"_postman_id":"a400d302-883c-41f9-820b-992dd1e8fc80"},{"name":"Create a benefit category","id":"47e5dd59-a57f-4238-95e4-e6e48cd26525","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Required field. Maximum character limit:191 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefit-categories","description":"<h3>API endpoint to create a new benefit category.</h3>\n\n<p>This endpoint facilitates the creation of a new benefit category. You should provide the name of the current category.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. General</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefit-categories"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4339f2f2-2d61-4a8b-93c7-a8b11ddffab7","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"benefit-category-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefit-categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"benefit-category-1\",\n    \"created_at\": \"2024-02-21 08:13:02\",\n    \"updated_at\": \"2024-02-21 08:13:02\",\n    \"deleted_at\": null\n  }\n}"},{"id":"dfd5ebd3-6b91-43ca-9526-a7d3d5c264fa","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"benefit-category-name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefit-categories"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"47e5dd59-a57f-4238-95e4-e6e48cd26525"},{"name":"Get a benefit category","id":"108ac7ba-03de-4591-a947-db67bfb7d641","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","description":"<h3>API endpoint to fetch information for a benefit category.</h3>\n\n<p>This endpoint retrieves the specified benefit category.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefit-categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"e3ff69ba-8f6b-4fb7-acc6-b7f84b0eaec3","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"benefit-category-1\",\n    \"created_at\": \"2024-02-21 08:13:02\",\n    \"updated_at\": \"2024-02-21 08:13:02\",\n    \"deleted_at\": null\n  }\n}"},{"id":"5ebe66a6-9e70-47ee-be36-fd0e0e24c9de","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"108ac7ba-03de-4591-a947-db67bfb7d641"},{"name":"Update a benefit category","id":"ebce7895-399b-4b19-8563-fabe1ad1b008","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // Required field. Maximum character limit:191 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","description":"<h3 id=\"api-endpoint-to-update-a-benefit-category\">API endpoint to update a benefit category.</h3>\n<p>This endpoint updates the specific benefit category. You should provide the name of the current category.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. General</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefit-categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"406d74fc-4e13-4f26-b9b9-a3e636cee838","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"benefit-category-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"benefit-category-1\",\n    \"created_at\": \"2024-02-21 08:13:02\",\n    \"updated_at\": \"2024-02-21 08:13:02\",\n    \"deleted_at\": null\n  }\n}"},{"id":"a6456a1e-0b7f-440e-bedc-b7c2534c818b","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"benefit-category-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"850e5e7d-15ce-400c-bf73-7488c93026e4","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"benefit-category-name\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"ebce7895-399b-4b19-8563-fabe1ad1b008"},{"name":"Delete a benefit category","id":"8e981ada-9d88-4a9f-baa6-361f4fd074e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","description":"<h3>API endpoint to delete a benefit category.</h3>\n\n<p>This endpoint facilitates the deletion of the specified benefit. Upon deletion, all benefits associated with the specified category will be moved to the general category (uncategorized).</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["benefit-categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"62ce6d7c-1e83-4fd1-bfd1-6b9a60534094","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"a0191fa5-8d68-4c71-b72b-2c7983b1ed76","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/benefit-categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["benefit-categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"8e981ada-9d88-4a9f-baa6-361f4fd074e5"}],"id":"d109fbe3-96aa-4a28-a803-0df8c81dfa81","_postman_id":"d109fbe3-96aa-4a28-a803-0df8c81dfa81","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Holidays","item":[{"name":"Get all holidays","id":"52304fc9-f126-4597-b113-66a4582d5d3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/holidays?year=<integer>","description":"<h3>API endpoint to retrieve all the available holidays.</h3>\n\n<p>This endpoint retrieves comprehensive information for all holidays which are available within the system. Each holiday includes general information, as well as category-specific details and prerequisites if the holiday is not required for everyone (required for specific department, division, location, job title, employment status, or employee).</p>\n<p>There is a query parameter in the endpoint that specifies the <strong>year</strong> for which we want to retrieve the holidays. Valid years for holidays can be obtained from the 'get holiday years' endpoint. If this parameter is not provided, the endpoint will default to returning holidays for the current year.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["holidays"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The year of the holidays that occur. E.g. 2024</p>\n","type":"text/plain"},"key":"year","value":"<integer>"}],"variable":[]}},"response":[{"id":"ec7fa69b-e5f1-4190-b4c0-9661876003b0","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/holidays"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 13,\n      \"name\": \"New Year's Day\",\n      \"holiday_date\": \"2024-01-01\",\n      \"required_for_all\": false,\n      \"created_at\": \"2023-11-15 13:56:11\",\n      \"updated_at\": \"2024-02-20 11:25:56\",\n      \"deleted_at\": null,\n      \"holiday_required_for\": [\n        {\n          \"id\": 3,\n          \"holiday_id\": 13,\n          \"object_id\": 13,\n          \"required_for_type\": \"division\",\n          \"created_at\": \"2024-02-20 11:25:56\",\n          \"updated_at\": \"2024-02-20 11:25:56\",\n          \"deleted_at\": null,\n          \"object_name\": \"Europe\"\n        }\n      ]\n    },\n    {\n      \"id\": 14,\n      \"name\": \"Epiphany\",\n      \"holiday_date\": \"2024-01-06\",\n      \"required_for_all\": true,\n      \"created_at\": \"2023-11-15 13:56:11\",\n      \"updated_at\": \"2023-11-15 13:56:11\",\n      \"deleted_at\": null,\n      \"holiday_required_for\": []\n    }\n  ]\n}"}],"_postman_id":"52304fc9-f126-4597-b113-66a4582d5d3a"},{"name":"Create a holiday","id":"c96d5cfa-4a5e-4ec0-bfcb-aa7a6c627698","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", //  Required field. Maximum character limit:191 characters.\n  \"required_for_all\": \"<boolean>\", // Required without 'holiday_required_for'\n  \"holiday_date\": \"<date>\", // The holiday date must be formatted as 'YYYY-MM-DD'.\n  \"holiday_required_for\": { // Required when the 'required_for_all' is FALSE. Object with PROPERTIES: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) that contains the Id's of the specified field. At least one array within the object must contain at least one value.\n    \"location\": [\n      \"<integer>\", // Unique identifier from locations.\n      \"<integer>\" // Unique identifier from locations.\n    ],\n    \"division\": [\n      \"<integer>\", // Unique identifier from divisions.\n      \"<integer>\" // Unique identifier from divisions.\n    ],\n    \"department\": [\n      \"<integer>\", // Unique identifier from departments.\n      \"<integer>\" // Unique identifier from departments.\n    ],\n    \"job_title\": [\n      \"<integer>\", // Unique identifier from job titles.\n      \"<integer>\" // Unique identifier from job titles.\n    ],\n    \"emp_state\": [\n      \"<integer>\",  // Unique identifier from employment status.\n      \"<integer>\"  // Unique identifier from employment status.\n    ],\n    \"employee\": [\n      \"<integer>\",  // Unique identifier from employees.\n      \"<integer>\" // Unique identifier from employees.\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/holidays","description":"<h3>API endpoint to create a new holiday.</h3>\n\n<p>This endpoint facilitates the creation of a new holiday. The request body should include the following parameters: the holiday's name, the holiday date, and a <code>required_for_all</code> flag indicating whether the holiday is mandatory for everyone.</p>\n<p>In cases where <code>required_for_all</code> is set to FALSE, an additional parameter <code>holiday_required_for</code> must be included. This parameter delineates the specific department, division, location, job title, employment status, or employee to whom the holiday applies.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g.  <br />Christmas Day</td>\n</tr>\n<tr>\n<td>holiday_date</td>\n<td>date</td>\n<td>true</td>\n<td>The holiday date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-03-01</td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>Required without 'holiday_required_for'</td>\n<td></td>\n<td>e.g. true</td>\n</tr>\n<tr>\n<td>holiday_required_for</td>\n<td>object</td>\n<td>Required when 'required_for_all' is FALSE.</td>\n<td>Object with the required properties: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) with integer values (of Ids). At least one array within the object must contain at least one value.</td>\n<td>e.g.  <br />'holiday_required_for':{\"location\":[35],\"division\":[16],\"department\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[]}'</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["holidays"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"98679c62-a33f-43cf-aaf7-0ca1074f1d26","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"holiday_date\": \"<date>\",\n  \"holiday_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/holidays"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 13,\n    \"name\": \"New Year's Day\",\n    \"holiday_date\": \"2024-01-01\",\n    \"required_for_all\": false,\n    \"created_at\": \"2023-11-15 13:56:11\",\n    \"updated_at\": \"2024-02-20 11:25:56\",\n    \"deleted_at\": null,\n    \"holiday_required_for\": [\n      {\n        \"id\": 3,\n        \"holiday_id\": 13,\n        \"object_id\": 13,\n        \"required_for_type\": \"division\",\n        \"created_at\": \"2024-02-20 11:25:56\",\n        \"updated_at\": \"2024-02-20 11:25:56\",\n        \"deleted_at\": null,\n        \"object_name\": \"Europe\"\n      }\n    ]\n  }\n}"},{"id":"82de736c-4f92-4c58-bfef-0d94f3808be9","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"holiday_date\": \"<date>\",\n  \"holiday_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/holidays"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"c96d5cfa-4a5e-4ec0-bfcb-aa7a6c627698"},{"name":"Get a holiday","id":"61c56b3f-d499-47aa-aa17-a2443b266245","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/holidays/:objectId","description":"<h3>API endpoint to fetch information about a specified holiday.</h3>\n\n<p>This endpoint retrieves information about the specified holiday.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["holidays",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"2c34690f-8b0e-49a6-a911-935e2132749f","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 13,\n    \"name\": \"New Year's Day\",\n    \"holiday_date\": \"2024-01-01\",\n    \"required_for_all\": false,\n    \"created_at\": \"2023-11-15 13:56:11\",\n    \"updated_at\": \"2024-02-20 11:25:56\",\n    \"deleted_at\": null,\n    \"holiday_required_for\": [\n      {\n        \"id\": 3,\n        \"holiday_id\": 13,\n        \"object_id\": 13,\n        \"required_for_type\": \"division\",\n        \"created_at\": \"2024-02-20 11:25:56\",\n        \"updated_at\": \"2024-02-20 11:25:56\",\n        \"deleted_at\": null,\n        \"object_name\": \"Europe\"\n      }\n    ]\n  }\n}"},{"id":"5198952a-96c3-475e-9f4f-d8b924d6793d","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"61c56b3f-d499-47aa-aa17-a2443b266245"},{"name":"Update a holiday","id":"42d71d52-45d0-45d5-82cf-7aadf33b4a09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", //  Required field. Maximum character limit:191 characters.\n  \"required_for_all\": \"<boolean>\", // Required without 'holiday_required_for'\n  \"holiday_date\": \"<date>\", // The holiday date must be formatted as 'YYYY-MM-DD'.\n  \"holiday_required_for\": { // Required when the 'required_for_all' is FALSE. Object with PROPERTIES: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) that contains the Id's of the specified field. At least one array within the object must contain at least one value.\n    \"location\": [\n      \"<integer>\", // Unique identifier from locations.\n      \"<integer>\" // Unique identifier from locations.\n    ],\n    \"division\": [\n      \"<integer>\", // Unique identifier from divisions.\n      \"<integer>\" // Unique identifier from divisions.\n    ],\n    \"department\": [\n      \"<integer>\", // Unique identifier from departments.\n      \"<integer>\" // Unique identifier from departments.\n    ],\n    \"job_title\": [\n      \"<integer>\", // Unique identifier from job titles.\n      \"<integer>\" // Unique identifier from job titles.\n    ],\n    \"emp_state\": [\n      \"<integer>\",  // Unique identifier from employment status.\n      \"<integer>\"  // Unique identifier from employment status.\n    ],\n    \"employee\": [\n      \"<integer>\",  // Unique identifier from employees.\n      \"<integer>\" // Unique identifier from employees.\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/holidays/:objectId","description":"<h3>API endpoint to update the specified holiday.</h3>\n\n<p>This endpoint updates the specified holiday. The request body should include the following parameters: the holiday's name, the holiday date, and a <code>required_for_all</code> flag indicating whether the holiday is mandatory for everyone.</p>\n<p>In cases where <code>required_for_all</code> is set to FALSE, an additional parameter <code>holiday_required_for</code> must be included. This parameter delineates the specific department, division, location, job title, employment status, or employee to whom the holiday applies.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g  <br />Christmas Day</td>\n</tr>\n<tr>\n<td>holiday_date</td>\n<td>date</td>\n<td>true</td>\n<td>The holiday date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g 2024-03-01</td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>Required without 'holiday_required_for'</td>\n<td></td>\n<td>e.g true</td>\n</tr>\n<tr>\n<td>holiday_required_for</td>\n<td>object</td>\n<td>Required when 'required_for_all' is FALSE.</td>\n<td>Object with the required properties: location (array), division (array), department (array), job_title (array), emp_state (array), employee (array) with integer values (of Ids). At least one array within the object must contain at least one value.</td>\n<td>benefit_required_for':{\"location\":[35],\"division\":[16],\"department\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[]}'</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["holidays",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"4f76b03b-9586-4f1d-b368-77b55a139845","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"holiday_date\": \"<date>\",\n  \"holiday_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 13,\n    \"name\": \"New Year's Day\",\n    \"holiday_date\": \"2024-01-01\",\n    \"required_for_all\": false,\n    \"created_at\": \"2023-11-15 13:56:11\",\n    \"updated_at\": \"2024-02-20 11:25:56\",\n    \"deleted_at\": null,\n    \"holiday_required_for\": [\n      {\n        \"id\": 3,\n        \"holiday_id\": 13,\n        \"object_id\": 13,\n        \"required_for_type\": \"division\",\n        \"created_at\": \"2024-02-20 11:25:56\",\n        \"updated_at\": \"2024-02-20 11:25:56\",\n        \"deleted_at\": null,\n        \"object_name\": \"Europe\"\n      }\n    ]\n  }\n}"},{"id":"15ece9b0-fa49-49f9-9439-2d80aa496717","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"holiday_date\": \"<date>\",\n  \"holiday_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"31ddd529-b94e-4f2f-a0b5-f1f4ea287538","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"required_for_all\": \"<boolean>\",\n  \"holiday_date\": \"<date>\",\n  \"holiday_required_for\": {\n    \"location\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"division\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"department\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"job_title\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"emp_state\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"employee\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"42d71d52-45d0-45d5-82cf-7aadf33b4a09"},{"name":"Delete a holiday","id":"1b6bfec9-f118-4cf3-a1af-0dd451868f2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/holidays/:objectId","description":"<h3>API endpoint to delete the specified holiday.</h3>\n\n<p>This endpoint facilitates the deletion of the specified holiday.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["holidays",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"4cb3f8ab-3bda-450e-814d-d52c6954fb44","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"b4d7c5fe-3b38-41a5-a2a2-a7a7d996232e","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/holidays/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["holidays",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"1b6bfec9-f118-4cf3-a1af-0dd451868f2d"},{"name":"Get holiday years","id":"819f4ca5-f471-4d1f-bd6b-6fa1fe665968","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/holidays/years","description":"<h3>API endpoint to get each available year of holidays.</h3>\n\n<p>This endpoint returns the years for which holidays are available in our system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["holidays","years"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"f0348528-0a5b-4093-aa50-777d378ded7b","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/holidays/years"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"type\": \"success\",\n  \"data\": [\n    2023,\n    2024\n  ]\n}"}],"_postman_id":"819f4ca5-f471-4d1f-bd6b-6fa1fe665968"}],"id":"5cc8caf1-c0b9-49fa-a284-7401c59b07b6","_postman_id":"5cc8caf1-c0b9-49fa-a284-7401c59b07b6","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Time off (Types)","item":[{"name":"Get time off types","id":"fc960dc6-9bcb-45d4-9fe2-99b0e0cda20e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-off-types","description":"<h3 id=\"api-endpoint-to-retrieve-the-available-time-off-types\">API Endpoint to retrieve the available time off types.</h3>\n<p>This endpoint gets a list of time off types.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-off-types"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"91725c96-fb44-45bc-8783-8b989a532121","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-off-types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Sick Leave\",\n      \"slug\": \"sick-leave\",\n      \"budget\": \"5.000\",\n      \"period\": \"days\",\n      \"paid\": true,\n      \"is_default\": true,\n      \"created_at\": \"2023-06-15 06:08:13\",\n      \"updated_at\": \"2023-06-15 06:08:13\",\n      \"deleted_at\": null,\n      \"is_disabled\": false\n    },\n    {\n      \"id\": 4,\n      \"name\": \"Vacation\",\n      \"slug\": \"vacation\",\n      \"budget\": \"15.000\",\n      \"period\": \"days\",\n      \"paid\": true,\n      \"is_default\": true,\n      \"created_at\": \"2023-06-15 06:08:13\",\n      \"updated_at\": \"2023-06-15 06:08:13\",\n      \"deleted_at\": null,\n      \"is_disabled\": false\n    }\n  ]\n}"}],"_postman_id":"fc960dc6-9bcb-45d4-9fe2-99b0e0cda20e"},{"name":"Create a time off type","id":"ab156525-19d4-4bb6-9b17-4bfc5428235e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) The time off type's name. Maximum character limit: 191 characters.\n  \"budget\": \"<number>\", // (Required) Time off Budget with minimum value 0 and maximum value 365. You can't use more than 3 decimal places for budget field..\n  \"paid\": \"<boolean>\", // (Required) If it's 'true' then the time off type  days are eligible for payment.\n  \"is_disabled\": \"<boolean>\" // Opt for 'true' to disable the time off type, else 'false' to enable it.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-off-types","description":"<h3 id=\"api-endpoint-to-create-a-new-time-off-type\">API Endpoint to create a new time off type.</h3>\n<p>This endpoint facilitates the creation of a new time off type. The request body should include the following parameters: the name of the type, the budget for the current type (representing the overall days for the time off), a paid option indicating whether the employee will be paid during this time off, and an option showing whether the time off is enabled or not.</p>\n<p>When creating a time off type, time-off budgets are allocated for each employee in our system for the current year and the following one.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>The time off type's name.</td>\n<td>e.g. Maternity Leave</td>\n</tr>\n<tr>\n<td>budget</td>\n<td>number</td>\n<td>true</td>\n<td>Time off Budget with minimum value 0 and maximum value 365. You can't use more than 3 decimal places for budget field.</td>\n<td>e.g. 30</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>boolean</td>\n<td>true</td>\n<td>If it's 'true' then the time off type days are eligible for payment.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_disabled</td>\n<td>boolean</td>\n<td>false</td>\n<td>Opt for 'true' to disable the time off type, else 'false' to enable it.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-off-types"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4db6471b-b19c-46fb-8fa4-1be522ea654a","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"budget\": \"<integer>\",\n  \"paid\": \"<boolean>\",\n  \"is_disabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-off-types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Sick Leave\",\n    \"slug\": \"sick-leave\",\n    \"budget\": \"5.000\",\n    \"period\": \"days\",\n    \"paid\": true,\n    \"is_default\": true,\n    \"created_at\": \"2023-06-15 06:08:13\",\n    \"updated_at\": \"2023-06-15 06:08:13\",\n    \"deleted_at\": null,\n    \"is_disabled\": false\n  }\n}"},{"id":"4750d40e-b230-4fc7-889f-04fdd91e4e64","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"budget\": \"<integer>\",\n  \"paid\": \"<boolean>\",\n  \"is_disabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-off-types"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"ab156525-19d4-4bb6-9b17-4bfc5428235e"},{"name":"Get a time off type","id":"84799870-da87-4b9d-bc95-063fe3be9f2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-the-specified-time-off-type\">API Endpoint to retrieve the specified time off type.</h3>\n<p>This endpoint retrieves information about the specified time off type.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-off-types",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"dd42f4d9-cb9b-4e14-8a89-1c0ecee45788","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Sick Leave\",\n    \"slug\": \"sick-leave\",\n    \"budget\": \"5.000\",\n    \"period\": \"days\",\n    \"paid\": true,\n    \"is_default\": true,\n    \"created_at\": \"2023-06-15 06:08:13\",\n    \"updated_at\": \"2023-06-15 06:08:13\",\n    \"deleted_at\": null,\n    \"is_disabled\": false\n  }\n}"},{"id":"4516eb42-13c8-475f-9a5d-33d334ba3169","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"84799870-da87-4b9d-bc95-063fe3be9f2c"},{"name":"Update a time off type","id":"e7ea8d6f-4733-447a-b312-d7c6b4bb3b2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) The time off type's name. Maximum character limit: 191 characters.\n  \"budget\": \"<number>\", // (Required) Time off Budget with minimum value 0 and maximum value 365. You can't use more than 3 decimal places for budget field\n  \"paid\": \"<boolean>\", // (Required) If it's 'true' then the time off type  days are eligible for payment.\n  \"is_disabled\": \"<boolean>\" // Opt for 'true' to disable the time off type, else 'false' to enable it.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","description":"<h3 id=\"api-endpoint-to-update-the-specified-time-off-type\">API Endpoint to update the specified time off type.</h3>\n<p>This endpoint updates the specified time off type. The request body should include the following parameters: the name of the type, the budget for the current type (representing the overall days for the time off), a paid option indicating whether the employee will be paid during this time off, and an option showing whether the time off is enabled or not.</p>\n<p>When updating the time-off type budget, the time-off budgets for each employee in our system for the current year and the following one are adjusted accordingly.</p>\n<p><em><strong>Note:</strong></em> <em>You cannot update the paid option on the pre-existing time-off types within the system.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>The time off type's name.</td>\n<td>e.g. Maternity Leave</td>\n</tr>\n<tr>\n<td>budget</td>\n<td>number</td>\n<td>true</td>\n<td>Time off Budget with minimum value 0 and maximum value 365. You can't use more than 3 decimal places for budget field.</td>\n<td>e.g. 30</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>boolean</td>\n<td>true</td>\n<td>If it's 'true' then the time off type days are eligible for payment.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_disabled</td>\n<td>boolean</td>\n<td>false</td>\n<td>Opt for 'true' to disable the time off type, else 'false' to enable it.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-off-types",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"3735a2d3-4692-408b-936a-8e819442e903","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"budget\": \"<integer>\",\n  \"paid\": \"<boolean>\",\n  \"is_disabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"name\": \"Sick Leave\",\n    \"slug\": \"sick-leave\",\n    \"budget\": \"5.000\",\n    \"period\": \"days\",\n    \"paid\": true,\n    \"is_default\": true,\n    \"created_at\": \"2023-06-15 06:08:13\",\n    \"updated_at\": \"2023-06-15 06:08:13\",\n    \"deleted_at\": null,\n    \"is_disabled\": false\n  }\n}"},{"id":"c16b2c18-b8ff-43ac-85ef-55e735587b1c","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"budget\": \"<integer>\",\n  \"paid\": \"<boolean>\",\n  \"is_disabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"16ee045f-2d68-47e0-b0c7-da1ecc457846","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"budget\": \"<integer>\",\n  \"paid\": \"<boolean>\",\n  \"is_disabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"e7ea8d6f-4733-447a-b312-d7c6b4bb3b2c"},{"name":"Delete a time off type","id":"9e2a4eaa-6686-4e34-9871-c618e7fec34e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","description":"<h3 id=\"api-endpoint-to-delete-the-specified-time-off-type\">API Endpoint to delete the specified time off type.</h3>\n<p>This endpoint facilitates the deletion of the specified time off type.</p>\n<p>The blocked periods of this time off type also removed.</p>\n<p><em><strong>Note:</strong></em> <em>You cannot delete a time-off type that currently has active at least one time off.</em></p>\n<p><em><strong>Note:</strong></em> <em>You cannot delete the system's pre-existing time-off types.</em></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-off-types",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"0a846abd-09e0-40fd-b70d-72f65a203549","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"cee799f7-430a-4bc7-80f6-0c3df978217c","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/time-off-types/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["time-off-types",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"9e2a4eaa-6686-4e34-9871-c618e7fec34e"}],"id":"0af60139-4eff-4bf4-8006-afd4fa8717e2","_postman_id":"0af60139-4eff-4bf4-8006-afd4fa8717e2","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Time off (Blocked period)","item":[{"name":"Get time off blocked periods","id":"b975e0e4-968a-41b5-bcf9-aac84ababb8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/blocked-time-offs","description":"<h3 id=\"api-endpoint-to-retrieve-the-list-of-date-ranges-that-prohibit-requesting-time-off\">API Endpoint to retrieve the list of date ranges that prohibit requesting time off.</h3>\n<p>This endpoint provides comprehensive information on time off blocked periods. It provides general details about the blocked periods and the time off types affected by this.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["blocked-time-offs"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"e869ce3a-0a4a-40e8-aa0c-de5ad1ce048b","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/blocked-time-offs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 6,\n      \"start_date\": \"2023-12-11\",\n      \"end_date\": \"2023-12-15\",\n      \"is_active\": false,\n      \"created_at\": \"2023-12-04 09:22:09\",\n      \"updated_at\": \"2023-12-04 10:19:17\",\n      \"deleted_at\": null,\n      \"is_for_all\": 0,\n      \"time_off_types\": [\n        {\n          \"id\": 1,\n          \"name\": \"Sick Leave\",\n          \"pivot\": {\n            \"timeoff_blocked_date_id\": 6,\n            \"timeoff_type_id\": 1\n          }\n        },\n        {\n          \"id\": 3,\n          \"name\": \"Bereavement\",\n          \"pivot\": {\n            \"timeoff_blocked_date_id\": 6,\n            \"timeoff_type_id\": 3\n          }\n        }\n      ]\n    }\n  ]\n}"}],"_postman_id":"b975e0e4-968a-41b5-bcf9-aac84ababb8b"},{"name":"Create a time off blocked period","id":"7a999bdb-39b2-4fcf-8239-b503712d770e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\", // Required field. The start date of blocked time off. The start date must be formatted as 'YYYY-MM-DD'. This date must be from today forth and before the last day of the next year.\n  \"end_date\": \"<date>\", // Required field. The end date of blocked time off. The end date must be formatted as 'YYYY-MM-DD'. This date must be after or equal of start date and from the next year's last day and before.\n  \"is_active\": \"<boolean>\", // Required field. Choose 'true' to activate the blocked period for time off, and 'false' to deactivate it.\n  \"timeoff_type\": [ // Array of time off type Ids. It contains the time off type IDs for the designated time off period. This must be present and in case this attribute is empty, it applies to all time off types.\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/blocked-time-offs","description":"<h3 id=\"api-endpoint-to-create-a-new-date-range-for-blocked-time-off\">API Endpoint to create a new date range for blocked time off.</h3>\n<p>This endpoint facilitates the creation of a new time off blocked period. This lets you block one or more date ranges from any type of time-off request. The request body should include the following parameters: the start date and end date of the blocked period, the time-off types affected by this period, and an option indicating whether the blocked period is currently active.</p>\n<p><em><strong>Note:</strong></em> <em>If the</em> <code>timeoff_type</code> <em>attribute has an empty array, it indicates that the time off blocked period will be applicable for all time off types.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>date</td>\n<td>true</td>\n<td>The start date of blocked time off. The start date must be formatted as 'YYYY-MM-DD'. This date must be from today forth and before the last day of the next year.</td>\n<td>e.g. 2024-03-01</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>date</td>\n<td>true</td>\n<td>The end date of blocked time off. The end date must be formatted as 'YYYY-MM-DD'. This date must be after start date and from the next year's last day and before.</td>\n<td>e.g. 2024-03-10</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>true</td>\n<td>Choose 'true' to activate the blocked period for time off, and 'false' to deactivate it.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>timeoff_type</td>\n<td>array</td>\n<td>true</td>\n<td>Array of time off type Ids. It contains the time off type IDs for the designated time off period. This must be present and in case this attribute is empty, it applies to all time off types.</td>\n<td>e.g. [1,2,3,4]</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["blocked-time-offs"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"f98592f4-ce05-4134-850d-030e51534a61","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\",\n  \"end_date\": \"<date>\",\n  \"is_active\": \"<boolean>\",\n  \"timeoff_types\": [\n    1,\n    2,\n    3,\n    4\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/blocked-time-offs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6,\n    \"start_date\": \"2023-12-11\",\n    \"end_date\": \"2023-12-15\",\n    \"is_active\": false,\n    \"created_at\": \"2023-12-04 09:22:09\",\n    \"updated_at\": \"2023-12-04 10:19:17\",\n    \"deleted_at\": null,\n    \"is_for_all\": true\n  }\n}"},{"id":"98d65ccb-ab65-469a-8fd3-7d16c87ef7fe","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\",\n  \"end_date\": \"<date>\",\n  \"is_active\": \"<boolean>\",\n  \"timeoff_types\": [\n    1,\n    2,\n    3,\n    4\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/blocked-time-offs"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"7a999bdb-39b2-4fcf-8239-b503712d770e"},{"name":"Update a time off blocked period","id":"bcbe62a5-4ebc-45b2-9f6a-564818a1eecd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\", // The start date of blocked time off. The start date must be formatted as 'YYYY-MM-DD'. This date must be from today forth and before the last day of the next year.\n  \"end_date\": \"<date>\", // The end date of blocked time off. The end date must be formatted as 'YYYY-MM-DD'. This date must be after start date and from the next year's last day and before.\n  \"is_active\": \"<boolean>\", // Choose 'true' to activate the blocked period for time off, and 'false' to deactivate it.\n  \"timeoff_type\": [ // Array of time off type Ids. It contains the time off type IDs for the designated time off period. This must be present and in case this attribute is empty, it applies to all time off types.\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","description":"<h3 id=\"api-endpoint-to-update-a-block-time-off-date-range\">API Endpoint to update a block time off date range.</h3>\n<p>This endpoint updates the specified time off blocked period. The request body should include the following parameters: the start date and end date of the blocked period, the time-off types affected by this period, and an option indicating whether the blocked period is currently active.</p>\n<p><em><strong>Note:</strong></em> <em>If the</em> <code>timeoff_type</code> <em>attribute has an empty array, it indicates that the time off blocked period will be applicable for all time off types.</em></p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>date</td>\n<td>true</td>\n<td>The start date of blocked time off. The start date must be formatted as 'YYYY-MM-DD'. This date must be from today forth and before the last day of the next year.</td>\n<td>e.g. 2024-03-01</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>date</td>\n<td>true</td>\n<td>The end date of blocked time off. The end date must be formatted as 'YYYY-MM-DD'. This date must be after start date and from the next year's last day and before.</td>\n<td>e.g. 2024-03-10</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>true</td>\n<td>Choose 'true' to activate the blocked period for time off, and 'false' to deactivate it.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>timeoff_type</td>\n<td>array</td>\n<td>false</td>\n<td>Array of time off type Ids. It contains the time off type IDs for the designated time off period. This must be present and in case this attribute is empty, it applies to all time off types.</td>\n<td>e.g. [1,2,3,4]</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["blocked-time-offs",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"81dc0999-227b-4560-b974-17b9ab8e62c4","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\",\n  \"end_date\": \"<date>\",\n  \"is_active\": \"<boolean>\",\n  \"timeoff_types\": [\n    1,\n    2,\n    3,\n    4\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["blocked-time-offs",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 6,\n    \"start_date\": \"2023-12-11\",\n    \"end_date\": \"2023-12-15\",\n    \"is_active\": false,\n    \"created_at\": \"2023-12-04 09:22:09\",\n    \"updated_at\": \"2023-12-04 10:19:17\",\n    \"deleted_at\": null,\n    \"is_for_all\": true\n  }\n}"},{"id":"019a3e6a-05df-4108-914f-6c674a2167c7","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\",\n  \"end_date\": \"<date>\",\n  \"is_active\": \"<boolean>\",\n  \"timeoff_types\": [\n    1,\n    2,\n    3,\n    4\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["blocked-time-offs",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"bcf3ecf4-e009-47ed-a50b-4af129d26fe6","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"start_date\": \"<date>\",\n  \"end_date\": \"<date>\",\n  \"is_active\": \"<boolean>\",\n  \"timeoff_types\": [\n    1,\n    2,\n    3,\n    4\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["blocked-time-offs",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"bcbe62a5-4ebc-45b2-9f6a-564818a1eecd"},{"name":"Delete a time off blocked period","id":"5dfc683b-dba1-4ad2-9da8-c7b66dbd409c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","description":"<h3 id=\"api-endpoint-to-delete-a-block-time-off-date-range\">API Endpoint to delete a block time off date range.</h3>\n<p>This endpoint facilitates the deletion of the specified time off blocked period.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["blocked-time-offs",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"2329e859-d091-4e7b-80bd-94ce9a7eb013","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["blocked-time-offs",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"d6c59ca0-a269-45b5-9985-03667c2021f0","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/blocked-time-offs/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["blocked-time-offs",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"5dfc683b-dba1-4ad2-9da8-c7b66dbd409c"}],"id":"aa9f19aa-03c6-4a5e-b8eb-8ae3e4bf5d32","_postman_id":"aa9f19aa-03c6-4a5e-b8eb-8ae3e4bf5d32","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Documents","item":[{"name":"Get Company Documents","id":"2d3f33da-6aff-450c-abc1-34bb77f6bf5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents","description":"<h3 id=\"api-endpoint-to-retrieve-the-company-documents\">API Endpoint to retrieve the company documents.</h3>\n<p>This endpoint retrieves comprehensive information on all company files within this domain.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4394bdd9-35fb-4fcf-9b56-992202c9c160","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 2,\n      \"uploaded_id\": 1,\n      \"client_filename\": \"poster.png\",\n      \"filename\": \"/testdomain/documents/NNcbnWBX/1702300272_poster.png\",\n      \"filetype\": \"png\",\n      \"is_employee_file\": false,\n      \"is_public\": false,\n      \"sort_order\": 0,\n      \"created_at\": \"2023-11-16 07:33:51\",\n      \"updated_at\": \"2024-02-13 11:51:33\",\n      \"deleted_at\": null,\n      \"owner_id\": 1,\n      \"master_id\": null,\n      \"preview_filename\": null,\n      \"url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/documents/NNcbnWBX/1702300272_poster123.png?Expires=1707829193&Signature=wkZyul7nfEfVUbePUrTLF3B0qabz~dhNObNz-X9115lsH9hkRC6WyWoKdlqL1uBMb9lUBvIhWD1-MO2td-moqjqZcI5Lny1VpN55B3PmkBzjlOPljdneURRKm2bqeTOcjhp7cg9wKByrMHRMzZAX3CZdWsE3ZTpoJ7rMDYEyLST6tmHbyJ12ouDHpicbl75gd3lcE3PbXlm9nmy6q5NJkOIpBnCnWXfQLJ58exXzskCAz7Rm1EkSL0YXEzPVceZHPl62VWN9qwwczM6cQw1MYAUGUR8edD0DARi94eYEU-3Y6BnhPaV-gd6Gw5cmyVyupg55FHstnMJGfpCsOo6cmw__&Key-Pair-Id=K2KPAB7VLWPOH\",\n      \"preview_url\": null\n    }\n  ]\n}"}],"_postman_id":"2d3f33da-6aff-450c-abc1-34bb77f6bf5e"},{"name":"Create a company document","id":"d561e28b-57a3-4d46-be07-a3599c2eedc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"<p>(Required) File. Valid Formats (docx,doc,odt,odp,ods,xls,xlsx,ppt,pptx,pdf,png,jpg,jpeg,svg,csv,gif,webp,tsv). The current document must not surpass 30MB</p>\n","type":"file","value":null},{"key":"folder_id","value":"<integer>","description":"<p>Optional. Company document folder id. When provided, it must reference a non-deleted company document folder.</p>\n","type":"text"}]},"url":"https://pubapi.talenthr.io/v1/documents/company-documents","description":"<h3 id=\"api-endpoint-to-upload-a-company-document\">API Endpoint to upload a company document.</h3>\n<p>This endpoint facilitates the creation of a company file. The uploaded document should be in one of the <strong>valid formats:</strong> docx,doc,odt,odp,ods,xls,xlsx,ppt,pptx,pdf,png,jpg,jpeg,svg,csv,gif,webp,tsv, and must not exceed 30MB in size.</p>\n<p>To upload a document into a specific company folder, provide the <strong>folder_id</strong> request field.</p>\n<hr />\n<p>Filenames within the system must not start with any illegal character or symbol (e.g. <code>@</code> (at sign), <code>$</code> (dollar sign), <code>%</code> (percent), <code>&amp;</code> (ampersand)) and should maintain a reasonable length, ensuring they do not exceed 250 characters.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>document</td>\n<td>file</td>\n<td>true</td>\n<td>File. Valid Formats (docx,doc,odt,odp,ods,xls,xlsx,ppt,pptx,pdf,png,jpg,jpeg,svg,csv,gif,webp,tsv). The document can be up to 30MB.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>folder_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Optional. Company document folder id. When provided, it must reference a non-deleted company document folder.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"6d3fa216-99d8-437e-9305-5352fea6aeec","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"File.","type":"file","src":[]},{"key":"folder_id","value":"<integer>","description":"Optional. Company document folder id.","type":"text"}]},"url":"https://pubapi.talenthr.io/v1/documents/company-documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"uploaded_id\": 1,\n    \"client_filename\": \"poster.png\",\n    \"filename\": \"/testdomain/documents/NNcbnWBX/1702300272_poster.png\",\n    \"filetype\": \"png\",\n    \"filesize\": 123456,\n    \"folder_id\": 12,\n    \"is_employee_file\": false,\n    \"is_public\": false,\n    \"sort_order\": 0,\n    \"created_at\": \"2023-11-16 07:33:51\",\n    \"updated_at\": \"2023-11-16 07:33:51\",\n    \"deleted_at\": null,\n    \"owner_id\": 1,\n    \"master_id\": null,\n    \"preview_filename\": null,\n    \"url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/documents/NNcbnWBX/1702300272_poster123.png?Expires=1707829193&Signature=wkZyul7nfEfVUbePUrTLF3B0qabz~dhNObNz-X9115lsH9hkRC6WyWoKdlqL1uBMb9lUBvIhWD1-MO2td-moqjqZcI5Lny1VpN55B3PmkBzjlOPljdneURRKm2bqeTOcjhp7cg9wKByrMHRMzZAX3CZdWsE3ZTpoJ7rMDYEyLST6tmHbyJ12ouDHpicbl75gd3lcE3PbXlm9nmy6q5NJkOIpBnCnWXfQLJ58exXzskCAz7Rm1EkSL0YXEzPVceZHPl62VWN9qwwczM6cQw1MYAUGUR8edD0DARi94eYEU-3Y6BnhPaV-gd6Gw5cmyVyupg55FHstnMJGfpCsOo6cmw__&Key-Pair-Id=K2KPAB7VLWPOH\",\n    \"preview_url\": null,\n    \"is_folder\": false,\n    \"starred\": false,\n    \"document_type\": null,\n    \"signing_started_at\": null,\n    \"signing_finalized_at\": null\n  }\n}"},{"id":"0ec22441-76e9-49c6-a277-62f5718fa51a","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"document","description":"File.","type":"file","src":[]},{"key":"folder_id","value":"<integer>","description":"Optional. Company document folder id.","type":"text"}]},"url":"https://pubapi.talenthr.io/v1/documents/company-documents"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"d561e28b-57a3-4d46-be07-a3599c2eedc8"},{"name":"Get a Document","id":"941e86d3-8099-4f18-83c9-d35d130e1434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-the-information-of-a-document\">API Endpoint to retrieve the information of a document.</h3>\n<p>This endpoint retrieves information for the specified document. The document can be either employee (private) or a company file.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"d23ee0f9-9eaf-4a0d-93e5-7999c0301440","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/documents/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["documents",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"uploaded_id\": 1,\n    \"client_filename\": \"poster.png\",\n    \"filename\": \"/testdomain/documents/NNcbnWBX/1702300272_poster.png\",\n    \"filetype\": \"png\",\n    \"is_employee_file\": false,\n    \"is_public\": false,\n    \"sort_order\": 0,\n    \"created_at\": \"2024-02-13 07:33:51\",\n    \"updated_at\": \"2024-02-13 07:33:51\",\n    \"deleted_at\": null,\n    \"owner_id\": 1,\n    \"master_id\": null,\n    \"preview_filename\": null\n  }\n}"},{"id":"1a4b1511-b366-4967-a8f4-3144cc59a5e9","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/documents/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["documents",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"941e86d3-8099-4f18-83c9-d35d130e1434"},{"name":"Update a Document","id":"a87b85e4-77b0-4cc2-85cc-7dc4a5896aed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // The name of the current document. Maximum character limit: 191 characters.\n  \"is_public\": \"<boolean>\" // Opt for 'true' for public company file, else 'false' for private company file.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/:objectId","description":"<h3 id=\"api-endpoint-to-update-the-properties-of-a-document-draft-or-not-filename\">API Endpoint to update the properties of a document (draft or not, filename).</h3>\n<p>This endpoint updates the specified company document.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>The name of the current document. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_public</td>\n<td>boolean</td>\n<td>true</td>\n<td>Opt for 'true' for public company file, else 'false' for private company file.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"b32863fe-0a41-400a-a60a-5b9ee58b4666","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_public\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/documents/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["documents",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"uploaded_id\": 1,\n    \"client_filename\": \"poster.png\",\n    \"filename\": \"/testdomain/documents/NNcbnWBX/1702300272_poster.png\",\n    \"filetype\": \"png\",\n    \"is_employee_file\": false,\n    \"is_public\": false,\n    \"sort_order\": 0,\n    \"created_at\": \"2023-11-16 07:33:51\",\n    \"updated_at\": \"2023-11-16 07:33:51\",\n    \"deleted_at\": null,\n    \"owner_id\": 1,\n    \"master_id\": null,\n    \"preview_filename\": null,\n    \"url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/documents/NNcbnWBX/1702300272_poster123.png?Expires=1707829193&Signature=wkZyul7nfEfVUbePUrTLF3B0qabz~dhNObNz-X9115lsH9hkRC6WyWoKdlqL1uBMb9lUBvIhWD1-MO2td-moqjqZcI5Lny1VpN55B3PmkBzjlOPljdneURRKm2bqeTOcjhp7cg9wKByrMHRMzZAX3CZdWsE3ZTpoJ7rMDYEyLST6tmHbyJ12ouDHpicbl75gd3lcE3PbXlm9nmy6q5NJkOIpBnCnWXfQLJ58exXzskCAz7Rm1EkSL0YXEzPVceZHPl62VWN9qwwczM6cQw1MYAUGUR8edD0DARi94eYEU-3Y6BnhPaV-gd6Gw5cmyVyupg55FHstnMJGfpCsOo6cmw__&Key-Pair-Id=K2KPAB7VLWPOH\",\n    \"preview_url\": null\n  }\n}"},{"id":"14c65b5f-60c8-4153-9803-9d458e5facdc","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_public\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/documents/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["documents",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"a87b85e4-77b0-4cc2-85cc-7dc4a5896aed"},{"name":"Delete a Document","id":"5d657625-4d7b-42a5-a8d1-05aa9631ce6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/:objectId","description":"<h3 id=\"api-endpoint-to-delete-a-document\">API Endpoint to delete a document.</h3>\n<p>This endpoint facilitates the deletion of the specified document. This endpoint can delete both employee (private) and company files.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"a128c271-9dd0-4416-aea8-506aa5db6d1f","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/documents/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["documents",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"5325c158-34cb-4440-b080-2f94c1c5b6f0","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/documents/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["documents",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"5d657625-4d7b-42a5-a8d1-05aa9631ce6d"},{"name":"Update Documents' Order","id":"55fbe586-7e7e-4910-b69e-763aa7cd67ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"documents\": [ // Array of documents' Ids. This array contains the IDs of all company documents in the specified order, where the first array value corresponds to the first document, the second array value corresponds to the second document, and so forth.\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/alter-position","description":"<h3 id=\"api-endpoint-to-change-the-order-of-the-company-documents\">API Endpoint to change the order of the company documents.</h3>\n<p>This endpoint alters the order of the company documents. The request body should include the \"documents\" attribute, which is an array containing the IDs of company files. The order of files corresponds to their position in this array (e.g., documents[0] represents the first document, documents[1] represents the second document, and so forth). For this functionality to operate correctly, all company documents must be present.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>documents</td>\n<td>array</td>\n<td>true</td>\n<td>This array contains the IDs of all company documents in the specified order, where the first array value corresponds to the first document, the second array value corresponds to the second document, and so forth.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","alter-position"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"fc78848c-979c-4eaf-9814-db0399b73b20","name":"Simple boolean response","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"documents\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/alter-position"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"f3d09fb2-b0ca-4ac0-8da4-21da666112be","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"documents\": [\n    1,\n    2,\n    3,\n    4,\n    5\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/alter-position"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"55fbe586-7e7e-4910-b69e-763aa7cd67ee"},{"name":"List company document folders","id":"1079a2fc-a490-40fa-8c1c-0d7cc03e0a1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders?sort=name&order=asc&is_public=","description":"<p>This endpoint returns tenant company document folders at the root (non-default company folders only). The <strong><code>data</code></strong> payload is a JSON array of folder rows; file documents are not included. Rows include <strong><code>is_folder</code></strong>: <strong><code>true</code></strong>, plus <strong><code>can_write</code></strong> and <strong><code>can_delete</code></strong> flags derived from company document policy. Optional query parameters <strong><code>sort</code></strong>/<strong><code>order</code></strong> apply to folders; invalid folder <strong><code>sort</code></strong> values are treated as <strong><code>name</code></strong>. Requires permission to view company files.</p>\n<hr />\n<p><strong>Query parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sort</td>\n<td>string</td>\n<td>no</td>\n<td>Folder field to sort by; allowed: <strong><code>name</code></strong>, <strong><code>created_at</code></strong>, <strong><code>updated_at</code></strong>.</td>\n</tr>\n<tr>\n<td>order</td>\n<td>string</td>\n<td>no</td>\n<td><strong><code>asc</code></strong> or <strong><code>desc</code></strong>.</td>\n</tr>\n<tr>\n<td>is_public</td>\n<td>integer (0/1)</td>\n<td>no</td>\n<td>Restricts to public or non-public folders when set.</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>string</td>\n<td>no</td>\n<td><strong><code>key=value</code></strong> segments separated by <strong><code>;</code></strong>. Including <strong><code>starred</code></strong> yields an empty folder list at this path.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents","folders"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(optional) Folder sort field. Allowed when accepted by the server for company folders: name, created_at, updated_at (other values fall back to name).</p>\n","type":"text/plain"},"key":"sort","value":"name"},{"description":{"content":"<p>(optional) Sort direction: asc or desc.</p>\n","type":"text/plain"},"key":"order","value":"asc"},{"description":{"content":"<p>(optional) When present as 0 or 1, filters folders (and would filter files on folder-contents listing) by public flag; policy may restrict results.</p>\n","type":"text/plain"},"key":"is_public","value":""},{"disabled":true,"description":{"content":"<p>(optional) Semicolon-separated filters for file listings, e.g. is_public=1 or starred=1. If starred is present, this root folder listing returns no folder rows.</p>\n","type":"text/plain"},"key":"filter","value":""}],"variable":[]}},"response":[{"id":"1cdeadd2-59d7-433b-b7be-fd9824aa76fd","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 12,\n      \"name\": \"Policies\",\n      \"slug\": \"policies\",\n      \"employee_id\": null,\n      \"visible_to\": \"all\",\n      \"default_folder\": false,\n      \"is_company_folder\": true,\n      \"is_public\": true,\n      \"parent_folder_id\": null,\n      \"created_at\": \"2026-04-02 09:00:00\",\n      \"updated_at\": \"2026-04-02 09:00:00\",\n      \"deleted_at\": null,\n      \"is_folder\": true,\n      \"can_write\": true,\n      \"can_delete\": true\n    }\n  ]\n}"},{"id":"ba947c14-ce2f-4886-b814-ef127e7c90ff","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"06cbb842-ecba-409c-b45f-ea849e96f011","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"1079a2fc-a490-40fa-8c1c-0d7cc03e0a1f"},{"name":"Create company document folder","id":"ec116318-74db-4da1-aed8-20c55f1f05d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders","description":"<p>Creates a root-level company document folder. Requires permission to create company folders.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Folder display name. Maximum 128 characters. Must be unique among active company document folders.</td>\n<td>e.g. <code>HR policies</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents","folders"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"32dc8ba8-b172-40b7-875c-cd94f35768ef","name":"Created (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"HR policies\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 20,\n    \"name\": \"New company folder\",\n    \"slug\": \"new-company-folder\",\n    \"employee_id\": null,\n    \"visible_to\": \"all\",\n    \"default_folder\": false,\n    \"is_company_folder\": true,\n    \"is_public\": false,\n    \"parent_folder_id\": null,\n    \"created_at\": \"2026-05-06 12:00:00\",\n    \"updated_at\": \"2026-05-06 12:00:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"06bff5f4-6406-4db7-874a-74cead92c45b","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"X\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5a2ddb94-e08e-4742-aad4-e1d1d6d4a3de","name":"Unprocessable (422) — validation","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\n      \"The name field is required.\"\n    ]\n  }\n}"}],"_postman_id":"ec116318-74db-4da1-aed8-20c55f1f05d1"},{"name":"List company document folder contents","id":"36621542-35fb-4087-b228-ea21da8a0a36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/:company_document_folder?sort=client_filename&order=asc&is_public=","description":"<p>This endpoint returns child company folders and, unless <strong><code>is_folder</code></strong> is <strong><code>1</code></strong>, company file rows inside the folder identified by the path parameter. The <strong><code>data</code></strong> array lists subfolders first (each with <strong><code>is_folder</code></strong>: <strong><code>true</code></strong>, <strong><code>can_write</code></strong>, <strong><code>can_delete</code></strong>), then files (each with <strong><code>is_folder</code></strong>: <strong><code>false</code></strong> and document fields such as <strong><code>client_filename</code></strong>, <strong><code>url</code></strong>). The same <strong><code>sort</code></strong> query key is interpreted against allowed folder fields and allowed file fields independently (invalid values fall back per list). Optional <strong><code>filter</code></strong> applies to the file query using <strong><code>;</code></strong>-separated <strong><code>key=value</code></strong> pairs (<strong><code>is_public</code></strong>, <strong><code>starred</code></strong>). Requires permission to view company files.</p>\n<hr />\n<p><strong>Query parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sort</td>\n<td>string</td>\n<td>no</td>\n<td>See overview: folder vs file allowed fields.</td>\n</tr>\n<tr>\n<td>order</td>\n<td>string</td>\n<td>no</td>\n<td><strong><code>asc</code></strong> or <strong><code>desc</code></strong>.</td>\n</tr>\n<tr>\n<td>is_public</td>\n<td>integer (0/1)</td>\n<td>no</td>\n<td>Filters folders and files when set.</td>\n</tr>\n<tr>\n<td>is_folder</td>\n<td>integer</td>\n<td>no</td>\n<td>If <strong><code>1</code></strong>, omit file rows from <strong><code>data</code></strong>.</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>string</td>\n<td>no</td>\n<td>File filters only; semicolon syntax.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents","folders",":company_document_folder"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(optional) Sort field: for subfolders name/created_at/updated_at; for files client_filename, filesize, is_public, created_at, updated_at. One query value is validated separately per list; invalid values fall back to folder name or file client_filename.</p>\n","type":"text/plain"},"key":"sort","value":"client_filename"},{"description":{"content":"<p>(optional) asc or desc.</p>\n","type":"text/plain"},"key":"order","value":"asc"},{"description":{"content":"<p>(optional) 0 or 1 when provided.</p>\n","type":"text/plain"},"key":"is_public","value":""},{"disabled":true,"description":{"content":"<p>(optional) When set to integer 1, only folder rows are returned (no file rows in data).</p>\n","type":"text/plain"},"key":"is_folder","value":""},{"disabled":true,"description":{"content":"<p>(optional) Semicolon-separated; supports is_public and starred for the file query (e.g. is_public=1;starred=0).</p>\n","type":"text/plain"},"key":"filter","value":""}],"variable":[{"description":{"content":"<p>(integer) Company document folder id (<code>document_folders.id</code>). Use <strong><code>id</code></strong> from <strong>List company document folders</strong> or from product UI.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"company_document_folder"}]}},"response":[{"id":"ad509ba6-a5c5-44c4-8824-e7cde5b5bcf5","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 18,\n      \"name\": \"2026\",\n      \"slug\": \"2026\",\n      \"employee_id\": null,\n      \"visible_to\": \"all\",\n      \"default_folder\": false,\n      \"is_company_folder\": true,\n      \"is_public\": false,\n      \"parent_folder_id\": 12,\n      \"created_at\": \"2026-04-10 11:00:00\",\n      \"updated_at\": \"2026-04-10 11:00:00\",\n      \"deleted_at\": null,\n      \"is_folder\": true,\n      \"can_write\": true,\n      \"can_delete\": true\n    },\n    {\n      \"id\": 44,\n      \"uploaded_id\": 5,\n      \"client_filename\": \"handbook.pdf\",\n      \"filename\": \"/testdomain/documents/AbCd/1700000000_handbook.pdf\",\n      \"filetype\": \"pdf\",\n      \"is_employee_file\": false,\n      \"is_public\": true,\n      \"folder_id\": 12,\n      \"sort_order\": 0,\n      \"starred\": false,\n      \"created_at\": \"2026-04-11 08:30:00\",\n      \"updated_at\": \"2026-04-11 08:30:00\",\n      \"deleted_at\": null,\n      \"owner_id\": 5,\n      \"is_folder\": false,\n      \"can_write\": true,\n      \"can_delete\": true,\n      \"signing_url\": null,\n      \"signing_status\": null,\n      \"signing_submission_slug\": null,\n      \"signing_due_date\": null,\n      \"url\": \"https://cdn.example.invalid/signed-url\",\n      \"preview_url\": null,\n      \"non_signed_url\": null\n    }\n  ]\n}"},{"id":"2ef38fe6-43c4-40c1-b9f1-406fa90ee0b9","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"c606389c-97c6-42c9-a9f8-3e7f26c2ee73","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"95f61461-e7ae-4369-90ec-88c16eeab63c","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\DocumentFolder] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"36621542-35fb-4087-b228-ea21da8a0a36"},{"name":"Update company document folder","id":"6135619e-7a96-4b03-bd97-33759deb9d71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Policies (updated)\",\n  \"is_public\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/:company_document_folder","description":"<p>This endpoint updates an existing company document folder. Requires permission to update company folders.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Folder display name. Maximum 128 characters. Must be unique among active company document folders.</td>\n<td>e.g. <code>Policies (updated)</code></td>\n</tr>\n<tr>\n<td>is_public</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether the folder is public. JSON booleans only.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents","folders",":company_document_folder"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Company document folder id (<code>document_folders.id</code>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"company_document_folder"}]}},"response":[{"id":"973d6c6f-1918-4245-a175-273c607cf185","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Policies (updated)\",\n  \"is_public\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 12,\n    \"name\": \"Policies (updated)\",\n    \"slug\": \"policies-updated\",\n    \"employee_id\": null,\n    \"visible_to\": \"all\",\n    \"default_folder\": false,\n    \"is_company_folder\": true,\n    \"is_public\": true,\n    \"parent_folder_id\": null,\n    \"created_at\": \"2026-04-02 09:00:00\",\n    \"updated_at\": \"2026-05-06 12:15:00\",\n    \"deleted_at\": null\n  }\n}"},{"id":"81162b6b-8bc6-4b7f-b8a7-d57921ca5d89","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"X\",\n  \"is_public\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"c42da69b-9d87-478b-b280-9d74cba01ff1","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"X\",\n  \"is_public\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\DocumentFolder] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"6135619e-7a96-4b03-bd97-33759deb9d71"},{"name":"Delete company document folder","id":"b7a95a13-d498-42ef-8e97-713ab2439481","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/:company_document_folder","description":"<p>This endpoint deletes a company document folder. The public API does <strong>not</strong> support a <strong><code>force</code></strong> flag: if the folder still contains documents, the server returns <strong>409</strong> until files are moved or removed. Requires permission to delete company folders.</p>\n<hr />\n<p><strong>Path parameter</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>company_document_folder</td>\n<td>integer</td>\n<td>Folder id to delete.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["documents","company-documents","folders",":company_document_folder"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Company document folder id (<code>document_folders.id</code>). Must be empty (no documents); otherwise <strong>409</strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"company_document_folder"}]}},"response":[{"id":"995464cb-f1ea-43e1-8f4f-25ef9d0a1748","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/20"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"2a40c17e-d030-4cfb-86be-f57232f49da2","name":"Conflict (409) — folder not empty","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Non empty folder can't be deleted.\",\n    \"code\": 409,\n    \"hr_code\": 11,\n    \"hr_code_key\": \"folder_not_empty\"\n  }\n}"},{"id":"7446b931-8747-4b5a-8126-65b8ac24c13f","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"1d33d580-a879-4d0c-a02f-ace0f6b27baf","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/documents/company-documents/folders/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\DocumentFolder] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"b7a95a13-d498-42ef-8e97-713ab2439481"}],"id":"5eb7dc83-707d-4ffe-a639-956493cae0db","_postman_id":"5eb7dc83-707d-4ffe-a639-956493cae0db","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Assets","item":[{"name":"Get all assets","id":"89188f20-1cc7-4875-b4f3-5b0dd9db25d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&filter=<string>&search=<string>","description":"<h3>API endpoint to retrieve all assets.</h3>\n\n<p>This endpoint retrieves comprehensive information regarding the domain's assets. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage). In addition to pagination parameters, users can customize the order and sorting of the retrieved data or search through them. The search option can only filter assets based on their name, description, or category.</p>\n<p>This endpoint offers also the flexibility to use <strong>filters</strong> for retrieving specific data based on your requirements. These filters could include the asset status (available, broken, etc) and the asset's category (if any). To retrieve the valid asset filters (and therefore the IDs you need), you should access the <strong>\"Get asset's default values\"</strong> endpoint.</p>\n<hr />\n<p>The endpoint retrieves general info about the assets within our domain, as well as info about their status, category, and type.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum value ['asc','desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum value ['created_at', 'name', 'category', 'location', 'department', 'division', 'used_by', 'serial_number', 'warranty_end_date']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>Filters of Ids for the pagination ('status' =&gt; [], 'category' =&gt; []) Example: category=19,47;status=1,2,3,4,5</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>Searching</p>\n","type":"text/plain"},"key":"search","value":"<string>"}],"variable":[]}},"response":[{"id":"efc9e75f-7063-465b-ad34-cea855cb502e","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&filter=category=19,47;status=1,2,3,4,5","host":["https://pubapi.talenthr.io/v1"],"path":["assets"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"},{"key":"filter","value":"category=19,47;status=1,2,3,4,5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 2,\n    \"rows\": [\n      {\n        \"id\": 10,\n        \"name\": \"membership-name\",\n        \"asset_type_id\": 2,\n        \"asset_category_id\": 6,\n        \"asset_status_id\": 2,\n        \"serial_number\": null,\n        \"label\": null,\n        \"cost_frequency\": \"per-month\",\n        \"cost_model\": \"per-user\",\n        \"cost\": \"15.99\",\n        \"purchase_date\": \"2024-02-01\",\n        \"warranty_end_date\": null,\n        \"created_at\": \"2024-02-14 08:35:09\",\n        \"updated_at\": \"2024-02-14 08:35:09\",\n        \"deleted_at\": null,\n        \"cost_currency\": \"EUR\",\n        \"in_warranty\": null,\n        \"users_count\": 1,\n        \"asset_status\": {\n          \"id\\\"\": 2,\n          \"slug\": \"available\",\n          \"name\": \"Available\",\n          \"is_enabled\": 1\n        },\n        \"asset_category\\\"\": {\n          \"id\": 6,\n          \"name\": \"category-name\",\n          \"is_enabled\": 1,\n          \"created_at\": \"2023-11-16 09:04:03\",\n          \"updated_at\": \"2023-11-16 09:32:03\",\n          \"deleted_at\": null\n        },\n        \"asset_type\": {\n          \"id\": 2,\n          \"slug\": \"subscription\",\n          \"name\": \"Subscription\"\n        }\n      },\n      {\n        \"id\": 9,\n        \"name\": \"inventory-name\",\n        \"asset_type_id\": 1,\n        \"asset_category_id\": 5,\n        \"asset_status_id\": 1,\n        \"serial_number\": \"serial-number\",\n        \"label\": \"label-name\",\n        \"cost_frequency\": \"once-off\",\n        \"cost_model\": null,\n        \"cost\": \"100.00\",\n        \"purchase_date\": \"2020-01-01\",\n        \"warranty_end_date\": \"2024-12-31\",\n        \"created_at\": \"2024-02-13 14:02:02\",\n        \"updated_at\": \"2024-02-13 14:02:51\",\n        \"deleted_at\": null,\n        \"cost_currency\": \"EUR\",\n        \"in_warranty\": true,\n        \"users_count\": 1,\n        \"asset_status\": {\n          \"id\": 1,\n          \"slug\": \"in-use\",\n          \"name\": \"In use\",\n          \"is_enabled\": 1\n        },\n        \"asset_category\": {\n          \"id\": 5,\n          \"name\": \"category-name\",\n          \"is_enabled\": 1,\n          \"created_at\": \"2023-11-16 09:04:03\",\n          \"updated_at\": \"2023-11-16 09:32:03\",\n          \"deleted_at\": null\n        },\n        \"asset_type\": {\n          \"id\": 1,\n          \"slug\": \"inventory\",\n          \"name\": \"Inventory\"\n        }\n      }\n    ]\n  }\n}"}],"_postman_id":"89188f20-1cc7-4875-b4f3-5b0dd9db25d7"},{"name":"Get an asset","id":"88ea14aa-07d2-472b-86d5-04a2e1a4bd17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId","description":"<h3>API endpoint to fetch information about a specified asset.</h3>\n\n<p>This endpoint is designed to fetch details for a specified asset, which may be classified as either a membership asset or an inventory one. It provides comprehensive data including general information about the asset, its status, type, category, available actions, and custom fields associated with it. Furthermore, for inventory assets, it includes additional details regarding the assignment of the asset to an employee.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"74f59d5b-2f02-4aeb-b72b-c21dad35d070","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 11,\n    \"name\": \"membership-name\",\n    \"asset_category_id\": 6,\n    \"serial_number\": null,\n    \"label\": null,\n    \"cost_frequency\": \"per-month\",\n    \"cost_model\": \"per-user\",\n    \"cost\": \"15.99\",\n    \"purchase_date\": \"2024-02-01\",\n    \"warranty_end_date\": null,\n    \"asset_status_id\": 2,\n    \"description\": \"This is a description...\",\n    \"created_at\": \"2024-02-14 09:28:07\",\n    \"updated_at\": \"2024-02-14 09:28:55\",\n    \"deleted_at\": null,\n    \"asset_type_id\": 2,\n    \"available_actions\": [\n      {\n        \"id\": 5,\n        \"slug\": \"retired\",\n        \"name\": \"Retired\",\n        \"is_enabled\": 1,\n        \"is_reverse_action\": 0\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"custom_field_id\": 1,\n        \"custom_field_slug\": \"custom-field-1\",\n        \"custom_field_name\": \"Custom Field 1\",\n        \"values\": []\n      },\n      {\n        \"custom_field_id\": 2,\n        \"custom_field_slug\": \"custom-field-2\",\n        \"custom_field_name\": \"Custom Field 2\",\n        \"values\": []\n      }\n    ],\n    \"in_warranty\": null,\n    \"users_count\": 0,\n    \"cost_currency\": \"EUR\",\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Subscription\"\n    },\n    \"asset_status\": {\n      \"id\": 2,\n      \"slug\": \"available\",\n      \"name\": \"Available\",\n      \"is_enabled\": 1\n    },\n    \"asset_category\": {\n      \"id\": 6,\n      \"name\": \"category-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:04:03\",\n      \"updated_at\": \"2023-11-16 09:32:03\",\n      \"deleted_at\": null\n    }\n  }\n}"},{"id":"9b3c4a02-8e96-4d87-971c-e2cd76ba00f4","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"88ea14aa-07d2-472b-86d5-04a2e1a4bd17"},{"name":"Clone an asset","id":"d2dc812d-23a1-4005-88a5-8c2ca1b1a50b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId","description":"<h3>API endpoint to clone the specified asset.</h3>\n\n<p>This endpoint allows for the cloning of an existing asset. The asset being cloned must be valid and must already exist within the system.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"7dad32d6-8c7e-43e4-878c-f881aca2fca2","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"name\": \"membership-name (Copy)\",\n    \"asset_category_id\": 6,\n    \"serial_number\": null,\n    \"label\": null,\n    \"cost_frequency\": \"per-month\",\n    \"cost_model\": \"per-user\",\n    \"cost\": \"15.99\",\n    \"purchase_date\": \"2024-02-01\",\n    \"warranty_end_date\": null,\n    \"asset_status_id\": 2,\n    \"description\": \"This is a description...\",\n    \"deleted_at\": null,\n    \"asset_type_id\": 2,\n    \"updated_at\": \"2024-02-14 11:54:29\",\n    \"created_at\": \"2024-02-14 11:54:29\",\n    \"id\": 12,\n    \"asset_status\": {\n      \"id\": 2,\n      \"slug\": \"available\",\n      \"name\": \"Available\",\n      \"is_enabled\": 1\n    },\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Subscription\"\n    },\n    \"asset_category\": {\n      \"id\": 6,\n      \"name\": \"category-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:04:03\",\n      \"updated_at\": \"2023-11-16 09:32:03\",\n      \"deleted_at\": null\n    }\n  }\n}"},{"id":"f413cefc-8f33-464a-b9e1-ad6583023cf9","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"d2dc812d-23a1-4005-88a5-8c2ca1b1a50b"},{"name":"Update an asset","id":"dab762c9-948b-4d74-a3a4-f809b5d7c5fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"name\": \"<string>\", // Required field. Maximum character limit:191 characters.\n\"asset_category_id\": \"<integer>\", // Not required field. Unique identifier of asset categories.\n\"cost_model\": \"<string>\", // For Membership asset is required when cost_frequency or cost is present. For inventory is not required. Valid values are [per-user, per-company]\n\"serial_number\": \"<string>\", // Required if asset_type_slug is invetory. Maximum character limit:255 characters.\n\"label\": \"<string>\", // Not Required field. Maximum character limit:255 characters.\n\"cost_frequency\": \"<string>\", // For Inventory asset is required only when cost is present. For Membership asset is required when cost or cost_model is present. Valid values are [per-year, per-month, once-off]\n\"cost\": \"<number>\", // For Inventory asset is required only when cost_frequency is present .For Membership asset is required when cost_frequency or cost_model is present. This value must be represented as a number with two decimal places.\n\"purchase_date\": \"<date>\", // Not Required field. The purchase_date must be formatted as 'YYYY-MM-DD'.\n\"warranty_end_date\": \"<date>\", // Not Required field. The warranty_end_date must be after of purchase_date. The warranty_end_date must be formatted as 'YYYY-MM-DD'.\n\"employee_id\": \"<integer>\", // Required if assign_date is present.  Unique identifier of active employees. If the asset has status 'retired' the employee cannot be assigned.\n\"assign_date\": \"<date>\", // Required if employee_id is present. The assign_date must be after or equal of purchase_date. The assign_date must be formatted as 'YYYY-MM-DD'.\n\"location_id\": \"<integer>\", // Not Required  field.  Unique identifier of locations.\n\"division_id\": \"<integer>\", // Not Required  field.  Unique identifier of divisions.\n\"department_id\": \"<integer>\", // Not Required  field.  Unique identifier of departments.\n\"description\": \"<string>\", // Not Required field. Maximum character limit:10000 characters.\n\"custom_field_01\": \"<string>\", // Custom Field (Type: Text). Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_02\": \"<string>\", // Custom Field (Type: Long Text). Maximum character limit: 5000 characters. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_03\": \"<integer>\", // Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_04\": [ // Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n\"custom_field_05\": \"<string>\", // Custom Field (Type: Date). The custom-field's date must be formatted as 'YYYY-MM-DD'. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_06\": \"<string>\", // Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_07\": \"<integer>\"  // Custom Field (Type: Employee). This custom field must contain the Id of the Employee. The custom field's name (key) corresponds to the slug of the custom field.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/:objectId","description":"<h3>API endpoint to update the specified asset.</h3>\n\n<p>This endpoint facilitates the modification of a specified asset, which may be classified as either a membership or an inventory asset. The update process requires specifying certain attributes that are common to both types of assets, as well as other attributes that are unique to either membership or inventory assets.</p>\n<p>For both asset types, the request body should include the asset's name, category (if applicable), model cost, cost frequency, cost, purchase date, and description. Additionally, inventory assets may include a serial number, label, warranty end date and details regarding the asset's assignment, such as employee ID, assignment date, location, department, and division.</p>\n<p>Both types of assets also support the inclusion of custom fields in the update process. These custom fields, however, may vary between inventory and membership assets. To accurately update an asset, it's crucial to first identify the relevant custom fields for that asset type, as the inventory custom fields might differ from those associated with membership assets.</p>\n<hr />\n<p>When updating an asset, you can modify the custom fields associated with that asset. However, it is important to note that the availability of this feature is dependent on your TalentHR subscription (Refer to the Introductory chapter for further details). The custom fields associated with an asset can be retrieved using the '<strong>Get asset's custom fields</strong>' endpoint.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g.</td>\n</tr>\n<tr>\n<td>asset_category_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier of asset categories.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>cost_model</td>\n<td>string</td>\n<td>true</td>\n<td>For Membership asset is required when cost_frequency or cost is present. For inventory is not required. Valid values are ['per-user', 'per-company']</td>\n<td>e.g. per-user</td>\n</tr>\n<tr>\n<td>serial_number</td>\n<td>string</td>\n<td>Required if asset_type_slug is inventory.</td>\n<td>Maximum character limit: 255 characters.</td>\n<td>e.g. 1234</td>\n</tr>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>Not Required field.</td>\n<td>Maximum character limit: 255 characters.</td>\n<td>e.g. PUB API ASSET</td>\n</tr>\n<tr>\n<td>cost_frequency</td>\n<td>string</td>\n<td>For Inventory asset is required only when cost is present. For Membership asset is required when cost or cost_model is present.</td>\n<td>Valid values are ['per-year', 'per-month', 'once-off'] .</td>\n<td>e.g. per-month</td>\n</tr>\n<tr>\n<td>cost</td>\n<td>number</td>\n<td>For Inventory asset is required only when cost_frequency is present .For Membership asset is required when cost_frequency or cost_model is present.</td>\n<td>This value must be represented as a number with two decimal places (optional).</td>\n<td>e.g. 450.99 or 451</td>\n</tr>\n<tr>\n<td>purchase_date</td>\n<td>date</td>\n<td>false</td>\n<td>The purchase_date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-04-06</td>\n</tr>\n<tr>\n<td>warranty_end_date</td>\n<td>date</td>\n<td>false</td>\n<td>The warranty_end_date must be after of purchase_date. The warranty_end_date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-04-06</td>\n</tr>\n<tr>\n<td>assign_date</td>\n<td>date</td>\n<td>Required if employee_id is present.</td>\n<td>The assign_date must be after or equal of purchase_date. The warranty_end_date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-04-06</td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td>integer</td>\n<td>Required if assign_date is present.</td>\n<td>Unique identifier of active employees. If the asset has status 'retired' the employee cannot be assigned.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier of locations.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier of divisions.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier of departments.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier of divisions.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit:10000 characters.</td>\n<td>e.g.</td>\n</tr>\n<tr>\n<td>custom_field_01</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Text). Maximum character limit: 255 characters.</td>\n<td>e.g. \"This is a text...\"</td>\n</tr>\n<tr>\n<td>custom_field_02</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Long Text). Maximum character limit: 5000 characters.</td>\n<td>e.g. \"This is a long text...\"</td>\n</tr>\n<tr>\n<td>custom_field_03</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options.</td>\n<td>e.g. 3</td>\n</tr>\n<tr>\n<td>custom_field_04</td>\n<td>array</td>\n<td>false</td>\n<td>Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options.</td>\n<td>e.g. [3,4]</td>\n</tr>\n<tr>\n<td>custom_field_05</td>\n<td>date</td>\n<td>false</td>\n<td>Custom Field (Type: Date). The custom field's date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-03-10</td>\n</tr>\n<tr>\n<td>custom_field_06</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters.</td>\n<td>e.g. \"<a href=\"https://www.domainexample.com/\">https://www.domainexample.com/\"</a></td>\n</tr>\n<tr>\n<td>custom_field_07</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Employee). This custom field must contain the Id of the Employee.</td>\n<td>e.g. 1</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"type":"any","value":"6","key":"objectId"}]}},"response":[{"id":"0198813f-b6ed-4db4-88da-06eecf3b17a3","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 11,\n    \"name\": \"membership-name\",\n    \"asset_category_id\": 6,\n    \"serial_number\": null,\n    \"label\": null,\n    \"cost_frequency\": \"per-month\",\n    \"cost_model\": \"per-user\",\n    \"cost\": \"15.99\",\n    \"purchase_date\": \"2024-02-01\",\n    \"warranty_end_date\": null,\n    \"asset_status_id\": 2,\n    \"description\": \"This is a description...\",\n    \"created_at\": \"2024-02-14 09:28:07\",\n    \"updated_at\": \"2024-02-14 09:28:55\",\n    \"deleted_at\": null,\n    \"asset_type_id\": 2,\n    \"available_actions\": [\n      {\n        \"id\": 5,\n        \"slug\": \"retired\",\n        \"name\": \"Retired\",\n        \"is_enabled\": 1,\n        \"is_reverse_action\": 0\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"custom_field_id\": 1,\n        \"custom_field_slug\": \"custom-field-1\",\n        \"custom_field_name\": \"Custom Field 1\",\n        \"values\": []\n      },\n      {\n        \"custom_field_id\": 2,\n        \"custom_field_slug\": \"custom-field-2\",\n        \"custom_field_name\": \"Custom Field 2\",\n        \"values\": []\n      }\n    ],\n    \"in_warranty\": null,\n    \"users_count\": 0,\n    \"cost_currency\": \"EUR\",\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Subscription\"\n    },\n    \"asset_status\": {\n      \"id\": 2,\n      \"slug\": \"available\",\n      \"name\": \"Available\",\n      \"is_enabled\": 1\n    },\n    \"asset_category\": {\n      \"id\": 6,\n      \"name\": \"category-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:04:03\",\n      \"updated_at\": \"2023-11-16 09:32:03\",\n      \"deleted_at\": null\n    }\n  }\n}"},{"id":"57adde34-b02f-47ae-8139-894ba7a6a62d","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"4fb56315-7f45-408e-a367-28f15c7418fc","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"dab762c9-948b-4d74-a3a4-f809b5d7c5fc"},{"name":"Delete an asset","id":"6487f9e0-c3f5-4c80-95b1-aa119cd4a110","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId","description":"<h3>API endpoint to delete the specified asset.</h3>\n\n<p>This endpoint enables the removal of the specified asset from the system. Along with the asset, any associated employee assignments will also be eliminated. Furthermore, upon the asset's deletion, all tasks and task assignments linked to this asset will be deleted. Additionally, the historical records about the asset will be also permanently deleted.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"bf0250ea-91cb-4ed4-b085-85dc346fb2a8","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"76d4b3b9-9f9f-4ce7-afcb-6ceadf52bf00","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"6487f9e0-c3f5-4c80-95b1-aa119cd4a110"},{"name":"Get all assets of membership type","id":"7084ae40-607f-4bcb-b49a-91c4585bec74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/membership?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&filter=<string>","description":"<h3>API endpoint to retrieves all the assets of membership type.</h3>\n\n<p>This endpoint retrieves comprehensive information regarding the domain's membership assets. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage). In addition to pagination parameters, users can customize the order and sorting of the retrieved data or search through them. The search option can only filter assets based on their name, description, or category.</p>\n<p>This endpoint offers also the flexibility to use <strong>filters</strong> for retrieving specific data based on your requirements. These filters could include the asset status (available, retired) and the asset's category (if any). To retrieve the valid asset filters (and therefore the IDs you need), you should access the <strong>\"Get asset's default values\"</strong> endpoint.</p>\n<hr />\n<p>The endpoint retrieves general info about the membership assets within our domain, as well as info about their status, category, and type.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum value ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum value ['created_at', 'name', 'category', 'location', 'department', 'division', 'used_by', 'serial_number', 'warranty_end_date']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>Searching</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>Filters of Ids for the pagination ('status' =&gt; [], 'category' =&gt; []). Example : category=19,47;status=1,2,3,4,5</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"993c4d8d-b085-40ae-9206-38ad31d5b4b6","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&filter=category=19,47;status=1,2,3,4,5","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"},{"key":"filter","value":"category=19,47;status=1,2,3,4,5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 11,\n        \"name\": \"membership-name\",\n        \"asset_category_id\": 6,\n        \"serial_number\": null,\n        \"label\": null,\n        \"cost_frequency\": \"per-month\",\n        \"cost_model\": \"per-user\",\n        \"cost\": \"15.99\",\n        \"purchase_date\": \"2024-02-01\",\n        \"warranty_end_date\": null,\n        \"asset_status_id\": 2,\n        \"description\": \"This is a description...\",\n        \"created_at\": \"2024-02-14 09:28:07\",\n        \"updated_at\": \"2024-02-14 09:28:55\",\n        \"deleted_at\": null,\n        \"asset_type_id\": 2,\n        \"in_warranty\": null,\n        \"users_count\": 0,\n        \"cost_currency\": \"EUR\",\n        \"asset_type\": {\n          \"id\": 2,\n          \"slug\": \"subscription\",\n          \"name\": \"Subscription\"\n        },\n        \"asset_status\": {\n          \"id\": 2,\n          \"slug\": \"available\",\n          \"name\": \"Available\",\n          \"is_enabled\": 1\n        },\n        \"asset_category\": {\n          \"id\": 6,\n          \"name\": \"category-name\",\n          \"is_enabled\": 1,\n          \"created_at\": \"2023-11-16 09:04:03\",\n          \"updated_at\": \"2023-11-16 09:32:03\",\n          \"deleted_at\": null\n        }\n      }\n    ]\n  }\n}"}],"_postman_id":"7084ae40-607f-4bcb-b49a-91c4585bec74"},{"name":"Create a membership type asset","id":"2a6ca89e-c4e9-4a65-bb4f-05d8155ff730","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"name\": \"<string>\", // Required field. Maximum character limit:191 characters.\n\"asset_category_id\": \"<integer>\", // Not required field. Unique identifier of asset categories.\n\"cost_model\": \"<string>\", // For Membership asset is required when cost_frequency or cost is present. Valid values are [per-user, per-company]\n\"serial_number\": \"<string>\", // Required if asset type is invetory. Maximum character limit:255 characters.\n\"label\": \"<string>\", // Not Required field. Maximum character limit:255 characters.\n\"cost_frequency\": \"<string>\", // For Inventory asset is required only when cost is present. For Membership asset is required when cost or cost_model is present. Valid values are [per-year, per-month, once-off]\n\"cost\": \"<string>\", // For Membership asset is required when cost_frequency or cost_model is present. Cost's value can have up to 2 decimals\n\"purchase_date\": \"<date>\", // Not Required field. The purchase_date must be formatted as 'YYYY-MM-DD'.\n\"warranty_end_date\": \"<date>\", // Not Required field. The warranty_end_date must be after of purchase_date. The warranty_end_date must be formatted as 'YYYY-MM-DD'.\n\"employee_id\": \"<integer>\", // Required if assign_date is present.  Unique identifier of active employees.\n\"assign_date\": \"<date>\", // Required if employee_id is present. The assign_date must be after or equal of purchase_date  The assign_date must be formatted as 'YYYY-MM-DD'.\n\"location_id\": \"<integer>\", // Not Required  field.  Unique identifier of locations.\n\"division_id\": \"<integer>\", // Not Required  field.  Unique identifier of divisions.\n\"department_id\": \"<integer>\", // Not Required  field.  Unique identifier of departments.\n\"description\": \"<string>\", // Not Required field. Maximum character limit:10000 characters.\n\"custom_field_01\": \"<string>\", // Custom Field (Type: Text). Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_02\": \"<string>\", // Custom Field (Type: Long Text). Maximum character limit: 5000 characters. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_03\": \"<integer>\", // Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_04\": [ // Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n\"custom_field_05\": \"<string>\", // Custom Field (Type: Date). The custom-field's date must be formatted as 'YYYY-MM-DD'. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_06\": \"<string>\", // Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n\"custom_field_07\": \"<integer>\" // Custom Field (Type: Employee). This custom field must contain the Id of the Employee. The custom field's name (key) corresponds to the slug of the custom field.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership","description":"<h3>API endpoint to create a membership type asset.</h3>\n\n<p>This endpoint facilitates the creation of a membership asset. The request body should include the asset's name, category (if applicable), model cost, cost frequency, cost, purchase date, and description.</p>\n<p>Membership assets also support the inclusion of custom fields in the creation process. To accurately set a value to an asset custom field, it's crucial to first identify the relevant custom fields for that asset type.</p>\n<hr />\n<p>When creating a membership asset, you can also integrate the custom fields associated with that asset. However, it is important to note that the availability of this feature is dependent on your TalentHR subscription (Refer to the Introductory chapter for further details). The custom fields associated with an asset can be retrieved using the '<strong>Get all assets custom fields</strong>' endpoint.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. Asset1</td>\n</tr>\n<tr>\n<td>asset_category_id</td>\n<td>integer</td>\n<td>false</td>\n<td>Unique identifier of asset categories.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>cost_model</td>\n<td>string</td>\n<td>For Membership asset is required when cost_frequency or cost is present. For inventory is not required.</td>\n<td>Valid values are [\"per-user\", \"per-company\"]</td>\n<td>e.g. per-user</td>\n</tr>\n<tr>\n<td>cost_frequency</td>\n<td>string</td>\n<td>For Membership asset is required when cost or cost_model is present.</td>\n<td>Valid values are [per-year, per-month, once-off] .</td>\n<td>e.g. per-month</td>\n</tr>\n<tr>\n<td>cost</td>\n<td>string</td>\n<td>For Membership asset is required when cost_frequency or cost_model is present.</td>\n<td>Cost's value can have up to 2 decimals</td>\n<td>e.g. 450.99</td>\n</tr>\n<tr>\n<td>purchase_date</td>\n<td>date</td>\n<td>false</td>\n<td>The purchase_date must be formatted as 'YYYY-MM-DD'</td>\n<td>e.g. 2024-04-06</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Not Required field</td>\n<td>Maximum character limit:10000 characters.</td>\n<td>e.g.</td>\n</tr>\n<tr>\n<td>custom_field_01</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Text). Maximum character limit: 255 characters.</td>\n<td>e.g. \"This is a text...\"</td>\n</tr>\n<tr>\n<td>custom_field_02</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Long Text). Maximum character limit: 5000 characters.</td>\n<td>e.g. \"This is a long text...\"</td>\n</tr>\n<tr>\n<td>custom_field_03</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options.</td>\n<td>e.g. 3</td>\n</tr>\n<tr>\n<td>custom_field_04</td>\n<td>array</td>\n<td>false</td>\n<td>Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options.</td>\n<td>e.g. [3,4]</td>\n</tr>\n<tr>\n<td>custom_field_05</td>\n<td>date</td>\n<td>false</td>\n<td>Custom Field (Type: Date). The custom field's date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-03-10</td>\n</tr>\n<tr>\n<td>custom_field_06</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters.</td>\n<td>e.g. \"<a href=\"https://www.domainexample.com/\">https://www.domainexample.com/\"</a></td>\n</tr>\n<tr>\n<td>custom_field_07</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Employee). This custom field must contain the Id of the Employee.</td>\n<td>e.g. 1</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"235f3228-82cd-418c-8aa5-54a119b96e5d","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 11,\n    \"name\": \"membership-name\",\n    \"asset_category_id\": 6,\n    \"serial_number\": null,\n    \"label\": null,\n    \"cost_frequency\": \"per-month\",\n    \"cost_model\": \"per-user\",\n    \"cost\": \"15.99\",\n    \"purchase_date\": \"2024-02-01\",\n    \"warranty_end_date\": null,\n    \"asset_status_id\": 2,\n    \"description\": \"This is a description...\",\n    \"created_at\": \"2024-02-14 09:28:07\",\n    \"updated_at\": \"2024-02-14 09:28:55\",\n    \"deleted_at\": null,\n    \"asset_type_id\": 2,\n    \"available_actions\": [\n      {\n        \"id\": 5,\n        \"slug\": \"retired\",\n        \"name\": \"Retired\",\n        \"is_enabled\": 1,\n        \"is_reverse_action\": 0\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"custom_field_id\": 1,\n        \"custom_field_slug\": \"custom-field-1\",\n        \"custom_field_name\": \"Custom Field 1\",\n        \"values\": []\n      },\n      {\n        \"custom_field_id\": 2,\n        \"custom_field_slug\": \"custom-field-2\",\n        \"custom_field_name\": \"Custom Field 2\",\n        \"values\": []\n      }\n    ],\n    \"in_warranty\": null,\n    \"users_count\": 0,\n    \"cost_currency\": \"EUR\",\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Subscription\"\n    },\n    \"asset_status\": {\n      \"id\": 2,\n      \"slug\": \"available\",\n      \"name\": \"Available\",\n      \"is_enabled\": 1\n    },\n    \"asset_category\": {\n      \"id\": 6,\n      \"name\": \"category-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:04:03\",\n      \"updated_at\": \"2023-11-16 09:32:03\",\n      \"deleted_at\": null\n    }\n  }\n}"},{"id":"5510a7e2-5de9-4903-a2b3-d7b9d171bc77","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"2a6ca89e-c4e9-4a65-bb4f-05d8155ff730"},{"name":"Get all assets categories of membership type","id":"eca757b3-5496-4274-b33f-9acadaa0c470","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/membership/categories","description":"<h3>API endpoint to retrieve all the available categories for a membership type asset.</h3>\n\n<p>This endpoint retrieves comprehensive information on the membership categories.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership","categories"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"3267da06-05e7-4362-8c41-e8b7b81c9069","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/membership/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"asset_type_id\": 2,\n      \"name\\\"\": \"membership-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:28:26\",\n      \"updated_at\": \"2023-11-16 13:03:57\",\n      \"deleted_at\": null,\n      \"asset_type\": {\n        \"id\": 2,\n        \"slug\": \"subscription\",\n        \"name\": \"Membership\"\n      }\n    }\n  ]\n}"}],"_postman_id":"eca757b3-5496-4274-b33f-9acadaa0c470"},{"name":"Create a category for the membership assets","id":"68d67a70-7933-4b2f-a83a-d79b9a4c2eeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" //Required field. Maximum character limit:191 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership/categories","description":"<h3>API endpoint to create a new category for the membership assets.</h3>\n\n<p>This endpoint facilitates the creation of a new membership asset category. You should provide the name of the current category.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. Employee Benefits Club</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership","categories"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"ef75e1e6-1f6d-4bc0-ac45-af1e6993f2db","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"asset_type_id\": 2,\n    \"name\": \"membership-name\",\n    \"is_enabled\": 1,\n    \"created_at\": \"2023-11-16 09:28:26\",\n    \"updated_at\": \"2023-11-16 13:03:57\",\n    \"deleted_at\": null,\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Membership\"\n    }\n  }\n}"},{"id":"833ee33d-6751-4a43-97eb-9b1aaad73d9a","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership/categories"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"68d67a70-7933-4b2f-a83a-d79b9a4c2eeb"},{"name":"Get a membership category","id":"68ba1bf8-c9f4-4060-8fd1-89891fef52a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","description":"<h3>API endpoint to retrieve the specified membership category.</h3>\n\n<p>This endpoint retrieves information for the specified membership category.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership","categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"8dc83296-d86f-4263-b4fc-059d1d3d71b7","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"asset_type_id\": 2,\n    \"name\": \"membership-name\",\n    \"is_enabled\": 1,\n    \"created_at\": \"2023-11-16 09:28:26\",\n    \"updated_at\": \"2023-11-16 13:03:57\",\n    \"deleted_at\": null,\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Membership\"\n    }\n  }\n}"},{"id":"3551b0bf-283a-4fde-8d44-286c8c6c57c9","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"68ba1bf8-c9f4-4060-8fd1-89891fef52a4"},{"name":"Update a membership category","id":"3f5df6b6-e285-4cfc-8c39-289b150427e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // Required field without is_enabled.   Maximum character limit:191 characters.\n  \"is_enabled\": \"<boolean>\" // Required without name.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","description":"<h3>API endpoint to update the specified membership category.</h3>\n\n<p>This endpoint facilitates the modification for the specified membership asset category. You should provide the name of the current category.</p>\n<p><strong>Request parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Required without is_enabled.</td>\n<td>Maximum character limit: 191 characters.</td>\n<td>e.g. Employee Benefits Club</td>\n</tr>\n<tr>\n<td>is_enabled</td>\n<td>boolean</td>\n<td>Required without name.</td>\n<td></td>\n<td>e.g. true</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership","categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"72abe674-ac28-480d-83ed-86054f4db2d7","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_enabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"asset_type_id\": 2,\n    \"name\": \"membership-name\",\n    \"is_enabled\": 1,\n    \"created_at\": \"2023-11-16 09:28:26\",\n    \"updated_at\": \"2023-11-16 13:03:57\",\n    \"deleted_at\": null,\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Membership\"\n    }\n  }\n}"},{"id":"c856ead0-514e-4074-93a2-0b19d2861efe","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_enabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"4f2d13ca-bbbd-4143-9970-4d629e96b3e2","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_enabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"3f5df6b6-e285-4cfc-8c39-289b150427e9"},{"name":"Delete a membership category","id":"9c82189f-8e8d-47e8-9723-174f9deba7a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","description":"<h3 id=\"api-endpoint-to-delete-the-specified-membership-category\">API Endpoint to delete the specified membership category.</h3>\n<p>This endpoint facilitates the deletion of the specified membership category. If there are assets within this category the deletion cannot be done.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","membership","categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"f73da505-4373-426c-b946-fc2a098dcdd8","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"7c5cae41-28a8-4839-b1ef-d9b6b83b6885","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/membership/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","membership","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"9c82189f-8e8d-47e8-9723-174f9deba7a9"},{"name":"Get all assets of inventory type","id":"b25b07b4-da19-4d71-9a62-787c623dd82a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/inventory?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&filter=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-all-the-assets-of-inventory-type\">API Endpoint to retrieve all the assets of inventory type.</h3>\n<p>This endpoint retrieves comprehensive information regarding the domain's inventory assets. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage). In addition to pagination parameters, users can customize the order and sorting of the retrieved data or search through them. The search option can filter assets based on their name, description, category, label, serial number and division, department, location if there is an employee assignment.</p>\n<p>This endpoint offers also the flexibility to use <strong>filters</strong> for retrieving specific data based on your requirements. These filters could include the asset status (available, broken, retired, in service, in use), the asset's category (if any), the warrany, and any location, division, department. To retrieve the valid asset filters (and therefore the IDs you need), you should access the <strong>\"Get asset's default values\"</strong> endpoint.</p>\n<hr />\n<p>The endpoint retrieves general info about the inventory assets within our domain, as well as info about their status, category, and type.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum value ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum value ['created_at', 'name', 'category', 'location', 'department', 'division', 'used_by', 'serial_number', 'warranty_end_date']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>Searching</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>Filters of Ids for the pagination ('location' =&gt; [], 'department' =&gt; [], 'division' =&gt; [],  'status' =&gt; [], 'category' =&gt; [], 'warranty' =&gt; []). Example: category=19,47;status=1,2,3,4,5;location=35,37;department=6,10;division=14,74</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"1cd840bd-759b-411e-b6e3-551cb3fc8ecb","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>&filter=category=19,47;status=1,2,3,4,5;location=35,37;department=6,10;division=14,74","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"},{"key":"filter","value":"category=19,47;status=1,2,3,4,5;location=35,37;department=6,10;division=14,74"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 9,\n        \"name\": \"inventory-name\",\n        \"asset_type_id\": 1,\n        \"asset_category_id\": 5,\n        \"serial_number\": \"14785236900\",\n        \"label\": \"label-name\",\n        \"cost_frequency\": \"once-off\",\n        \"cost_model\": null,\n        \"cost\": \"100.00\",\n        \"purchase_date\": \"2020-01-01\",\n        \"warranty_end_date\": \"2024-12-31\",\n        \"asset_status_id\": 1,\n        \"description\": null,\n        \"created_at\": \"2024-02-13 14:02:02\",\n        \"updated_at\": \"2024-02-13 14:02:51\",\n        \"deleted_at\": null,\n        \"in_warranty\": true,\n        \"users_count\": 1,\n        \"cost_currency\": \"EUR\",\n        \"asset_status\": {\n          \"id\": 1,\n          \"slug\": \"in-use\",\n          \"name\": \"In use\",\n          \"is_enabled\": 1\n        },\n        \"asset_type\": {\n          \"id\": 1,\n          \"slug\": \"inventory\",\n          \"name\": \"Inventory\"\n        },\n        \"asset_category\": {\n          \"id\": 5,\n          \"name\": \"asset-category-name\",\n          \"is_enabled\": 1,\n          \"created_at\": \"2023-11-16 09:04:03\",\n          \"updated_at\": \"2023-11-16 09:32:03\",\n          \"deleted_at\": null\n        }\n      }\n    ]\n  }\n}"}],"_postman_id":"b25b07b4-da19-4d71-9a62-787c623dd82a"},{"name":"Create an inventory type asset","id":"402dccd3-8fe8-488e-a0f6-6816c367856d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) The name of the current inventory asset. Maximum character limit: 191 characters.\n  \"asset_category_id\": \"<integer>\", // The asset's category Id.\n  \"serial_number\": \"<string>\", // Maximum character limit: 255 characters.\n  \"label\": \"<string>\", // Maximum character limit: 255 characters.\n  \"cost_frequency\": \"<string>\", // Enum value [per-month, per-year, once-off]. The frequenct cost of the current asset.\n  \"cost\": \"<number>\", // The cost of the current asset. This value must be represented as a number with two decimal places.\n  \"purchase_date\": \"<date>\", // The purchase date must be formatted as 'YYYY-MM-DD'.\n  \"warranty_end_date\": \"<date>\", // The warranty end date must be formatted as 'YYYY-MM-DD'.\n  \"employee_id\": \"<integer>\", // The assigned employee for the current asset. This field is required with 'assign_date'.\n  \"assign_date\": \"<date>\", // The assign date must be formatted as 'YYYY-MM-DD'. This field is required with 'employee_id'. The date value must be after or equal the 'purchase_date'\n  \"location_id\": \"<integer>\", // The assigned location for the current asset.\n  \"division_id\": \"<integer>\", // The assigned division for the current asset.\n  \"department_id\": \"<integer>\", // The assigned department for the current asset.\n  \"description\": \"<string>\", // Asset's description. Up to 10000 characters.\n  \"custom_field_01\": \"<string>\", // Custom Field (Type: Text). Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_02\": \"<string>\", // Custom Field (Type: Long Text). Maximum character limit: 5000 characters. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_03\": \"<integer>\", // Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_04\": [ // Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"custom_field_05\": \"<string>\", // Custom Field (Type: Date). The custom-field's date must be formatted as 'YYYY-MM-DD'. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_06\": \"<string>\", // Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.\n  \"custom_field_07\": \"<integer>\"  // Custom Field (Type: Employee). This custom field must contain the Id of the Employee. The custom field's name (key) corresponds to the slug of the custom field.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory","description":"<h3 id=\"api-endpoint-to-create-an-inventory-type-asset\">API Endpoint to create an inventory-type asset.</h3>\n<p>This endpoint facilitates the creation of an inventory asset. The request body should include the asset's name, category (if applicable), model cost, cost frequency, cost, label, serial number, purchase date, warranty end date, and description. Additionally, inventory assets include details regarding the asset's assignment, such as employee ID, assignment date, location, department, and division.</p>\n<p>Inventory assets also support the inclusion of custom fields in the creation process. To accurately set a value to an asset custom field, it's crucial to first identify the relevant custom fields for that asset type.</p>\n<hr />\n<p>When creating an inventory asset, you can also integrate the custom fields associated with that asset. However, it is important to note that the availability of this feature is dependent on your TalentHR subscription (Refer to the Introductory chapter for further details). The custom fields associated with an asset can be retrieved using the '<strong>Get all assets custom fields</strong>' endpoint.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th>Required</th>\n<th>Description</th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>The name of the current inventory asset. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>asset_category_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The asset's category Id.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>serial_number</td>\n<td>string</td>\n<td>true</td>\n<td>Maximum character limit: 255 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>label</td>\n<td>string</td>\n<td>false</td>\n<td>Maximum character limit: 255 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>cost_frequency</td>\n<td>enum</td>\n<td>Required with cost.</td>\n<td>The frequency cost of the current asset.</td>\n<td>per-month, per-year, once-off</td>\n</tr>\n<tr>\n<td>cost</td>\n<td>number</td>\n<td>Required with cost frequency</td>\n<td>The cost of the current asset. This value must be represented as a number with two decimal places.</td>\n<td>e.g. 123.45 or 123</td>\n</tr>\n<tr>\n<td>purchase_date</td>\n<td>date</td>\n<td>false</td>\n<td>The purchase date must be formatted as 'YYYY-MM-DD'.</td>\n<td>e.g. 2024-01-05</td>\n</tr>\n<tr>\n<td>warranty_end_date</td>\n<td>date</td>\n<td>false</td>\n<td>The warranty end date must be formatted as 'YYYY-MM-DD'. The end date also must be after the purchase date.</td>\n<td>e.g. 2027-01-05</td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The assigned employee for the current asset. This field is required with 'assign_date'.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>assign_date</td>\n<td>date</td>\n<td>false</td>\n<td>The assign date must be formatted as 'YYYY-MM-DD'. This field is required with 'employee_id'. The date value must be after or equal the 'purchase_date'</td>\n<td>e.g. 2024-01-10</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The assigned location for the current asset.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>division_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The assigned division for the current asset.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>false</td>\n<td>The assigned department for the current asset.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>false</td>\n<td>Asset's description. Up to 10000 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>custom_field_01</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Text). Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. \"This is a text...\"</td>\n</tr>\n<tr>\n<td>custom_field_02</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Long Text). Maximum character limit: 5000 characters. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. \"This is a long text...\"</td>\n</tr>\n<tr>\n<td>custom_field_03</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Single Choice). This field requires the ID of the selected value from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. 1</td>\n</tr>\n<tr>\n<td>custom_field_04</td>\n<td>array</td>\n<td>false</td>\n<td>Custom Field (Type: Multiple Choice). This field requires the IDs of the selected values from the array of available options. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. [3,4]</td>\n</tr>\n<tr>\n<td>custom_field_05</td>\n<td>date</td>\n<td>false</td>\n<td>Custom Field (Type: Date). The custom-field's date must be formatted as 'YYYY-MM-DD'. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. 2024-03-10</td>\n</tr>\n<tr>\n<td>custom_field_06</td>\n<td>string</td>\n<td>false</td>\n<td>Custom Field (Type: Link). This value has to be a valid URL. Maximum character limit: 255 characters. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. <a href=\"https://www.exampledomain.com/\">https://www.exampledomain.com/</a></td>\n</tr>\n<tr>\n<td>custom_field_07</td>\n<td>integer</td>\n<td>false</td>\n<td>Custom Field (Type: Employee). This custom field must contain the Id of the Employee. The custom field's name (key) corresponds to the slug of the custom field.</td>\n<td>e.g. 1</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"2ac36bcf-ea2c-4f5a-891a-89806da5a37a","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 9,\n    \"name\": \"inventory-name\",\n    \"asset_category_id\": 5,\n    \"serial_number\": \"14785236900\",\n    \"label\": \"label-name\",\n    \"cost_frequency\": \"once-off\",\n    \"cost_model\": null,\n    \"cost\": \"100.00\",\n    \"purchase_date\": \"2020-01-01\",\n    \"warranty_end_date\": \"2024-12-31\",\n    \"asset_status_id\": 1,\n    \"description\": null,\n    \"created_at\": \"2024-02-13 14:02:02\",\n    \"updated_at\": \"2024-02-13 14:02:51\",\n    \"deleted_at\": null,\n    \"asset_type_id\": 1,\n    \"available_actions\": [\n      {\n        \"id\": 4,\n        \"slug\": \"broken\",\n        \"name\": \"Broken\",\n        \"is_enabled\": 1,\n        \"is_reverse_action\": 0\n      },\n      {\n        \"id\": 3,\n        \"slug\": \"in-service\",\n        \"name\": \"In service\",\n        \"is_enabled\": 1,\n        \"is_reverse_action\": 0\n      },\n      {\n        \"id\": 5,\n        \"slug\": \"retired\",\n        \"name\": \"Retired\",\n        \"is_enabled\": 1,\n        \"is_reverse_action\": 0\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"custom_field_id\": 1,\n        \"custom_field_slug\": \"custom-field-1\",\n        \"custom_field_name\": \"Custom Field 1\",\n        \"values\": [\n          {\n            \"value\": \"value-1\"\n          },\n          {\n            \"value\": \"value-3\"\n          }\n        ]\n      },\n      {\n        \"custom_field_id\": 2,\n        \"custom_field_slug\": \"custom-field-2\",\n        \"custom_field_name\": \"Custom Field 2\",\n        \"values\": [\n          {\n            \"value\": \"This is a custom field...\"\n          }\n        ]\n      },\n      {\n        \"custom_field_id\": 3,\n        \"custom_field_slug\": \"custom-field-3\",\n        \"custom_field_name\": \"Custom Field 3\",\n        \"values\": [\n          {\n            \"value\": \"2024-01-20\"\n          }\n        ]\n      }\n    ],\n    \"in_warranty\": true,\n    \"users_count\": 1,\n    \"cost_currency\": \"EUR\",\n    \"asset_type\": {\n      \"id\": 1,\n      \"slug\": \"inventory\",\n      \"name\": \"Inventory\"\n    },\n    \"asset_status\": {\n      \"id\": 1,\n      \"slug\": \"in-use\",\n      \"name\": \"In use\",\n      \"is_enabled\": 1\n    },\n    \"asset_category\": {\n      \"id\": 5,\n      \"name\": \"asset-category-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:04:03\",\n      \"updated_at\": \"2023-11-16 09:32:03\",\n      \"deleted_at\": null\n    },\n    \"employee_inventory_assignment\": {\n      \"id\": 11,\n      \"asset_id\": 9,\n      \"employee_id\": 15,\n      \"division_id\": 13,\n      \"department_id\": 6,\n      \"location_id\": 36,\n      \"assign_date\": \"2024-02-13\",\n      \"created_at\": \"2024-02-13 14:02:02\",\n      \"updated_at\": \"2024-02-13 14:02:02\",\n      \"deleted_at\": null,\n      \"short_employee\": {\n        \"employee_id\": 15,\n        \"employee_name\": \"Doe John\",\n        \"employee_number\": null,\n        \"location_name\": \"Athens\",\n        \"department_name\": \"Administration & Operations\",\n        \"division_name\": \"Europe\",\n        \"job_title_name\": \"Administrative Assistant\",\n        \"linked_in_url\": null,\n        \"work_phone\": \"698*******\",\n        \"email\": \"john.doe@example.com\",\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg?Expires=1707996545&Signature=Sz5LpAEWiOTKE0YjsRCwh97kix5jizVMShMwijmblOItUjy51MOJcWj9yUWOo0bIqft7rH8ocNdRBZ6TPnPTRNRt6C-g2hBReYpiQ92QLw1YT9epeUqc39gTlS01JED2COnFlFxRXenVsR63kRq5m4xO8RlRfFT-m2iKVIci77RvTgc7AeSW-cEe0iHg90ljflyImnG0XDxNveX-ClWUnw6rSPYvKuOCB5GobNzPpw7eOUTzaQr2Jxyb0AAbgtskBPpQpUZRhN~Y7wo7DnNmXRfTuN4Ak207xaPJvq~xigeFa43DvSEmURY3bdTCMLdH98nbhiRfbae67QXML2OA8Q__&Key-Pair-Id=K2KPAB7VLWPOH\",\n        \"is_me\": false\n      },\n      \"location\": {\n        \"id\": 36,\n        \"name\": \"Athens\"\n      },\n      \"division\": {\n        \"id\": 13,\n        \"name\": \"Europe\"\n      },\n      \"department\": {\n        \"id\": 6,\n        \"name\": \"Administration & Operations\"\n      }\n    }\n  }\n}"},{"id":"641ebe7b-8998-4943-9f1d-a44cd2ad8c60","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"asset_category_id\": \"<integer>\",\n  \"cost_model\": \"<string>\",\n  \"serial_number\": \"<string>\",\n  \"label\": \"<string>\",\n  \"cost_frequency\": \"<string>\",\n  \"cost\": \"<string>\",\n  \"purchase_date\": \"<date>\",\n  \"warranty_end_date\": \"<date>\",\n  \"employee_id\": \"<integer>\",\n  \"assign_date\": \"<date>\",\n  \"location_id\": \"<integer>\",\n  \"division_id\": \"<integer>\",\n  \"department_id\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"hr_family\": \"<string>\",\n  \"custom_field_01\": \"<string>\",\n  \"custom_field_02\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"402dccd3-8fe8-488e-a0f6-6816c367856d"},{"name":"Get all assets categories of inventory type","id":"e69fec1b-74d1-4667-934d-418b1bf3b280","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories","description":"<h3 id=\"api-endpoint-to-retrieve-all-the-available-categories-for-an-inventory-type-asset\">API Endpoint to retrieve all the available categories for an inventory-type asset.</h3>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory","categories"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"1baa03cf-cdb6-4b97-9cfd-13266a7f647d","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"asset_type_id\": 2,\n      \"name\\\"\": \"membership-name\",\n      \"is_enabled\": 1,\n      \"created_at\": \"2023-11-16 09:28:26\",\n      \"updated_at\": \"2023-11-16 13:03:57\",\n      \"deleted_at\": null,\n      \"asset_type\": {\n        \"id\": 2,\n        \"slug\": \"subscription\",\n        \"name\": \"Membership\"\n      }\n    }\n  ]\n}"}],"_postman_id":"e69fec1b-74d1-4667-934d-418b1bf3b280"},{"name":"Create a category for the inventory assets","id":"1df89223-1073-4fe8-81b2-f1028539e137","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\" // (Required) The category name for the inventory asset. Maximum character limit: 191 characters.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories","description":"<h3 id=\"api-endpoint-to-create-a-new-category-for-the-inventory-assets\">API Endpoint to create a new category for the inventory assets.</h3>\n<p>This endpoint facilitates the creation of a new inventory asset category. You should provide the name of the current category.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>true</td>\n<td>The category name for the inventory asset. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory","categories"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"3d57a589-a5ab-4948-a51b-9f729362f367","name":"OK","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1,\n    \"asset_type_id\": 2,\n    \"name\": \"membership-name\",\n    \"is_enabled\": 1,\n    \"created_at\": \"2023-11-16 09:28:26\",\n    \"updated_at\": \"2023-11-16 13:03:57\",\n    \"deleted_at\": null,\n    \"asset_type\": {\n      \"id\": 2,\n      \"slug\": \"subscription\",\n      \"name\": \"Membership\"\n    }\n  }\n}"},{"id":"a87805c6-43e1-46b7-a0d3-2a4d52f24093","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"1df89223-1073-4fe8-81b2-f1028539e137"},{"name":"Get an inventory category","id":"2882db25-298c-44e9-ab5a-ffa85a9f2aeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","description":"<h3 id=\"api-endpoint-to-retrieve-the-specified-inventory-category\">API Endpoint to retrieve the specified inventory category.</h3>\n<p>This endpoint retrieves information for the specified inventory category.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory","categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"69bfcded-2742-4011-b494-c56ace4d7ef7","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"asset_type_id\": 1,\n    \"name\": \"inventory-name\",\n    \"is_enabled\": 1,\n    \"created_at\": \"2024-02-15 09:04:59\",\n    \"updated_at\": \"2024-02-15 09:04:59\",\n    \"deleted_at\": null,\n    \"asset_type\": {\n      \"id\": 1,\n      \"slug\": \"inventory\",\n      \"name\": \"Inventory\"\n    }\n  }\n}"},{"id":"fa04c63a-2ab1-4724-b96c-5df16c7e6661","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"2882db25-298c-44e9-ab5a-ffa85a9f2aeb"},{"name":"Update an inventory category","id":"02f84a6f-bcf2-4569-be65-871e4c80a338","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // Required without is_enabled. The category name for the inventory asset. Maximum character limit: 191 characters.\n  \"is_enabled\": \"<boolean>\" // Required without name. Choose 'true' to enable the invnetory category, and 'false' to disable it.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","description":"<h3 id=\"api-endpoint-to-update-the-specified-inventory-category\">API Endpoint to update the specified inventory category.</h3>\n<p>This endpoint facilitates the modification for the specified inventory asset category. You should provide the name of the current category.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Required without is_enabled.</td>\n<td>The category name for the inventory asset. Maximum character limit: 191 characters.</td>\n<td>-</td>\n</tr>\n<tr>\n<td>is_enabled</td>\n<td>boolean</td>\n<td>Required without name.</td>\n<td>Choose 'true' to enable the invnetory category, and 'false' to disable it.</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory","categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"11a10f43-26d0-4119-8760-5ba663bddcbd","name":"OK","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_enabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"asset_type_id\": 1,\n    \"name\": \"inventory-name\",\n    \"is_enabled\": 1,\n    \"created_at\": \"2024-02-15 09:04:59\",\n    \"updated_at\": \"2024-02-15 09:04:59\",\n    \"deleted_at\": null,\n    \"asset_type\": {\n      \"id\": 1,\n      \"slug\": \"inventory\",\n      \"name\": \"Inventory\"\n    }\n  }\n}"},{"id":"4783d7b2-0761-49ae-8692-02160020639b","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_enabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"e4b35334-a59b-4627-a5e2-dbdd329772dd","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"is_enabled\": \"<boolean>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"02f84a6f-bcf2-4569-be65-871e4c80a338"},{"name":"Delete a inventory category","id":"fa7e0e5b-eeec-4618-8308-d9ddbb4e1c32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","description":"<h3 id=\"api-endpoint-to-delete-the-specified-inventory-category\">API Endpoint to delete the specified inventory category.</h3>\n<p>This endpoint facilitates the deletion of the specified inventory category. If there are assets within this category the deletion cannot be done.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","inventory","categories",":objectId"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"1f5b3b3b-0e92-4f9d-8d9a-016f097ae2f0","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"bcc0a2dd-19d4-4f1c-a023-db4ad9b516c9","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/inventory/categories/:objectId","host":["https://pubapi.talenthr.io/v1"],"path":["assets","inventory","categories",":objectId"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"fa7e0e5b-eeec-4618-8308-d9ddbb4e1c32"},{"name":"Get asset's default values","id":"1bfbcaee-b755-43cb-8b2a-682a9c4a3f99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/default-values","description":"<h3 id=\"api-endpoint-to-get-the-default-values-for-an-asset\">API Endpoint to get the default values for an asset.</h3>\n<p>This endpoint retrieves comprehensive information on all default values an asset can have. This includes asset types, asset statuses, cost frequencies and cost models.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","default-values"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4751a816-1333-485c-a2f3-9d5939c8d2f9","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/default-values"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"asset_types\": [\n      {\n        \"id\": 1,\n        \"slug\": \"inventory\",\n        \"name\": \"Inventory\"\n      },\n      {\n        \"id\": 2,\n        \"slug\": \"subscription\",\n        \"name\": \"Membership\"\n      }\n    ],\n    \"asset_statuses\": [\n      {\n        \"id\": 1,\n        \"slug\": \"in-use\",\n        \"name\": \"In use\"\n      },\n      {\n        \"id\": 2,\n        \"slug\": \"available\",\n        \"name\": \"Available\"\n      },\n      {\n        \"id\": 3,\n        \"slug\": \"in-service\",\n        \"name\": \"In service\"\n      },\n      {\n        \"id\": 4,\n        \"slug\": \"broken\",\n        \"name\": \"Broken\"\n      },\n      {\n        \"id\": 5,\n        \"slug\": \"retired\",\n        \"name\": \"Retired\"\n      }\n    ],\n    \"cost_frequencies\": [\n      {\n        \"slug\": \"per-month\",\n        \"name\": \"Per month\"\n      },\n      {\n        \"slug\": \"per-year\",\n        \"name\": \"Per year\"\n      },\n      {\n        \"slug\": \"once-off\",\n        \"name\": \"Once off\"\n      }\n    ],\n    \"cost_models\": [\n      {\n        \"slug\": \"per-user\",\n        \"name\": \"Per user\"\n      },\n      {\n        \"slug\": \"per-company\",\n        \"name\": \"Per company\"\n      }\n    ]\n  }\n}"}],"_postman_id":"1bfbcaee-b755-43cb-8b2a-682a9c4a3f99"},{"name":"Get asset's history","id":"6551a596-4f18-484c-938f-de4da35a0396","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId/history?limit=<integer>&offset=<integer>","description":"<h3 id=\"api-endpoint-to-get-the-changes-that-happened-to-the-specified-asset\">API Endpoint to get the changes that happened to the specified asset.</h3>\n<p>This endpoint retrieves comprehensive information on assets' history. You can check either a membership asset history or an inventory one. You have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage).</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","history"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"}],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"c020bc9f-db5d-49ed-805b-7dff2db131ba","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/history?limit=<integer>&offset=<integer>","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","history"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"}],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 49,\n        \"asset_id\": 14,\n        \"field\": null,\n        \"event_type_id\": 6,\n        \"event_target\": \"EmployeeAssetsAssignment\",\n        \"event_data\": {\n          \"asset_id\": 14,\n          \"actor_name\": \"Mia Black\",\n          \"asset_name\": \"asset-name\",\n          \"asset_type\": \"inventory\",\n          \"subject_id\": \"15\",\n          \"actor_email\": \"karras+1@openit.gr\",\n          \"assign_date\": \"2024-02-14\",\n          \"subject_name\": \"Doe John\",\n          \"assignee_name\": \"Doe John\"\n        },\n        \"created_at\": \"2024-02-14 16:09:24\",\n        \"text\": \"<subject>asset-name</subject> assigned to employee <subject>Doe John</subject> (assign date: Feb 14, 2024).\"\n      }\n    ]\n  }\n}"},{"id":"cddad370-d4fe-4354-8521-3c6cfafdab68","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/history?limit=<integer>&offset=<integer>","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","history"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"}],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"6551a596-4f18-484c-938f-de4da35a0396"},{"name":"Update an asset status","id":"93d0d8fc-caa7-4189-9fa9-e8a5245b56a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"asset_status_slug\": \"<string>\" // (Required) The slug of the asset status. If the asset type is \"membership\", the available actions are limited to \"available\" and \"retired\". However, if the type is \"inventory\", the available options expand to include [available, in-use, in-service, broken, retired]. For an inventory asset with an assigned user, transitioning to the \"in-use\" status is applicable primarily when the current status is \"broken\" or \"in-service\". When the status is \"retired\", the assigned user is no longer associated, thus preventing a transition to the \"in-use\" status.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/:objectId/change-status","description":"<h3 id=\"api-endpoint-to-change-the-status-of-the-specified-asset\">API Endpoint to change the status of the specified asset.</h3>\n<p>This endpoint allows for the modification of an asset's status, applicable to both inventory and membership assets, with each type having its distinct set of statuses.</p>\n<p>For membership assets, there are only two possible statuses:</p>\n<ul>\n<li><strong>Available</strong>: Indicates the asset is ready and accessible for use.</li>\n<li><strong>Retired</strong>: Signifies that the asset is no longer in service or use.</li>\n</ul>\n<p>Inventory assets, on the other hand, have a broader range of five possible statuses:</p>\n<ul>\n<li><strong>Available</strong>: The asset is not currently being used and is ready for deployment.</li>\n<li><strong>In Use</strong>: Indicates the asset is actively being utilized.</li>\n<li><strong>In Service</strong>: The asset is undergoing maintenance or repairs.</li>\n<li><strong>Broken</strong>: The asset is damaged and not in working condition.</li>\n<li><strong>Retired</strong>: Similar to the membership asset, this status means the asset is no longer in service.</li>\n</ul>\n<p>For inventory assets with an assigned user, the transition to the \"In Use\" status is specifically relevant when the asset is moving from a \"Broken\" or \"In Service\" status. It is important to note that once an inventory asset is marked as \"Retired,\" any association with an assigned user is removed, effectively preventing any further transition to the \"In Use\" status.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>asset_status_slug</td>\n<td>enum</td>\n<td>true</td>\n<td>The slug of the asset status. If the asset type is \"membership\", the available actions are limited to \"available\" and \"retired\". However, if the type is \"inventory\", the available options expand to include [available, in-use, in-service, broken, retired]. For an inventory asset with an assigned user, transitioning to the \"in-use\" status is applicable primarily when the current status is \"broken\" or \"in-service\". When the status is \"retired\", the assigned user is no longer associated, thus preventing a transition to the \"in-use\" status.</td>\n<td>in-use, available, in-service, broken, retired</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","change-status"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"65c22a05-beff-4528-b42e-2e9e1ec2747f","name":"Simple boolean response","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"asset_status_slug\": \"in-service\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/change-status","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","change-status"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"6c5b51d4-cefa-478b-9824-9a80ddb63515","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"asset_status_slug\": \"in-service\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/change-status","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","change-status"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"dbce910f-dc32-431b-bb7b-104afb614458","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"asset_status_slug\": \"in-service\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/change-status","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","change-status"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"93d0d8fc-caa7-4189-9fa9-e8a5245b56a2"},{"name":"Get asset's employees","id":"9aef0f3f-e8ba-44c3-9458-007ecfad5bfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId/employees?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>","description":"<h3 id=\"api-endpoint-to-retrieve-the-employees-that-have-been-assigned-this-asset\">API Endpoint to retrieve the employees that have been assigned this asset.</h3>\n<p>This endpoint retrieves comprehensive information regarding the employees assigned to an asset. Users have the flexibility to customize the data retrieval process through a pagination mechanism. (Refer to the Introductory chapter for further details on usage). In addition to pagination parameters, users can customize the order and sorting of the retrieved data or search through them. The <strong>search</strong> option can filter employees based on their first name, last name, location, division, department, job title.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>The maximum number of rows to return per request. Defaults to 10 and can be set up to 100.</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0.","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>Pagination's orderBy. Enum value ['asc', 'desc']</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>Pagination's sort. Enum value ['assign_date', 'name', 'location', 'department', 'division']</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>Searching</p>\n","type":"text/plain"},"key":"search","value":"<string>"}],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"d8af4144-1792-40d8-901e-9deeb71fb4f8","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/employees?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","employees"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"}],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 15,\n        \"user_id\": 15,\n        \"reports_to_employee_id\": 1,\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg?Expires=1708502351&Signature=alQJQfgZDB2gUid0UcSz2DP2GfkH8jf~~uImvwplPEBr4JOFEYevXYVr563m5KwLJhau3NB5grzAnt3ES~~c64jJ2QcTFSpOIpcZkj6fXcrsXaKJHVisd9CZtyKnxQJ0RTUvrpIGAje0TJGSEi0UWIUTRa7jMEPBWSMmNjv0hyxnCp5d9HxSSJiTka83iwXrEVwsp2msEX~jSBttm7w-uDLUeOoOwZEcKXZp-GURKs69yTK9Tm6HESCtZuxXAPVVnRYQIbq87OMOz01~bpB8nsoKoLpz2qz4AZf5O6o3mHTg5n4XGWnhz3e9hZh5fw-ENih3iIp8WF9Cd2mMSjy6OQ__&Key-Pair-Id=K2KPAB7VLWPOH\",\n        \"u_id\": 15,\n        \"first_name\": \"Doe\",\n        \"last_name\": \"John\",\n        \"email\": \"john.doe@example.com\",\n        \"division_id\": 13,\n        \"division\": \"Europe\",\n        \"department_id\": 6,\n        \"department\": \"Administration & Operations\",\n        \"location_id\": 36,\n        \"location\": \"Athens\",\n        \"job_title_id\": 25,\n        \"job_title\": \"Administrative Assistant\",\n        \"assign_date\": \"2024-02-14\"\n      }\n    ]\n  }\n}"},{"id":"06a03307-0671-48fb-b9e6-e0ee2028bc56","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/employees?limit=<integer>&offset=<integer>&order=<string>&sort=<string>&search=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","employees"],"query":[{"key":"limit","value":"<integer>"},{"key":"offset","value":"<integer>"},{"key":"order","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"search","value":"<string>"}],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"9aef0f3f-e8ba-44c3-9458-007ecfad5bfc"},{"name":"Get asset's custom fields","id":"e775cdaa-8663-4d65-b179-ce13862ccc27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId/custom-fields","description":"<h3 id=\"api-endpoint-to-get-the-custom-fields-that-are-available-for-an-asset\">API Endpoint to get the custom fields that are available for an asset.</h3>\n<p>This endpoint is designed to fetch the custom fields associated with a specified asset, as well as the values of these custom fields.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"e29219cb-f339-4d75-aaff-8c1e891a3396","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/custom-fields","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","custom-fields"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Custom Field 1\",\n      \"slug\": \"custom-field-1\",\n      \"custom_field_type_id\": 4,\n      \"asset_type_id\": null,\n      \"subfields\": 0,\n      \"is_predefined\": false,\n      \"is_enabled\": true,\n      \"is_group\": false,\n      \"parent_group_id\": null,\n      \"visible_to\": \"all\",\n      \"has_multiple_records\": false,\n      \"created_at\": \"2024-02-14 08:51:13\",\n      \"updated_at\": \"2024-02-14 08:51:13\",\n      \"deleted_at\": null,\n      \"field_name\": \"custom-field-1\",\n      \"custom_field_type\": {\n        \"id\": 4,\n        \"slug\": \"multiple-choice\",\n        \"name\": \"Multiple choice\"\n      },\n      \"asset_custom_field_values\": [\n        {\n          \"id\": 1,\n          \"asset_custom_field_id\": 1,\n          \"name\": \"Option 1\"\n        },\n        {\n          \"id\": 2,\n          \"asset_custom_field_id\": 1,\n          \"name\": \"Option 2\"\n        },\n        {\n          \"id\": 3,\n          \"asset_custom_field_id\": 1,\n          \"name\": \"Option 3\"\n        },\n        {\n          \"id\": 4,\n          \"asset_custom_field_id\": 1,\n          \"name\": \"Option 4\"\n        }\n      ],\n      \"asset_type\": null\n    }\n  ]\n}"},{"id":"48ff2539-4f0e-4cc3-b129-d20d19894cf2","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/custom-fields","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","custom-fields"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"e775cdaa-8663-4d65-b179-ce13862ccc27"},{"name":"Get the available employees","id":"735679ff-7192-4224-aae4-aacb82cdc79b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId/available-employees","description":"<h3 id=\"api-endpoint-to-retrieve-the-available-employees-for-the-specified-asset\">API Endpoint to retrieve the available employees for the specified asset.</h3>\n<p>This endpoint is designed to retrieve detailed information about all the employees available within the domain for assignment to a specific asset. If there are employees already assigned to the asset (or a single employee in the case of an inventory asset), the response will exclude those employees, thus providing a list of all other domain employees who are available for assignment.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","available-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"d073030c-6d80-44e0-9675-28f889d55c4d","name":"OK","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/available-employees","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","available-employees"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 19,\n      \"user_id\": 19,\n      \"reports_to_employee_id\": 1,\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png...\",\n      \"u_id\": 19,\n      \"first_name\": \"Clive\",\n      \"last_name\": \"Bixby\",\n      \"email\": \"karras+5@openit.gr\",\n      \"division_id\": 13,\n      \"division\": \"Europe\",\n      \"department_id\": 6,\n      \"department\": \"Administration & Operations\",\n      \"location_id\": 36,\n      \"location\": \"Athens\",\n      \"job_title_id\": 26,\n      \"job_title\": \"Business Analyst\",\n      \"is_me\": 0\n    }\n  ]\n}"},{"id":"9dbd2d6f-2960-4181-9e1d-220f4dea9ebb","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/available-employees","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","available-employees"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"735679ff-7192-4224-aae4-aacb82cdc79b"},{"name":"Assign employees to a Membership Asset","id":"2cbb6b8c-4ec0-4d5d-b715-f0d0fe3ff48f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"employees\": [ // (Required) Array with Employees' Ids (Active Employees). Exclude employees that already are assigned to this asset. The array contains the IDs of employees to whom the asset will be assigned.  It is not allowed to assign employees to an inventory asset or if asset is retired.\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets/:objectId/assign-employees","description":"<h3 id=\"api-endpoint-to-assign-employees-to-a-membership-asset\">API Endpoint to assign employees to a Membership Asset.</h3>\n<p>This endpoint facilitates to assign employees to a membership asset, with the system automatically excluding any employees who are already assigned to the specified asset. It's important to note that this functionality is exclusive to membership assets; assigning employees to an inventory asset through this endpoint is not permitted. Additionally, if the asset is marked as \"retired,\" the assignment of employees is also disallowed.</p>\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>employees</td>\n<td>array</td>\n<td>true</td>\n<td>The array contains the IDs (Active employess) of employees to whom the asset will be assigned. Exclude employees that already are assigned to this asset. It is not allowed to assign employees to an inventory asset or if asset is retired.</td>\n<td>e.g. \"employees\":[1,2]</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","assign-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"}]}},"response":[{"id":"f06be809-0b0b-420b-8fc1-1ce92ebe03a8","name":"Simple boolean response","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"employees\": [\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/assign-employees","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","assign-employees"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"7a9329b3-2d08-4f01-b77f-72452edfdf30","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"employees\": [\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/assign-employees","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","assign-employees"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"bdc57c55-2897-46b8-b6a2-25b726872461","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"employees\": [\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/assign-employees","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","assign-employees"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The field_1 field is required. (and 1 more error)\",\n    \"hr_code\": 10\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"field_1\": [\n      \"The field_1 field is required.\"\n    ],\n    \"field_2\": [\n      \"The field_2 must be an integer.\"\n    ]\n  }\n}"}],"_postman_id":"2cbb6b8c-4ec0-4d5d-b715-f0d0fe3ff48f"},{"name":"Remove an asset from an employee","id":"8e17ea53-b184-48e4-a5ce-eed84324e47c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets/:objectId/employees/:employee","description":"<h3 id=\"api-endpoint-to-remove-an-asset-from-an-employee\">API Endpoint to remove an asset from an employee.</h3>\n<p>This endpoint enables the disassociation of an asset from a specified employee. Specifically, if the asset being removed is an inventory asset, its status will automatically be updated from 'in-use' to 'available'.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets",":objectId","employees",":employee"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(Required) The related object id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"objectId"},{"description":{"content":"<p>(Required) The id of the employee</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"9427420d-47f0-46cc-8fe6-d0e61072fd91","name":"Simple boolean response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","employees",":employee"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"},{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"abb0f994-9312-44c6-971c-b36b993a812d","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/assets/:objectId/employees/:employee","host":["https://pubapi.talenthr.io/v1"],"path":["assets",":objectId","employees",":employee"],"variable":[{"key":"objectId","value":"<integer>","description":"(Required) The related object id"},{"key":"employee","value":"<integer>","description":"(Required) The id of the employee"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The error message...\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"}],"_postman_id":"8e17ea53-b184-48e4-a5ce-eed84324e47c"}],"id":"9186acad-0906-47dc-8f86-9d02b2619c0a","description":"<p>To use this feature requires that your subscription for TalentHR supports the respective component.</p>\n","_postman_id":"9186acad-0906-47dc-8f86-9d02b2619c0a","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Asset custom fields","item":[{"name":"Get all assets custom fields","id":"e330c9bd-b067-4015-922e-cdad01aef9c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pubapi.talenthr.io/v1/assets/custom-fields","description":"<p>This endpoint retrieves comprehensive information on enabled asset custom fields. It provides details on the status of the asset custom field as well as info for the type of custom field, and, in cases where the field is configured for single or multiple-choice options, any values associated with these choices.</p>\n<p>You can identify the scope of an asset custom field based on the <code>asset_type_id</code>. If this identifier is <code>null</code>, the asset is universally applicable to all asset types (membership and inventory). Otherwise, if the ID of a specific asset is provided, the applicability of the asset is limited to that asset type.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets","custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"51297c84-1d47-42fd-afa2-83f091d92aa5","name":"OK","originalRequest":{"method":"GET","header":[],"url":"https://pubapi.talenthr.io/v1/assets/custom-fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Custom Field 1\",\n            \"slug\": \"custom-field-1\",\n            \"custom_field_type_id\": 4,\n            \"asset_type_id\": 1,\n            \"subfields\": 0,\n            \"is_predefined\": false,\n            \"is_enabled\": true,\n            \"is_group\": false,\n            \"parent_group_id\": null,\n            \"visible_to\": \"all\",\n            \"has_multiple_records\": false,\n            \"created_at\": \"2024-02-14 08:51:13\",\n            \"updated_at\": \"2024-04-01 10:57:09\",\n            \"deleted_at\": null,\n            \"field_name\": \"custom-field-1\",\n            \"asset_type\": {\n                \"id\": 1,\n                \"slug\": \"inventory\",\n                \"name\": \"Inventory\"\n            },\n            \"custom_field_type\": {\n                \"id\": 4,\n                \"slug\": \"multiple-choice\",\n                \"name\": \"Multiple choice\"\n            },\n            \"asset_custom_field_values\": [\n                {\n                    \"id\": 1,\n                    \"asset_custom_field_id\": 1,\n                    \"name\": \"Option 1\"\n                },\n                {\n                    \"id\": 2,\n                    \"asset_custom_field_id\": 1,\n                    \"name\": \"Option 2\"\n                },\n                {\n                    \"id\": 3,\n                    \"asset_custom_field_id\": 1,\n                    \"name\": \"Option 3\"\n                },\n                {\n                    \"id\": 4,\n                    \"asset_custom_field_id\": 1,\n                    \"name\": \"Option 4\"\n                }\n            ]\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Custom Field 2\",\n            \"slug\": \"custom-field-2\",\n            \"custom_field_type_id\": 2,\n            \"asset_type_id\": 2,\n            \"subfields\": 0,\n            \"is_predefined\": false,\n            \"is_enabled\": true,\n            \"is_group\": false,\n            \"parent_group_id\": null,\n            \"visible_to\": \"all\",\n            \"has_multiple_records\": false,\n            \"created_at\": \"2024-02-14 08:53:29\",\n            \"updated_at\": \"2024-04-01 10:58:10\",\n            \"deleted_at\": null,\n            \"field_name\": \"custom-field-2\",\n            \"asset_type\": {\n                \"id\": 2,\n                \"slug\": \"subscription\",\n                \"name\": \"Membership\"\n            },\n            \"custom_field_type\": {\n                \"id\": 2,\n                \"slug\": \"long-text-field\",\n                \"name\": \"Long text field\"\n            },\n            \"asset_custom_field_values\": []\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Custom Field 3\",\n            \"slug\": \"custom-field-3\",\n            \"custom_field_type_id\": 6,\n            \"asset_type_id\": null,\n            \"subfields\": 0,\n            \"is_predefined\": false,\n            \"is_enabled\": true,\n            \"is_group\": false,\n            \"parent_group_id\": null,\n            \"visible_to\": \"all\",\n            \"has_multiple_records\": false,\n            \"created_at\": \"2024-02-14 08:53:42\",\n            \"updated_at\": \"2024-02-14 08:53:42\",\n            \"deleted_at\": null,\n            \"field_name\": \"custom-field-3\",\n            \"asset_type\": null,\n            \"custom_field_type\": {\n                \"id\": 6,\n                \"slug\": \"date\",\n                \"name\": \"Date\"\n            },\n            \"asset_custom_field_values\": []\n        }\n    ]\n}"}],"_postman_id":"e330c9bd-b067-4015-922e-cdad01aef9c9"},{"name":"List asset custom fields","id":"3c58eebf-be0c-430d-84f2-6fec9576057e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields","description":"<p>This endpoint returns asset custom field definitions grouped into standard_fields (enabled, non-group standard slugs from tenant configuration) and custom_fields (tenant-defined fields).</p>\n<p>Requires permission to list asset custom fields.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets-custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"2b09f3b3-3309-482d-be38-2a23b14b990e","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"standard_fields\": [\n      {\n        \"id\": 1,\n        \"name\": \"Name\",\n        \"slug\": \"name\",\n        \"custom_field_type_id\": 1,\n        \"subfields\": 0,\n        \"is_predefined\": true,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"asset_type_id\": null,\n        \"created_at\": \"2025-12-08 09:08:21\",\n        \"updated_at\": \"2025-12-12 13:58:04\",\n        \"always_active\": true,\n        \"custom_field_type\": {\n          \"id\": 1,\n          \"slug\": \"text-field\",\n          \"name\": \"Text field\",\n          \"is_visible\": true\n        },\n        \"asset_type\": null\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Category\",\n        \"slug\": \"asset-category-id\",\n        \"custom_field_type_id\": 3,\n        \"subfields\": 0,\n        \"is_predefined\": true,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"asset_type_id\": null,\n        \"created_at\": \"2025-12-08 09:08:21\",\n        \"updated_at\": \"2025-12-12 13:58:04\",\n        \"always_active\": false,\n        \"custom_field_type\": {\n          \"id\": 3,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_visible\": true\n        },\n        \"asset_type\": null\n      },\n      {\n        \"id\": 3,\n        \"name\": \"Serial number\",\n        \"slug\": \"serial-number\",\n        \"custom_field_type_id\": 1,\n        \"subfields\": 0,\n        \"is_predefined\": true,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"asset_type_id\": 1,\n        \"created_at\": \"2025-12-08 09:08:21\",\n        \"updated_at\": \"2025-12-12 13:58:04\",\n        \"always_active\": false,\n        \"custom_field_type\": {\n          \"id\": 1,\n          \"slug\": \"text-field\",\n          \"name\": \"Text field\",\n          \"is_visible\": true\n        },\n        \"asset_type\": {\n          \"id\": 1,\n          \"slug\": \"inventory\",\n          \"name\": \"Inventory\"\n        }\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"id\": 520,\n        \"name\": \"Lease reference\",\n        \"slug\": \"lease-reference\",\n        \"custom_field_type_id\": 1,\n        \"subfields\": 0,\n        \"is_predefined\": false,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"asset_type_id\": null,\n        \"created_at\": \"2026-04-01 08:00:00\",\n        \"updated_at\": \"2026-04-01 08:00:00\",\n        \"always_active\": false,\n        \"custom_field_type\": {\n          \"id\": 1,\n          \"slug\": \"text-field\",\n          \"name\": \"Text field\",\n          \"is_visible\": true\n        },\n        \"asset_type\": null\n      },\n      {\n        \"id\": 521,\n        \"name\": \"Asset tag color\",\n        \"slug\": \"asset-tag-color\",\n        \"custom_field_type_id\": 3,\n        \"subfields\": 0,\n        \"is_predefined\": false,\n        \"is_enabled\": true,\n        \"is_group\": false,\n        \"asset_type_id\": 1,\n        \"created_at\": \"2026-04-02 11:15:00\",\n        \"updated_at\": \"2026-04-02 11:15:00\",\n        \"always_active\": false,\n        \"custom_field_type\": {\n          \"id\": 3,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_visible\": true\n        },\n        \"asset_type\": {\n          \"id\": 1,\n          \"slug\": \"inventory\",\n          \"name\": \"Inventory\"\n        }\n      }\n    ]\n  }\n}"},{"id":"248bd393-cc42-4c5a-8eae-22a6c771dddb","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"0e0930e8-3f15-454c-bb47-fbac2bfaadee","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"3c58eebf-be0c-430d-84f2-6fec9576057e"},{"name":"Get asset custom field","id":"685ab098-79e5-4e15-a814-0a86193f75f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/:assetCustomField","description":"<p>This endpoint returns one asset custom field with its type, allowed choice values when the type is single-choice or multiple-choice, nested sub_fields when the field is a group, aggregated permissions for asset field access by role, and related asset_type when configured.</p>\n<p>Requires permission to view that asset custom field.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets-custom-fields",":assetCustomField"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant asset custom field id (<code>asset_custom_fields.id</code>). Use ids reported under <strong>List asset custom fields</strong> (<code>standard_fields[].id</code>, <code>custom_fields[].id</code>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"assetCustomField"}]}},"response":[{"id":"b456454f-0913-4c1b-9bd8-9d366cc2b41b","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"name\": \"Category\",\n    \"slug\": \"asset-category-id\",\n    \"custom_field_type_id\": 3,\n    \"asset_type_id\": null,\n    \"asset_category_id\": null,\n    \"subfields\": 0,\n    \"is_predefined\": true,\n    \"is_enabled\": true,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": \"assets\",\n    \"created_at\": \"2025-12-08 09:08:21\",\n    \"updated_at\": \"2025-12-12 13:58:04\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null,\n    \"permissions\": [\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"view\",\n        \"value\": true,\n        \"condition\": \"all\"\n      },\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"edit\",\n        \"value\": true,\n        \"condition\": \"manager,self\"\n      }\n    ],\n    \"sub_fields\": [],\n    \"custom_field_type\": {\n      \"id\": 3,\n      \"slug\": \"single-choice\",\n      \"name\": \"Single choice\",\n      \"is_visible\": true\n    },\n    \"asset_custom_field_values\": [\n      {\n        \"id\": 101,\n        \"asset_custom_field_id\": 2,\n        \"name\": \"Hardware\",\n        \"created_at\": \"2025-12-08 09:10:00\",\n        \"updated_at\": \"2025-12-08 09:10:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 102,\n        \"asset_custom_field_id\": 2,\n        \"name\": \"Subscription\",\n        \"created_at\": \"2025-12-08 09:10:00\",\n        \"updated_at\": \"2025-12-08 09:10:00\",\n        \"deleted_at\": null\n      }\n    ],\n    \"asset_type\": null\n  }\n}"},{"id":"a1135bad-68b3-4e3b-98fc-5536e10d258e","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"32c9c763-60e6-4839-83f8-ff8c29563a67","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"85a6ba31-e3cc-40ed-affc-865e8d42cf37","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Assets\\\\AssetCustomField] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"685ab098-79e5-4e15-a814-0a86193f75f1"},{"name":"Create asset custom field","id":"2bbe5a0a-5f6e-4e9b-bffd-cd0e9a97d587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Insurance policy ref\",\n  \"custom_field_type_id\": 1,\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": [\"all\"]},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": [\"manager\"]}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields","description":"<h3>Create asset custom field</h3>\n\n<p>Creates an asset custom field definition with a display name, field type, role-based permissions, and when the type is single-choice or multiple-choice a list of option labels.</p>\n<p>Requires permission to create asset custom fields.</p>\n<p>Use Get type and permission values (GET <a href=\"https://pubapi.talenthr.io/v1/custom-fields-values\">https://pubapi.talenthr.io/v1/custom-fields-values</a>) for type ids and permission actions/conditions. Use List user roles (GET <a href=\"https://pubapi.talenthr.io/v1/user-roles\">https://pubapi.talenthr.io/v1/user-roles</a>) for user_role_id values in each permissions row.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Display name for the field definition.</td>\n<td>e.g. <code>Warranty end date</code></td>\n</tr>\n<tr>\n<td>custom_field_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Field type id from <strong>Get type and permission values</strong> (<code>data.type_values</code>). Use an entry where <code>is_visible</code> is true; the group type is not accepted on create.</td>\n<td>e.g. <code>1</code></td>\n</tr>\n<tr>\n<td>asset_type_slug</td>\n<td>string or null</td>\n<td>no</td>\n<td>Limits the definition to one asset product type when set. Omit the property, send JSON <code>null</code>, or use <code>inventory</code> or <code>membership</code> only.</td>\n<td>e.g. <code>inventory</code></td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>array</td>\n<td>yes</td>\n<td>Access rules by user role for asset field view and edit. Send as a JSON array (a JSON string is also accepted). Each object: <code>user_role_id</code> (from <strong>List user roles</strong>), <code>action</code> (<code>view</code> or <code>edit</code>), and <code>condition</code> (string or array of strings). Allowed values are under <code>data.permission_values</code> in <strong>Get type and permission values</strong>. Do not send <code>resource</code> or <code>value</code> in the request body.</td>\n<td>e.g. <code>[{\"user_role_id\":5,\"action\":\"view\",\"condition\":[\"all\"]},{\"user_role_id\":5,\"action\":\"edit\",\"condition\":[\"manager\"]}]</code></td>\n</tr>\n<tr>\n<td>values</td>\n<td>array</td>\n<td>conditional</td>\n<td>Required when the field type is single-choice or multiple-choice. Each object requires <code>text</code> (option label).</td>\n<td>e.g. <code>[{\"text\":\"Option A\"},{\"text\":\"Option B\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>There are no path parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets-custom-fields"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"ff5d3b47-e2a9-4c2d-8937-7f556d93dca6","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Insurance policy ref\",\n  \"custom_field_type_id\": 1,\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": [\"all\"]}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 523,\n    \"name\": \"Insurance policy ref\",\n    \"slug\": \"insurance-policy-ref\",\n    \"custom_field_type_id\": 1,\n    \"asset_type_id\": null,\n    \"asset_category_id\": null,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": true,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-04-10 10:00:00\",\n    \"updated_at\": \"2026-04-10 10:00:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null,\n    \"permissions\": [\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"view\",\n        \"value\": true,\n        \"condition\": \"all\"\n      }\n    ],\n    \"sub_fields\": [],\n    \"custom_field_type\": {\n      \"id\": 1,\n      \"slug\": \"text-field\",\n      \"name\": \"Text field\",\n      \"is_visible\": true\n    },\n    \"asset_custom_field_values\": [],\n    \"asset_type\": null\n  }\n}"},{"id":"f1261c44-797c-4497-b09f-2f9e1b6363ed","name":"Unprocessable Entity (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"permissions\": [\n      \"The permissions field is required.\"\n    ]\n  }\n}"},{"id":"d81daa0a-c7a8-4c8d-a8c0-050d17e44151","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"e2689d94-68c0-4189-bf5a-e6d73cc0d04c","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"2bbe5a0a-5f6e-4e9b-bffd-cd0e9a97d587"},{"name":"Update asset custom field","id":"4d6205fd-aa8c-4c39-8805-628252c03703","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Insurance policy ref (updated)\",\n  \"custom_field_type_id\": 1,\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": [\"all\"]},\n    {\"user_role_id\": 5, \"action\": \"edit\", \"condition\": [\"manager\"]}\n  ],\n  \"values\": [\n    {\"id\": 12, \"text\": \"Option A\"},\n    {\"text\": \"Option B\"}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/:assetCustomField","description":"<h3>Update asset custom field</h3>\n\n<p>Updates an asset custom field definition identified in the path. Replaces the display name, permissions, and when applicable choice option labels. Predefined definitions are subject to additional server validation.</p>\n<p>Requires permission to update the asset custom field.</p>\n<p>Use Get type and permission values (GET <a href=\"https://pubapi.talenthr.io/v1/custom-fields-values\">https://pubapi.talenthr.io/v1/custom-fields-values</a>) for permission actions/conditions. Use List user roles (GET <a href=\"https://pubapi.talenthr.io/v1/user-roles\">https://pubapi.talenthr.io/v1/user-roles</a>) for user_role_id values.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Display name for the field definition.</td>\n<td>e.g. <code>Warranty end date</code></td>\n</tr>\n<tr>\n<td>custom_field_type_id</td>\n<td>integer</td>\n<td>yes</td>\n<td>Must match the field's existing type id; the type cannot be changed on update.</td>\n<td>e.g. <code>1</code></td>\n</tr>\n<tr>\n<td>asset_type_slug</td>\n<td>string or null</td>\n<td>no</td>\n<td>Limits the definition to one asset product type when set. Omit the property, send JSON <code>null</code>, or use <code>inventory</code> or <code>membership</code> only.</td>\n<td>e.g. <code>inventory</code></td>\n</tr>\n<tr>\n<td>permissions</td>\n<td>array</td>\n<td>yes</td>\n<td>Access rules by user role for asset field view and edit. Send as a JSON array (a JSON string is also accepted). Each object: <code>user_role_id</code> (from <strong>List user roles</strong>), <code>action</code> (<code>view</code> or <code>edit</code>), and <code>condition</code> (string or array of strings). Allowed values are under <code>data.permission_values</code> in <strong>Get type and permission values</strong>. Do not send <code>resource</code> or <code>value</code> in the request body.</td>\n<td>e.g. <code>[{\"user_role_id\":5,\"action\":\"view\",\"condition\":[\"all\"]},{\"user_role_id\":5,\"action\":\"edit\",\"condition\":[\"manager\"]}]</code></td>\n</tr>\n<tr>\n<td>values</td>\n<td>array</td>\n<td>conditional</td>\n<td>Required when the field type is single-choice or multiple-choice. Each object requires <code>text</code>; include <code>id</code> for existing options on update.</td>\n<td>e.g. <code>[{\"id\":12,\"text\":\"Option A\"},{\"text\":\"Option B\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets-custom-fields",":assetCustomField"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Asset custom field id to update (<strong>List asset custom fields</strong> <strong><code>custom_fields</code></strong> or <strong>Get asset custom field</strong>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"assetCustomField"}]}},"response":[{"id":"4535ac42-6508-4125-bff8-ff92f2d081f1","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Insurance policy ref\",\n  \"custom_field_type_id\": 1,\n  \"permissions\": [\n    {\"user_role_id\": 5, \"action\": \"view\", \"condition\": [\"all\"]}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 523,\n    \"name\": \"Insurance policy ref\",\n    \"slug\": \"insurance-policy-ref\",\n    \"custom_field_type_id\": 1,\n    \"asset_type_id\": null,\n    \"asset_category_id\": null,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": true,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-04-10 10:00:00\",\n    \"updated_at\": \"2026-04-10 11:05:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null,\n    \"permissions\": [\n      {\n        \"resource\": null,\n        \"user_role_id\": 5,\n        \"action\": \"view\",\n        \"value\": true,\n        \"condition\": \"all\"\n      }\n    ],\n    \"sub_fields\": [],\n    \"custom_field_type\": {\n      \"id\": 1,\n      \"slug\": \"text-field\",\n      \"name\": \"Text field\",\n      \"is_visible\": true\n    },\n    \"asset_custom_field_values\": [],\n    \"asset_type\": null\n  }\n}"},{"id":"6b58d5ca-aad2-4e53-8f89-5da49bb4b3d0","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\"name\":\"\"}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 2\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\n      \"The name field is required.\"\n    ]\n  }\n}"},{"id":"5db4cec8-41dc-4636-a32d-26f89c167381","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"1446a05a-57fd-49db-8f8d-fac0974dc708","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"ef799077-2312-4dde-99d4-5d1ec58105e9","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Assets\\\\AssetCustomField] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"4d6205fd-aa8c-4c39-8805-628252c03703"},{"name":"Toggle asset custom field enabled","id":"29af320a-0e8a-41f0-b124-41ef83ca34cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/:assetCustomField/toggle-enabled","description":"<h3>Toggle asset custom field enabled</h3>\n\n<p>Enables or disables the asset custom field identified in the path. When the field is a group, the same enabled state is applied to its sub-fields. Fields marked as always active cannot be disabled.</p>\n<p>Requires permission to update the asset custom field and a subscription that includes the Assets feature (activation).</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>is_enabled</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Requested enabled state for the field (and its sub-fields when the path identifies a group). JSON booleans only. Fields that are always active reject attempts to disable.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets-custom-fields",":assetCustomField","toggle-enabled"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant asset custom field id (<code>asset_custom_fields.id</code>). Use ids reported under <strong>List asset custom fields</strong> (<code>standard_fields[].id</code>, <code>custom_fields[].id</code>) or <strong>Get asset custom field</strong>.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"assetCustomField"}]}},"response":[{"id":"b6098593-50a0-4f42-86aa-1c28babc9c8a","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523/toggle-enabled"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 523,\n    \"name\": \"Insurance policy ref\",\n    \"slug\": \"insurance-policy-ref\",\n    \"custom_field_type_id\": 1,\n    \"asset_type_id\": null,\n    \"asset_category_id\": null,\n    \"subfields\": 0,\n    \"is_predefined\": false,\n    \"is_enabled\": false,\n    \"is_group\": false,\n    \"parent_group_id\": null,\n    \"has_multiple_records\": false,\n    \"existing_table\": null,\n    \"created_at\": \"2026-04-10 10:00:00\",\n    \"updated_at\": \"2026-04-10 12:30:00\",\n    \"deleted_at\": null,\n    \"expiration_id\": null,\n    \"always_active\": false,\n    \"is_editable\": true,\n    \"form\": null,\n    \"model_by\": null\n  }\n}"},{"id":"9b04ce39-f5d4-4196-a1b3-a3db79b19b43","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523/toggle-enabled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"73617f6a-8ce9-4bfb-9136-2d66742795a6","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523/toggle-enabled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"7becbe81-576f-4f80-a7cb-13bbe9a6c228","name":"Forbidden (403) — subscription","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523/toggle-enabled"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Assets enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"0c8037d7-43ca-4ee3-80b4-faf425c510c5","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/99999999/toggle-enabled"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Assets\\\\AssetCustomField] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"f88c183a-0163-4315-a9db-5139b1b97e6b","name":"Conflict (409) — always active","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_enabled\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/1/toggle-enabled"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Field Name can't be disabled\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"20c1ac61-227f-49dc-bec8-29b55410875b","name":"Unprocessable Entity (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523/toggle-enabled"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"is_enabled\": [\n      \"The is enabled field is required.\"\n    ]\n  }\n}"}],"_postman_id":"29af320a-0e8a-41f0-b124-41ef83ca34cb"},{"name":"Delete asset custom field","id":"8b1cc676-a43f-4547-a4fe-bce245bb1166","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/:assetCustomField","description":"<p>This endpoint deletes a tenant-defined asset custom field, removes pivot and choice rows, clears related asset field-policy entries, then deletes the definition. Standard predefined definitions cannot be deleted. Requires permission to delete that field.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["assets-custom-fields",":assetCustomField"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Tenant-defined asset custom field id to delete (<strong>List asset custom fields</strong> <strong><code>custom_fields</code></strong>).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"assetCustomField"}]}},"response":[{"id":"dc667f4f-7180-4437-a3be-9a749a220f92","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"71c85f87-22e8-42cb-8c50-fa835fd26781","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"cbf82a11-ee0d-4eb1-a971-a88db57eefbd","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/523"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"b4739854-86f7-4990-9896-f2fe725bff24","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Assets\\\\AssetCustomField] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"4f339bfd-430c-48ed-bebd-0c2d9e947740","name":"Forbidden (403) — predefined field","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/assets-custom-fields/1"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot delete a predefined field.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"}],"_postman_id":"8b1cc676-a43f-4547-a4fe-bce245bb1166"}],"id":"4f3e0fde-2453-4379-9c42-5c1c5fb45405","_postman_id":"4f3e0fde-2453-4379-9c42-5c1c5fb45405","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Employee Goals","item":[{"name":"Get employee goals","id":"81b5e0df-b53c-41fb-9cc3-6211c4d2678b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/goals?offset=<integer>&limit=<integer>&sort=<string>&order=<string>","description":"<h3>List goals for an employee</h3>\n\n<p>This endpoint returns a paginated list of goals owned by or shared with the given employee, including milestones, owner and assigner employee stubs, other participants, and flags indicating whether the caller may manage or complete each goal. Requires permission to view goals for that employee and a subscription that includes the goals feature.</p>\n<hr />\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","goals"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. Pagination offset used together with limit (page-bucket semantics). Default when omitted: 0. Negative values are treated as 0.</p>\n","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>(integer) Optional. Number of goals per page. Maximum value : 100. Default when omitted: 10. When provided, must be an integer between 1 and 100 inclusive; values outside that range fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"<p>(string) Optional. Column to sort by. Allowed values: name, completion_date, created_at, due_date. When omitted, the listing uses the API default ordering for goals (due-date oriented).</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort direction. Allowed values: asc, desc. Other values may be normalized when building the sort. Typically used together with sort; when sort is omitted, default ordering still applies.</p>\n","type":"text/plain"},"key":"order","value":"<string>"}],"variable":[{"description":{"content":"<p>(integer) Required. Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"3748f2f5-cf37-4113-b95d-7861da7428d0","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals?offset=<integer>&limit=<integer>&sort=<string>&order=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"query":[{"key":"offset","value":"<integer>"},{"key":"limit","value":"<integer>"},{"key":"sort","value":"<string>"},{"key":"order","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee whose goals are listed."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 24,\n    \"rows\": [\n      {\n        \"id\": 101,\n        \"title\": \"Increase quarterly sales revenue\",\n        \"description\": \"Grow pipeline in key regions and close strategic accounts before fiscal year end.\",\n        \"due_date_utc\": \"2025-12-15 22:00:00\",\n        \"completion_date_utc\": null,\n        \"has_milestones\": true,\n        \"owner_id\": 15,\n        \"assigner_id\": 22,\n        \"created_at\": \"2025-04-01 08:15:00\",\n        \"updated_at\": \"2025-04-18 14:22:33\",\n        \"deleted_at\": null,\n        \"progress\": \"33.33\",\n        \"is_completed\": false,\n        \"date_added\": \"2025-04-01\",\n        \"completion_date\": null,\n        \"due_date\": \"2025-12-15\",\n        \"can_manage\": true,\n        \"can_complete\": true,\n        \"goal_milestones\": [\n          {\n            \"id\": 501,\n            \"goal_id\": 101,\n            \"name\": \"Finalize regional targets\",\n            \"is_completed\": true,\n            \"order\": 1,\n            \"created_at\": \"2025-04-01 08:15:00\",\n            \"updated_at\": \"2025-04-05 11:02:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 502,\n            \"goal_id\": 101,\n            \"name\": \"Launch partner campaign\",\n            \"is_completed\": false,\n            \"order\": 2,\n            \"created_at\": \"2025-04-01 08:15:00\",\n            \"updated_at\": \"2025-04-01 08:15:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 503,\n            \"goal_id\": 101,\n            \"name\": \"Review pipeline weekly\",\n            \"is_completed\": false,\n            \"order\": 3,\n            \"created_at\": \"2025-04-01 08:15:00\",\n            \"updated_at\": \"2025-04-01 08:15:00\",\n            \"deleted_at\": null\n          }\n        ],\n        \"owner\": {\n          \"id\": 15,\n          \"user_id\": 120,\n          \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n          \"user\": {\n            \"id\": 120,\n            \"first_name\": \"Mia\",\n            \"last_name\": \"Black\"\n          }\n        },\n        \"assigner\": {\n          \"id\": 22,\n          \"user_id\": 127,\n          \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n          \"user\": {\n            \"id\": 127,\n            \"first_name\": \"Alex\",\n            \"last_name\": \"Rivera\"\n          }\n        },\n        \"employees\": [\n          {\n            \"id\": 18,\n            \"user_id\": 118,\n            \"user\": {\n              \"id\": 118,\n              \"first_name\": \"Sam\",\n              \"last_name\": \"Chen\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"},{"id":"5bd383fa-7134-4ed9-9acb-65a601ad6c4e","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee whose goals are listed."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"3cc0b4e6-a7aa-4dd5-8cce-66c23fc20665","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals?limit=150","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"query":[{"key":"limit","value":"150"}],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee whose goals are listed."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The limit must not be greater than 100.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"limit\": [\n      \"The limit must not be greater than 100.\"\n    ]\n  }\n}"},{"id":"6e18c5e0-37d1-4c12-98d3-1e225c999b5a","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee whose goals are listed."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Goals feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"d4ba0d0e-a339-4304-bb55-dc5e5de204c1","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee whose goals are listed."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5403f484-c970-4405-91d2-5133f158ce5d","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"(Required) The id of the employee whose goals are listed."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"81b5e0df-b53c-41fb-9cc3-6211c4d2678b"},{"name":"Create employee goal","id":"914ada9a-54aa-4b0e-8f86-84d846dcad02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Goal title; max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Longer text; max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-15.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"name\": \"<string>\", // (Required when has_milestones is true) Type: string. Milestone label; max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array of objects. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer (employee id). Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner from path is added by the API if not listed.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/goals","description":"<h3>Create a goal for an employee</h3>\n\n<p>This endpoint creates a new goal for the employee given in the path (goal owner). The authenticated user’s employee is stored as the assigner. Requires permission to create goals for that employee and a subscription that includes the goals feature.</p>\n<p>Send <code>goal_milestones</code> as a JSON array of objects (not a string). <code>due_date</code> must use <code>YYYY-MM-DD</code> format.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>title</td>\n<td>string</td>\n<td>yes</td>\n<td>Goal title. Max 255 characters.</td>\n<td>e.g. <code>Quarterly pipeline growth</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>no</td>\n<td>Longer text. Max 5000 characters.</td>\n<td>e.g. <code>Grow pipeline in key regions before fiscal year end.</code></td>\n</tr>\n<tr>\n<td>due_date</td>\n<td>string (date)</td>\n<td>yes</td>\n<td>Due date; interpreted in the tenant timezone for end-of-day UTC storage. Calendar date format: <code>YYYY-MM-DD</code> only.</td>\n<td>e.g. <code>2026-12-15</code></td>\n</tr>\n<tr>\n<td>has_milestones</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether milestones are used. JSON booleans: <code>true</code> or <code>false</code>.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n<tr>\n<td>goal_milestones</td>\n<td>array</td>\n<td>conditional</td>\n<td>Milestone rows. Required when <code>has_milestones</code> is <code>true</code>: send a non-empty array. Each object requires <code>name</code> (string, max 255) and <code>is_completed</code> (boolean). When <code>has_milestones</code> is <code>false</code>, send an empty array <code>[]</code>.</td>\n<td>e.g. <code>[{\"name\":\"Finalize regional targets\",\"is_completed\":true},{\"name\":\"Launch partner campaign\",\"is_completed\":false}]</code></td>\n</tr>\n<tr>\n<td>employees</td>\n<td>array</td>\n<td>yes</td>\n<td>Employee ids for sharing. Each id must pass validation (active / allowed list). The owner id may be omitted; the API ensures the owner is included.</td>\n<td>e.g. <code>[18, 21]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Defaults and validation rules for the JSON body are listed above; successful and error responses are illustrated in the saved examples.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","goals"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id of the goal owner.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"da0af3c4-527d-4a57-99fa-1b46879e5211","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Goal title; max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Longer text; max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-15.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"name\": \"<string>\", // (Required when has_milestones is true) Type: string. Milestone label; max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array of objects. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer (employee id). Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner from path is added by the API if not listed.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Owner employee id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 205,\n    \"title\": \"Quarterly pipeline growth\",\n    \"description\": \"Grow pipeline in key regions before fiscal year end.\",\n    \"due_date_utc\": \"2026-12-15 22:00:00\",\n    \"completion_date_utc\": null,\n    \"has_milestones\": true,\n    \"owner_id\": 15,\n    \"assigner_id\": 22,\n    \"created_at\": \"2026-04-29 10:15:00\",\n    \"updated_at\": \"2026-04-29 10:15:00\",\n    \"deleted_at\": null,\n    \"progress\": \"50.00\",\n    \"is_completed\": false,\n    \"date_added\": \"2026-04-29\",\n    \"completion_date\": null,\n    \"due_date\": \"2026-12-15\",\n    \"can_complete\": true,\n    \"can_manage\": true,\n    \"goal_milestones\": [\n      {\n        \"id\": 501,\n        \"goal_id\": 205,\n        \"name\": \"Finalize regional targets\",\n        \"is_completed\": true,\n        \"order\": 1,\n        \"created_at\": \"2026-04-29 10:15:00\",\n        \"updated_at\": \"2026-04-05 11:02:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 502,\n        \"goal_id\": 205,\n        \"name\": \"Launch partner campaign\",\n        \"is_completed\": false,\n        \"order\": 2,\n        \"created_at\": \"2026-04-29 10:15:00\",\n        \"updated_at\": \"2026-04-29 10:15:00\",\n        \"deleted_at\": null\n      }\n    ],\n    \"owner\": {\n      \"id\": 15,\n      \"user_id\": 120,\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"user\": {\n        \"id\": 120,\n        \"first_name\": \"Mia\",\n        \"last_name\": \"Black\"\n      }\n    },\n    \"assigner\": {\n      \"id\": 22,\n      \"user_id\": 127,\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n      \"user\": {\n        \"id\": 127,\n        \"first_name\": \"Alex\",\n        \"last_name\": \"Rivera\"\n      }\n    },\n    \"employees\": [\n      {\n        \"id\": 18,\n        \"user_id\": 118,\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/18_1700059591.jpg\",\n        \"user\": {\n          \"id\": 118,\n          \"first_name\": \"Sam\",\n          \"last_name\": \"Chen\"\n        }\n      },\n      {\n        \"id\": 21,\n        \"user_id\": 131,\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n        \"user\": {\n          \"id\": 131,\n          \"first_name\": \"Jordan\",\n          \"last_name\": \"Lee\"\n        }\n      }\n    ]\n  }\n}"},{"id":"ace2263c-55aa-4981-9112-c8f39060ff36","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"bf09b9f1-5617-4801-9df7-8bb18d16cfc2","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"<string>\", // (Optional) Type: string. Example: Missing title and due_date.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean. Example: true.\n  \"goal_milestones\": [\n    {\n      \"name\": \"<string>\", // Type: string. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array. Omit title and due_date to trigger validation errors.\n  \"employees\": [\n    \"<integer>\" // Type: integer. Example: 18.\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The title field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"title\": [\n      \"The title field is required.\"\n    ],\n    \"due_date\": [\n      \"The due date field is required.\"\n    ]\n  }\n}"},{"id":"2a0b4cc9-868d-4290-937f-b49e94199d6c","name":"Forbidden (403) — subscription","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Goal title; max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Longer text; max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-31.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"name\": \"<string>\", // (Required when has_milestones is true) Type: string. Milestone label; max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array of objects. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer (employee id). Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner from path is added by the API if not listed.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Goals feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"f3b31cf9-34d7-4a2c-bf71-7dbf92869a59","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Goal title; max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Longer text; max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-31.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"name\": \"<string>\", // (Required when has_milestones is true) Type: string. Milestone label; max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array of objects. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer (employee id). Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner from path is added by the API if not listed.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not create goals for."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"2c298c81-32db-4647-b096-be63296a580e","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"914ada9a-54aa-4b0e-8f86-84d846dcad02"},{"name":"Delete employee goal","id":"2d6a11ee-66b1-4bb3-8af6-bee2d9bad217","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","description":"<h3>Delete a goal for an employee</h3>\n\n<p>This endpoint removes the goal identified in the path. On success the API returns a boolean success flag; related employee–goal links and milestones are cleaned up as part of deletion. Requires permission to delete goals for that employee and a subscription that includes the goals feature.</p>\n<p>There is no request body. Path parameter details are listed under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","goals",":goal"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id in the path.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Goal id in the path.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"goal"}]}},"response":[{"id":"5fcaddbf-c5f1-4838-9ed6-4fbeb8eddb24","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (owner context in URL)."},{"key":"goal","value":"<integer>","description":"(integer) Goal id to delete."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"adccaff9-c459-4192-a482-369df23f02a2","name":"Not found exception (404) — employee","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."},{"key":"goal","value":"<integer>","description":"Any goal id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"9529851e-515f-45bd-a17b-60e04962b0ad","name":"Not found exception (404) — goal","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"999999","description":"Non-existent goal id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Goal] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"ca91bda7-1774-4ad2-a2db-aa62337357dc","name":"Forbidden (403) — subscription","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Goals feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"15a072a9-19ed-4cdb-84a4-494c8966a99b","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not delete goals for."},{"key":"goal","value":"<integer>","description":"Existing goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"f97693af-add6-4e3c-8d76-24c9255a05cd","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"2d6a11ee-66b1-4bb3-8af6-bee2d9bad217"},{"name":"Get employee goal","id":"e805f8bb-ccd7-4a3d-8da5-419c01bcce52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","description":"<h3>Get one goal for an employee</h3>\n\n<p>This endpoint returns a single goal by id for the employee in the path, including milestones, owner and assigner, other participants (excluding the owner from that list), and flags indicating whether the caller may manage or complete the goal. Requires permission to view goals for that employee and a subscription that includes the goals feature.</p>\n<p>There is no request body. Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","goals",":goal"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Goal id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"goal"}]}},"response":[{"id":"5a87d007-f80d-4fac-8bc5-c4dd90e60041","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"goal","value":"<integer>","description":"(integer) Goal id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 205,\n    \"title\": \"Quarterly pipeline growth\",\n    \"description\": \"Grow pipeline in key regions before fiscal year end.\",\n    \"due_date_utc\": \"2026-12-15 22:00:00\",\n    \"completion_date_utc\": null,\n    \"has_milestones\": true,\n    \"owner_id\": 15,\n    \"assigner_id\": 22,\n    \"created_at\": \"2026-04-29 10:15:00\",\n    \"updated_at\": \"2026-04-29 10:15:00\",\n    \"deleted_at\": null,\n    \"progress\": \"50.00\",\n    \"is_completed\": false,\n    \"date_added\": \"2026-04-29\",\n    \"completion_date\": null,\n    \"due_date\": \"2026-12-15\",\n    \"can_complete\": true,\n    \"can_manage\": true,\n    \"goal_milestones\": [\n      {\n        \"id\": 501,\n        \"goal_id\": 205,\n        \"name\": \"Finalize regional targets\",\n        \"is_completed\": true,\n        \"order\": 1,\n        \"created_at\": \"2026-04-29 10:15:00\",\n        \"updated_at\": \"2026-04-05 11:02:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 502,\n        \"goal_id\": 205,\n        \"name\": \"Launch partner campaign\",\n        \"is_completed\": false,\n        \"order\": 2,\n        \"created_at\": \"2026-04-29 10:15:00\",\n        \"updated_at\": \"2026-04-29 10:15:00\",\n        \"deleted_at\": null\n      }\n    ],\n    \"owner\": {\n      \"id\": 15,\n      \"user_id\": 120,\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"user\": {\n        \"id\": 120,\n        \"first_name\": \"Mia\",\n        \"last_name\": \"Black\"\n      }\n    },\n    \"assigner\": {\n      \"id\": 22,\n      \"user_id\": 127,\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n      \"user\": {\n        \"id\": 127,\n        \"first_name\": \"Alex\",\n        \"last_name\": \"Rivera\"\n      }\n    },\n    \"employees\": [\n      {\n        \"id\": 18,\n        \"user_id\": 118,\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/18_1700059591.jpg\",\n        \"user\": {\n          \"id\": 118,\n          \"first_name\": \"Sam\",\n          \"last_name\": \"Chen\"\n        }\n      },\n      {\n        \"id\": 21,\n        \"user_id\": 131,\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n        \"user\": {\n          \"id\": 131,\n          \"first_name\": \"Jordan\",\n          \"last_name\": \"Lee\"\n        }\n      }\n    ]\n  }\n}"},{"id":"c5fa2352-abe1-4ff4-8b7c-3c76b62304a5","name":"Not found exception (404) — employee","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."},{"key":"goal","value":"<integer>","description":"Any goal id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"9bf2beb8-7fe0-40fd-8000-c81f577a1502","name":"Not found exception (404) — goal","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"999999","description":"Non-existent goal id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Goal] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"1ded8ff7-43ba-4da2-a8b2-db1e66613790","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Goals feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"e157c629-bd14-4464-b753-063a54c42e9a","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller may not view goals for."},{"key":"goal","value":"<integer>","description":"Existing goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"01ce7d3c-ffb5-4218-8f52-d1cf25c35291","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"e805f8bb-ccd7-4a3d-8da5-419c01bcce52"},{"name":"Update employee goal","id":"8bec8e6b-9122-4a3a-b1e5-0f8b7d076ba3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-20.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"id\": \"<integer>\", // (Optional) Type: integer. Existing milestone id for this goal when updating. Example: 501.\n      \"name\": \"<string>\", // (Required) Type: string. Max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"id\": \"<integer>\", // Type: integer. Example: 502.\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer. Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner added if missing.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","description":"<h3>Update a goal for an employee</h3>\n\n<p>This endpoint updates the goal in the path. Validation runs on the JSON body; <strong>manage</strong> permission on goals for that employee is required for changes to title, description, due date, milestones, sharing, or milestone mode. Requires a subscription that includes the goals feature.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>title</td>\n<td>string</td>\n<td>yes</td>\n<td>Goal title. Max 255 characters.</td>\n<td>e.g. <code>Quarterly pipeline growth</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>no</td>\n<td>Longer text. Max 5000 characters.</td>\n<td>e.g. <code>Grow pipeline in key regions before fiscal year end.</code></td>\n</tr>\n<tr>\n<td>due_date</td>\n<td>string (date)</td>\n<td>yes</td>\n<td>Due date; interpreted in the tenant timezone for end-of-day UTC storage. Calendar date format: <code>YYYY-MM-DD</code> only.</td>\n<td>e.g. <code>2026-12-15</code></td>\n</tr>\n<tr>\n<td>has_milestones</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether milestones are used. JSON booleans: <code>true</code> or <code>false</code>.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n<tr>\n<td>is_completed</td>\n<td>boolean</td>\n<td>conditional</td>\n<td>Overall completion when there are no milestones. Required when <code>has_milestones</code> is <code>false</code>: send <code>true</code> or <code>false</code>. Omit or not applicable when <code>has_milestones</code> is <code>true</code>.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>goal_milestones</td>\n<td>array</td>\n<td>conditional</td>\n<td>Milestone rows. When <code>has_milestones</code> is <code>true</code>: send a non-empty array. Each object may include optional <code>id</code> (existing milestone id for this goal), required <code>name</code> (string, max 255), and required <code>is_completed</code> (boolean). When <code>has_milestones</code> is <code>false</code>, send an empty array <code>[]</code>.</td>\n<td>e.g. <code>[{\"id\":501,\"name\":\"Finalize regional targets\",\"is_completed\":true},{\"id\":502,\"name\":\"Launch partner campaign\",\"is_completed\":false}]</code></td>\n</tr>\n<tr>\n<td>employees</td>\n<td>array</td>\n<td>yes</td>\n<td>Employees to share with. Array of integer employee ids; each id must pass validation. The owner id may be omitted; the API ensures the owner is included.</td>\n<td>e.g. <code>[18, 21]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Further detail for path parameters is under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","goals",":goal"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Required. Goal id.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"goal"}]}},"response":[{"id":"9469fac6-996b-4873-813a-84f1c10ee667","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-20.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"id\": \"<integer>\", // (Optional) Type: integer. Existing milestone id for this goal when updating. Example: 501.\n      \"name\": \"<string>\", // (Required) Type: string. Max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"id\": \"<integer>\", // Type: integer. Example: 502.\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer. Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner added if missing.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."},{"key":"goal","value":"<integer>","description":"(integer) Goal id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 205,\n    \"title\": \"Quarterly pipeline growth\",\n    \"description\": \"Grow pipeline in key regions before fiscal year end.\",\n    \"due_date_utc\": \"2026-12-20 22:00:00\",\n    \"completion_date_utc\": null,\n    \"has_milestones\": true,\n    \"owner_id\": 15,\n    \"assigner_id\": 22,\n    \"created_at\": \"2026-04-29 10:15:00\",\n    \"updated_at\": \"2026-04-29 14:30:00\",\n    \"deleted_at\": null,\n    \"progress\": \"50.00\",\n    \"is_completed\": false,\n    \"date_added\": \"2026-04-29\",\n    \"completion_date\": null,\n    \"due_date\": \"2026-12-20\",\n    \"can_complete\": true,\n    \"can_manage\": true,\n    \"goal_milestones\": [\n      {\n        \"id\": 501,\n        \"goal_id\": 205,\n        \"name\": \"Finalize regional targets\",\n        \"is_completed\": true,\n        \"order\": 1,\n        \"created_at\": \"2026-04-29 10:15:00\",\n        \"updated_at\": \"2026-04-05 11:02:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 502,\n        \"goal_id\": 205,\n        \"name\": \"Launch partner campaign\",\n        \"is_completed\": false,\n        \"order\": 2,\n        \"created_at\": \"2026-04-29 10:15:00\",\n        \"updated_at\": \"2026-04-29 14:30:00\",\n        \"deleted_at\": null\n      }\n    ],\n    \"owner\": {\n      \"id\": 15,\n      \"user_id\": 120,\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"user\": {\n        \"id\": 120,\n        \"first_name\": \"Mia\",\n        \"last_name\": \"Black\"\n      }\n    },\n    \"assigner\": {\n      \"id\": 22,\n      \"user_id\": 127,\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n      \"user\": {\n        \"id\": 127,\n        \"first_name\": \"Alex\",\n        \"last_name\": \"Rivera\"\n      }\n    },\n    \"employees\": [\n      {\n        \"id\": 18,\n        \"user_id\": 118,\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/18_1700059591.jpg\",\n        \"user\": {\n          \"id\": 118,\n          \"first_name\": \"Sam\",\n          \"last_name\": \"Chen\"\n        }\n      },\n      {\n        \"id\": 21,\n        \"user_id\": 131,\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/public-assets/people/default-avatar.png\",\n        \"user\": {\n          \"id\": 131,\n          \"first_name\": \"Jordan\",\n          \"last_name\": \"Lee\"\n        }\n      }\n    ]\n  }\n}"},{"id":"4da577ee-f54d-4017-a312-2206eb2f8b4f","name":"Not found exception (404) — employee","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."},{"key":"goal","value":"<integer>","description":"Any goal id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"38eea1c2-bfe1-4a3d-8e70-922591f4826d","name":"Not found exception (404) — goal","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"999999","description":"Non-existent goal id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Goal] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"d91910a1-387d-418e-9d5b-f4fd29ed782c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"<string>\", // (Optional) Type: string. Example: Missing title.\n  \"due_date\": \"<date>\", // (Required) Type: string (date). Example: 2026-12-20.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean. Example: true.\n  \"goal_milestones\": [\n    {\n      \"id\": \"<integer>\", // Type: integer. Example: 501.\n      \"name\": \"<string>\", // Type: string. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: true.\n    }\n  ], // Omit title to trigger validation.\n  \"employees\": [\n    \"<integer>\" // Type: integer. Example: 18.\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The title field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"title\": [\n      \"The title field is required.\"\n    ]\n  }\n}"},{"id":"c932e868-f965-4938-882d-433fce181466","name":"Forbidden (403) — subscription","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-20.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"id\": \"<integer>\", // (Optional) Type: integer. Existing milestone id for this goal when updating. Example: 501.\n      \"name\": \"<string>\", // (Required) Type: string. Max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"id\": \"<integer>\", // Type: integer. Example: 502.\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer. Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner added if missing.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Goals feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"57dc2950-7c93-4933-a5da-bd0546a20403","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Max 255 characters. Example: Quarterly pipeline growth.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 5000 characters. Example: Grow pipeline in key regions before fiscal year end.\n  \"due_date\": \"<date>\", // (Required) Type: string (calendar date). Format YYYY-MM-DD. Example: 2026-12-20.\n  \"has_milestones\": \"<boolean>\", // (Required) Type: boolean (JSON true or false). Example: true.\n  \"goal_milestones\": [\n    {\n      \"id\": \"<integer>\", // (Optional) Type: integer. Existing milestone id for this goal when updating. Example: 501.\n      \"name\": \"<string>\", // (Required) Type: string. Max 255. Example: Finalize regional targets.\n      \"is_completed\": \"<boolean>\" // (Required) Type: boolean. Example: true.\n    },\n    {\n      \"id\": \"<integer>\", // Type: integer. Example: 502.\n      \"name\": \"<string>\", // Type: string. Example: Launch partner campaign.\n      \"is_completed\": \"<boolean>\" // Type: boolean. Example: false.\n    }\n  ], // Type: array. Non-empty when has_milestones is true.\n  \"employees\": [\n    \"<integer>\", // (Required) Type: integer. Example: 18.\n    \"<integer>\" // Type: integer. Example: 21.\n  ] // Type: array of integers. Owner added if missing.\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Employee id the caller cannot update or complete goals for."},{"key":"goal","value":"<integer>","description":"Existing goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5afea33a-7cf3-48b0-b2b8-aab8e0651969","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/goals/:goal","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","goals",":goal"],"variable":[{"key":"employee","value":"<integer>","description":"Valid employee id."},{"key":"goal","value":"<integer>","description":"Valid goal id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"8bec8e6b-9122-4a3a-b1e5-0f8b7d076ba3"}],"id":"b78ddaac-af1f-442d-bc73-73c15ea39a79","_postman_id":"b78ddaac-af1f-442d-bc73-73c15ea39a79","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Employee surveys","item":[{"name":"Get employee survey","id":"0ee9e987-f7a3-4824-a25d-bafc96348441","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","description":"<h3>Get employee survey</h3>\n\n<p>This endpoint returns one employee survey assignment: survey summary, respondent profile fields (anonymized when the survey is anonymous), cycle questions with their selectable answers, and the current per-question answer rows. Authorization follows survey-answer rules (broad read may view completed surveys or in-progress surveys for the assigned employee; personal read is limited to the caller's own assignment).</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employee-surveys",":employeeSurvey"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee survey assignment id (<code>employee_surveys.id</code>, numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employeeSurvey"}]}},"response":[{"id":"3943f749-0090-4846-8347-19aa11f057a1","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Employee survey id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"survey\": {\n      \"id\": 42,\n      \"title\": \"Quarterly engagement pulse\",\n      \"description\": \"Short pulse to track engagement and priorities each quarter.\",\n      \"start_date\": \"2026-01-15\",\n      \"is_active\": true,\n      \"is_anonymous\": false,\n      \"finalized_at\": null,\n      \"completion_time\": \"0.0\",\n      \"estimated_completion_time\": \"8.25\",\n      \"end_date\": \"2026-02-14\",\n      \"is_open\": true\n    },\n    \"employee_data\": {\n      \"id\": 15,\n      \"first_name\": \"Mia\",\n      \"last_name\": \"Black\",\n      \"email\": \"mia.black@example.com\",\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"job_title_name\": \"Engineering Manager\"\n    },\n    \"questions\": [\n      {\n        \"id\": 9001,\n        \"survey_cycle_id\": 120,\n        \"body\": \"How satisfied are you with team collaboration this cycle?\",\n        \"survey_question_type_id\": 1,\n        \"is_required\": true,\n        \"is_active\": true,\n        \"sort\": \"1\",\n        \"created_at\": \"2026-01-10 09:35:00\",\n        \"updated_at\": \"2026-01-10 09:35:00\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 1,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_active\": true,\n          \"created_at\": \"2025-01-01 00:00:00\",\n          \"updated_at\": \"2025-01-01 00:00:00\",\n          \"deleted_at\": null\n        },\n        \"answers\": [\n          {\n            \"id\": 50001,\n            \"survey_cycle_question_id\": 9001,\n            \"body\": \"Very satisfied\",\n            \"meta\": null,\n            \"sort\": \"a\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 50002,\n            \"survey_cycle_question_id\": 9001,\n            \"body\": \"Neutral\",\n            \"meta\": null,\n            \"sort\": \"b\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 50003,\n            \"survey_cycle_question_id\": 9001,\n            \"body\": \"Dissatisfied\",\n            \"meta\": null,\n            \"sort\": \"c\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null\n          }\n        ]\n      },\n      {\n        \"id\": 9002,\n        \"survey_cycle_id\": 120,\n        \"body\": \"What should we improve next?\",\n        \"survey_question_type_id\": 4,\n        \"is_required\": false,\n        \"is_active\": true,\n        \"sort\": \"2\",\n        \"created_at\": \"2026-01-10 09:35:00\",\n        \"updated_at\": \"2026-01-10 09:35:00\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 4,\n          \"slug\": \"text-field\",\n          \"name\": \"Short text\",\n          \"is_active\": true,\n          \"created_at\": \"2025-01-01 00:00:00\",\n          \"updated_at\": \"2025-01-01 00:00:00\",\n          \"deleted_at\": null\n        },\n        \"answers\": []\n      }\n    ],\n    \"answers\": [\n      {\n        \"id\": 70001,\n        \"employee_survey_id\": 3001,\n        \"survey_cycle_question_id\": 9001,\n        \"survey_cycle_answer_id\": null,\n        \"free_text_answer\": null,\n        \"question_body\": \"How satisfied are you with team collaboration this cycle?\",\n        \"answer_body\": null,\n        \"created_at\": \"2026-01-12 08:00:00\",\n        \"updated_at\": \"2026-01-12 08:00:00\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 70002,\n        \"employee_survey_id\": 3001,\n        \"survey_cycle_question_id\": 9002,\n        \"survey_cycle_answer_id\": null,\n        \"free_text_answer\": null,\n        \"question_body\": \"What should we improve next?\",\n        \"answer_body\": null,\n        \"created_at\": \"2026-01-12 08:00:00\",\n        \"updated_at\": \"2026-01-12 08:00:00\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"0d83ef1c-9f84-4acf-9414-55d9e707ecb9","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"999999","description":"Non-existent employee survey id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\EmployeeSurvey] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"0e747c1e-5358-4c4b-9845-b4a84f518d32","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Employee survey id the caller cannot view."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"b8e4a44f-2e29-4646-8872-2e06ef728c1f","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Employee survey id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"0ee9e987-f7a3-4824-a25d-bafc96348441"},{"name":"Submit employee survey","id":"ce23966f-1cdc-4ba3-bd83-6a10faafa152","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": \"<integer>\", // (Required per element) Type: integer. Survey cycle question id (`survey_cycle_questions.id`). Example: 9001.\n      \"answer_id\": \"<integer>\", // (Conditional) Type: integer or null. `survey_cycle_answers.id` for the selected option when the question type uses predefined choices. Example: 50001.\n      \"text\": \"<string>\" // (Conditional) Type: string or null. Free text for text-field / long-text-field types. Max length enforced per question type. Example: Faster feedback loops.\n    },\n    {\n      \"question_id\": \"<integer>\", // Type: integer. Example: 9002.\n      \"answer_id\": null, // Type: null when the question has no choice row.\n      \"text\": \"<string>\" // Type: string or null. Example: More design reviews.\n    }\n  ] // (Required) Type: array. Must include every required cycle question. May be sent as a JSON array or (for compatibility) a JSON string that decodes to the same array.\n}\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","description":"<h3>Submit employee survey</h3>\n\n<p>This endpoint finalizes the employee survey for the assignment in the path. The authenticated employee must be the respondent on the assignment, and the caller must hold personal write access on employee surveys. The tenant Surveys subscription feature must be enabled. The survey cycle must be open, and the assignment must not already be finalized. A 403 response is also returned when the cycle is not open for submission or the assignment was already submitted (see saved examples and messages).</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>answers</td>\n<td>array or JSON string</td>\n<td>yes</td>\n<td>Answers to save. Send a JSON array of objects. Each object must include question_id (survey cycle question id). Include answer_id when the question uses cycle answer options; use null when not applicable. Include text for free-text types; omit or set null when not used. Every required cycle question must appear once.</td>\n<td>e.g. <code>[{\"question_id\":9001,\"answer_id\":50001,\"text\":null},{\"question_id\":9002,\"answer_id\":null,\"text\":\"More design reviews.\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employee-surveys",":employeeSurvey"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee survey assignment id (<code>employee_surveys.id</code>, numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employeeSurvey"}]}},"response":[{"id":"43b7ff04-e032-40c7-a036-ffcbe15e71f7","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": 9001,\n      \"answer_id\": 50001,\n      \"text\": null\n    },\n    {\n      \"question_id\": 9002,\n      \"answer_id\": null,\n      \"text\": \"More design reviews.\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Employee survey id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"survey\": {\n      \"id\": 42,\n      \"title\": \"Quarterly engagement pulse\",\n      \"description\": \"Short pulse to track engagement and priorities each quarter.\",\n      \"start_date\": \"2026-01-15\",\n      \"is_active\": true,\n      \"is_anonymous\": false,\n      \"finalized_at\": \"2026-05-04 14:22:18\",\n      \"completion_time\": \"0.0\",\n      \"estimated_completion_time\": \"8.25\",\n      \"end_date\": \"2026-02-14\",\n      \"is_open\": true\n    },\n    \"employee_data\": {\n      \"id\": 15,\n      \"first_name\": \"Mia\",\n      \"last_name\": \"Black\",\n      \"email\": \"mia.black@example.com\",\n      \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/testdomain1/avatars/15_1700059591.jpg\",\n      \"job_title_name\": \"Engineering Manager\"\n    },\n    \"questions\": [\n      {\n        \"id\": 9001,\n        \"survey_cycle_id\": 120,\n        \"body\": \"How satisfied are you with team collaboration this cycle?\",\n        \"survey_question_type_id\": 1,\n        \"is_required\": true,\n        \"is_active\": true,\n        \"sort\": \"1\",\n        \"created_at\": \"2026-01-10 09:35:00\",\n        \"updated_at\": \"2026-01-10 09:35:00\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 1,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_active\": true,\n          \"created_at\": \"2025-01-01 00:00:00\",\n          \"updated_at\": \"2025-01-01 00:00:00\",\n          \"deleted_at\": null\n        },\n        \"answers\": [\n          {\n            \"id\": 50001,\n            \"survey_cycle_question_id\": 9001,\n            \"body\": \"Very satisfied\",\n            \"meta\": null,\n            \"sort\": \"a\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 50002,\n            \"survey_cycle_question_id\": 9001,\n            \"body\": \"Neutral\",\n            \"meta\": null,\n            \"sort\": \"b\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 50003,\n            \"survey_cycle_question_id\": 9001,\n            \"body\": \"Dissatisfied\",\n            \"meta\": null,\n            \"sort\": \"c\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null\n          }\n        ]\n      },\n      {\n        \"id\": 9002,\n        \"survey_cycle_id\": 120,\n        \"body\": \"What should we improve next?\",\n        \"survey_question_type_id\": 4,\n        \"is_required\": false,\n        \"is_active\": true,\n        \"sort\": \"2\",\n        \"created_at\": \"2026-01-10 09:35:00\",\n        \"updated_at\": \"2026-01-10 09:35:00\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 4,\n          \"slug\": \"text-field\",\n          \"name\": \"Short text\",\n          \"is_active\": true,\n          \"created_at\": \"2025-01-01 00:00:00\",\n          \"updated_at\": \"2025-01-01 00:00:00\",\n          \"deleted_at\": null\n        },\n        \"answers\": []\n      }\n    ],\n    \"answers\": [\n      {\n        \"id\": 70001,\n        \"employee_survey_id\": 3001,\n        \"survey_cycle_question_id\": 9001,\n        \"survey_cycle_answer_id\": 50001,\n        \"free_text_answer\": null,\n        \"question_body\": \"How satisfied are you with team collaboration this cycle?\",\n        \"answer_body\": \"Very satisfied\",\n        \"created_at\": \"2026-01-12 08:00:00\",\n        \"updated_at\": \"2026-05-04 14:22:18\",\n        \"deleted_at\": null\n      },\n      {\n        \"id\": 70002,\n        \"employee_survey_id\": 3001,\n        \"survey_cycle_question_id\": 9002,\n        \"survey_cycle_answer_id\": null,\n        \"free_text_answer\": \"More design reviews.\",\n        \"question_body\": \"What should we improve next?\",\n        \"answer_body\": null,\n        \"created_at\": \"2026-01-12 08:00:00\",\n        \"updated_at\": \"2026-05-04 14:22:18\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"08d4331d-5abe-40f3-9054-fd2187bfca91","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": []\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Open employee survey id."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The answers value is invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"answers\": [\n      \"The answers value is invalid.\"\n    ]\n  }\n}"},{"id":"5b35f228-ba77-49a3-b07d-337b786f07a8","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": 9001,\n      \"answer_id\": 50001\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Assignment the caller cannot update."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"4055fadd-01ba-42d3-992f-4c9102b22b7b","name":"Forbidden (403) — subscription","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": 9001,\n      \"answer_id\": 50001\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Employee survey id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Surveys enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"2880d7dd-40f4-44f7-a76e-5ff1b330c606","name":"Forbidden (403) — survey not open for submission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": 9001,\n      \"answer_id\": 50001\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Open assignment on a closed or inactive cycle."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot submit a survey that is not currently open and active.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"40971c6e-11b5-46aa-97cb-7f3fb68c330a","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": 9001,\n      \"answer_id\": 50001\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"999999","description":"Non-existent employee survey id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\EmployeeSurvey] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"445eaeca-b8c7-400b-afe3-28758f27f2f2","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"answers\": [\n    {\n      \"question_id\": 9001,\n      \"answer_id\": 50001\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employee-surveys/:employeeSurvey","host":["https://pubapi.talenthr.io/v1"],"path":["employee-surveys",":employeeSurvey"],"variable":[{"key":"employeeSurvey","value":"<integer>","description":"(integer) Employee survey id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"ce23966f-1cdc-4ba3-bd83-6a10faafa152"},{"name":"List employee surveys for an employee","id":"34c447b6-29f2-4a56-afd2-c85826cc1471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","description":"<h3>List employee surveys for an employee</h3>\n\n<p>This endpoint returns every survey assignment for the employee in the path as a single array: in-progress items (published survey, active cycle, cycle window including today, not yet finalized) appear first, followed by completed items (finalized). Requires permission to list survey answers for that employee, and the tenant subscription must include the Surveys feature.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","employee-surveys"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Required. Employee id whose survey assignments are listed (<code>employees.id</code>, numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"50f8dce3-5eee-466c-b885-5a61a1e6422f","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employee-surveys"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"title\": \"Quarterly engagement pulse\",\n      \"id\": 3001,\n      \"from_id\": 15,\n      \"finalized_at\": null,\n      \"is_active\": true,\n      \"survey_cycle_id\": 120,\n      \"start_date\": \"2026-04-01\",\n      \"end_date\": \"2026-04-30\",\n      \"survey_id\": 42,\n      \"cycle\": \"01 April 2026 - 30 April 2026\",\n      \"name\": \"Mia Black\",\n      \"is_open\": true,\n      \"completion_time\": null\n    },\n    {\n      \"title\": \"Quarterly engagement pulse\",\n      \"id\": 2988,\n      \"from_id\": 15,\n      \"finalized_at\": \"2026-02-10 16:45:00\",\n      \"is_active\": true,\n      \"survey_cycle_id\": 118,\n      \"start_date\": \"2026-01-15\",\n      \"end_date\": \"2026-02-14\",\n      \"survey_id\": 42,\n      \"cycle\": \"15 January 2026 - 14 February 2026\",\n      \"name\": \"Mia Black\",\n      \"is_open\": false,\n      \"expired\": true,\n      \"completion_time\": \"15.0\"\n    }\n  ]\n}"},{"id":"29c64c80-8c67-44c8-be63-70861901fd66","name":"OK (200) — empty list","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employee-surveys"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id with no matching assignments."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": []\n}"},{"id":"6207bfe7-f4e5-4a75-83c9-39bd19f2d42d","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employee-surveys"],"variable":[{"key":"employee","value":"999999","description":"Non-existent employee id."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"301d9280-90bb-404a-a1b0-7ff366bd028b","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employee-surveys"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id the caller cannot list survey answers for."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"932ac640-7198-4b9b-a534-dff218af8649","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employee-surveys"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Valid employee id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Surveys enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"6346a3c9-c412-4a33-a0c1-2abc00ef2512","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/employee-surveys","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","employee-surveys"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"34c447b6-29f2-4a56-afd2-c85826cc1471"}],"id":"d34b88ca-d1ae-4d2c-8a34-8a0d7fb6f6db","_postman_id":"d34b88ca-d1ae-4d2c-8a34-8a0d7fb6f6db","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Surveys","item":[{"name":"Get survey defaults","id":"aa407634-4b4f-40b0-8721-ec74cace4f7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/values","description":"<p>This endpoint returns reference data for building or editing surveys: active survey statuses, allowed recurrence and duration string options (from product defaults), and active survey question types.  Requires the same permission as listing surveys.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys","values"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"22fa81bb-cecc-448c-b8c0-67304fc7828c","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/values"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"survey_statuses\": [\n      {\n        \"id\": 1,\n        \"slug\": \"draft\",\n        \"name\": \"Draft\",\n        \"is_active\": 1\n      },\n      {\n        \"id\": 2,\n        \"slug\": \"published\",\n        \"name\": \"Published\",\n        \"is_active\": 1\n      },\n      {\n        \"id\": 3,\n        \"slug\": \"archived\",\n        \"name\": \"Archived\",\n        \"is_active\": 1\n      }\n    ],\n    \"recurrence\": [\n      \"1 year\",\n      \"6 months\",\n      \"3 months\",\n      \"1 month\"\n    ],\n    \"duration\": [\n      \"3 days\",\n      \"5 days\",\n      \"15 days\",\n      \"1 month\"\n    ],\n    \"survey_question_types\": [\n      {\n        \"id\": 1,\n        \"slug\": \"single-choice\",\n        \"name\": \"Single choice\",\n        \"is_active\": true\n      },\n      {\n        \"id\": 2,\n        \"slug\": \"multiple-choice\",\n        \"name\": \"Multiple choice\",\n        \"is_active\": true\n      },\n      {\n        \"id\": 3,\n        \"slug\": \"rating\",\n        \"name\": \"Rating\",\n        \"is_active\": true\n      },\n      {\n        \"id\": 4,\n        \"slug\": \"text-field\",\n        \"name\": \"Short text\",\n        \"is_active\": true\n      }\n    ]\n  }\n}"},{"id":"9e2fc057-8ffb-41d4-8b12-85161f5ea06e","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/values"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5c7e8ff3-d101-4c86-88e6-778550af8c74","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/values"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"aa407634-4b4f-40b0-8721-ec74cace4f7b"},{"name":"List surveys","id":"6d917f0e-7fee-4809-b0aa-1b079b6342d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys?offset=<integer>&limit=<integer>&sort=<string>&order=<string>&archived=<string>","description":"<p>This endpoint returns a paginated list of surveys for the tenant, including status, audience targeting (survey_required_for when not “all employees”), and computed fields such as whether a cycle is open and timing hints. Requires permission to list surveys.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0. Negative submitted values are clamped to 0.</p>\n","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>(integer) Optional. Rows per page. Default when omitted: 10. Minimum: 1; maximum: 100 inclusive. Values outside 1–100 fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"<p>(string) Optional. Sort field. Allowed: created_at, title, updated_at, draft, published. Other values fail validation (HTTP 422). When omitted, the API orders by updated_at (newest first), then created_at.</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort direction. Allowed: asc, desc. Other values fail validation (HTTP 422). Typically used with sort.</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. Filter by archived status: 0 = non-archived surveys (default), 1 = archived only. Accepts the literals 0 or 1 as integer or string. Omitted, null, or empty/whitespace is treated as 0.</p>\n","type":"text/plain"},"key":"archived","value":"<string>"}],"variable":[]}},"response":[{"id":"1f0555ee-7620-4e9f-841c-300743637afe","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys?offset=<integer>&limit=<integer>&sort=<string>&order=<string>&archived=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["surveys"],"query":[{"key":"offset","value":"<integer>"},{"key":"limit","value":"<integer>"},{"key":"sort","value":"<string>"},{"key":"order","value":"<string>"},{"key":"archived","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 42,\n        \"survey_status_id\": 2,\n        \"title\": \"Quarterly engagement pulse\",\n        \"description\": \"Short pulse to track engagement and priorities each quarter.\",\n        \"start_date\": \"2026-01-15\",\n        \"duration\": \"15 days\",\n        \"recurrence\": \"3 months\",\n        \"is_active\": true,\n        \"is_anonymous\": false,\n        \"required_for_all\": false,\n        \"survey_questions_description\": null,\n        \"created_at\": \"2026-01-10 09:30:00\",\n        \"updated_at\": \"2026-04-28 16:45:00\",\n        \"deleted_at\": null,\n        \"survey_status\": {\n          \"id\": 2,\n          \"slug\": \"published\",\n          \"name\": \"Published\",\n          \"is_active\": 1\n        },\n        \"survey_required_for\": [\n          {\n            \"id\": 12,\n            \"survey_id\": 42,\n            \"object_id\": 15,\n            \"required_for_type\": \"employee\",\n            \"created_at\": \"2026-01-10 09:35:00\",\n            \"updated_at\": \"2026-01-10 09:35:00\",\n            \"deleted_at\": null,\n            \"object_name\": \"Sam Chen\"\n          }\n        ],\n        \"end_date\": \"2026-02-14\",\n        \"is_open\": false,\n        \"responses_count\": 48,\n        \"estimated_completion_time\": \"8.25\",\n        \"average_completion_time\": \"12.50\",\n        \"next_cycle_start_date\": \"2026-07-15\",\n        \"next_cycle_end_date\": \"2026-07-29\"\n      }\n    ]\n  }\n}"},{"id":"d4882259-1189-4bce-946b-1b57904d6f16","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys?limit=150","host":["https://pubapi.talenthr.io/v1"],"path":["surveys"],"query":[{"key":"limit","value":"150"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The limit must not be greater than 100.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"limit\": [\n      \"The limit must not be greater than 100.\"\n    ]\n  }\n}"},{"id":"5a8dc9f8-4e9a-4ec8-9d7e-69ebf0e2d5d2","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"234d628d-8fb4-4cc2-aef6-4f49fccdb5a7","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"6d917f0e-7fee-4809-b0aa-1b079b6342d0"},{"name":"Get survey","id":"e29c9cf4-1c8f-4567-a75f-46b9e89239be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey","description":"<p>This endpoint returns one survey by id, including its status, audience targeting, questions, and any predefined answer options for applicable question types.</p>\n<p>Requires permission to view this survey.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"af54d8bf-f6ab-4c78-a7d7-1f54d35f7d51","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 42,\n    \"survey_status_id\": 2,\n    \"title\": \"Quarterly engagement pulse\",\n    \"description\": \"Short pulse to track engagement and priorities each quarter.\",\n    \"start_date\": \"2026-01-15\",\n    \"duration\": \"15 days\",\n    \"recurrence\": \"3 months\",\n    \"is_active\": true,\n    \"is_anonymous\": false,\n    \"required_for_all\": false,\n    \"survey_questions_description\": \"Please answer honestly; responses are aggregated by team.\",\n    \"created_at\": \"2026-01-10 09:30:00\",\n    \"updated_at\": \"2026-04-28 16:45:00\",\n    \"deleted_at\": null,\n    \"survey_status\": {\n      \"id\": 2,\n      \"slug\": \"published\",\n      \"name\": \"Published\",\n      \"is_active\": 1\n    },\n    \"survey_required_for\": [\n      {\n        \"id\": 12,\n        \"survey_id\": 42,\n        \"object_id\": 15,\n        \"required_for_type\": \"employee\",\n        \"created_at\": \"2026-01-10 09:35:00\",\n        \"updated_at\": \"2026-01-10 09:35:00\",\n        \"deleted_at\": null,\n        \"object_name\": \"Sam Chen\"\n      }\n    ],\n    \"survey_questions\": [\n      {\n        \"id\": 901,\n        \"body\": \"How satisfied are you with team communication?\",\n        \"is_required\": true,\n        \"survey_id\": 42,\n        \"survey_question_type_id\": 1,\n        \"sort\": \"1\",\n        \"created_at\": \"2026-01-10 09:36:00\",\n        \"updated_at\": \"2026-01-10 09:36:00\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 1,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_active\": true\n        },\n        \"survey_answers\": [\n          {\n            \"id\": 1001,\n            \"survey_question_id\": 901,\n            \"sort\": \"1\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Very satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-01-10 09:36:00\",\n            \"updated_at\": \"2026-01-10 09:36:00\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 1002,\n            \"survey_question_id\": 901,\n            \"sort\": \"2\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Somewhat satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-01-10 09:36:00\",\n            \"updated_at\": \"2026-01-10 09:36:00\",\n            \"deleted_at\": null\n          }\n        ]\n      },\n      {\n        \"id\": 902,\n        \"body\": \"What should we improve next quarter?\",\n        \"is_required\": false,\n        \"survey_id\": 42,\n        \"survey_question_type_id\": 4,\n        \"sort\": \"2\",\n        \"created_at\": \"2026-01-10 09:36:10\",\n        \"updated_at\": \"2026-01-10 09:36:10\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 4,\n          \"slug\": \"text-field\",\n          \"name\": \"Short text\",\n          \"is_active\": true\n        },\n        \"survey_answers\": []\n      }\n    ],\n    \"end_date\": \"2026-02-14\",\n    \"is_open\": false,\n    \"responses_count\": 48,\n    \"estimated_completion_time\": \"8.25\",\n    \"average_completion_time\": \"12.50\"\n  }\n}"},{"id":"15720019-675d-46a7-8d78-f0c85c644e9d","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"151e31f3-7d58-4e91-a1a5-648e05a2aae8","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"61156f2b-e9c8-4aed-8d5e-5b551f8175f5","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"e29c9cf4-1c8f-4567-a75f-46b9e89239be"},{"name":"Create survey","id":"c909d9a0-8c67-46d9-ae9e-b2690e39ff46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Survey title; max 255 characters. Example: Q2 engagement draft.\n  \"description\": \"<string>\", // (Optional) Type: string. Max 5000 characters. Example: Internal draft before publishing.\n  \"survey_questions_description\": \"<string>\", // (Optional) Type: string. Intro text shown above questions when published. Max 5000.\n  \"survey_status\": \"<string>\", // (Required) Type: string. Must be an active survey status slug (not archived). Example: draft.\n  \"start_date\": \"<date>\", // (Required) Type: string. Tenant calendar date; format matches domain date validation (typically YYYY-MM-DD).\n  \"duration\": \"<string>\", // (Required) Type: string. Must be one of: 3 days | 5 days | 15 days | 1 month.\n  \"recurrence\": \"<string>\", // (Optional) Type: string or null. One of: 1 year | 6 months | 3 months | 1 month, or null for a one-off survey.\n  \"is_anonymous\": \"<boolean>\", // (Optional) Type: boolean (JSON true or false). Example: false.\n  \"required_for_all\": \"<boolean>\", // (Conditional) Type: boolean. Example: true for all employees; use false when sending survey_required_for below.\n  \"survey_required_for\": { // (Conditional) Omit when required_for_all is true. Type: object with exactly these keys; each value is an array of integer ids.\n    \"division\": [], // Example: [] or [3, 4]\n    \"department\": [], // Example: []\n    \"location\": [], // Example: []\n    \"job_title\": [], // Example: []\n    \"emp_state\": [], // Example: [] — employment_status custom field ids\n    \"employee\": [\"<integer>\"] // Example: [15, 18] — at least one of the six arrays must be non-empty\n  }, // Full example payload: {\"division\":[],\"department\":[],\"location\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[15]}\n  \"survey_questions\": [ // (Required) Type: array. Non-empty.\n    {\n      \"body\": \"<string>\", // (Required per item) Max 1000 characters. Example: How satisfied are you with team communication?\n      \"is_required\": \"<boolean>\", // (Required per item) Example: true\n      \"survey_question_type_id\": \"<integer>\", // (Required) Valid id from Get survey defaults. Example: 1 (single-choice).\n      \"order\": \"<integer>\", // (Required) Distinct positive integers. Example: 1\n      \"answers\": [ // Required for single/multiple choice; omit for plain text types.\n        { \"body\": \"<string>\" }, // Example: Very satisfied\n        { \"body\": \"<string>\" } // Example: Somewhat satisfied\n      ]\n    }\n  ] // Full example: [{\"body\":\"How satisfied are you?\",\"is_required\":true,\"survey_question_type_id\":1,\"order\":1,\"answers\":[{\"body\":\"Very satisfied\"},{\"body\":\"Somewhat\"}]}]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys","description":"<h3>Create a survey</h3>\n\n<p>Creates a new survey for the tenant. The survey starts on the specified start date, runs for the specified duration, and—if a recurrence is provided—repeats at that interval. The survey can target all employees or a defined audience, and responses can be anonymous.</p>\n<p>Requires permission to create a survey and a subscription that includes the Surveys feature.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>title</td>\n<td>string</td>\n<td>yes</td>\n<td>Survey title. Max 255 characters.</td>\n<td>e.g. <code>Q2 engagement draft</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>no</td>\n<td>Longer survey description. Max 5000 characters.</td>\n<td>e.g. <code>Internal draft before publishing.</code></td>\n</tr>\n<tr>\n<td>survey_questions_description</td>\n<td>string</td>\n<td>no</td>\n<td>Intro text shown above questions when published. Max 5000 characters.</td>\n<td>e.g. <code>Please answer all questions.</code></td>\n</tr>\n<tr>\n<td>survey_status</td>\n<td>string</td>\n<td>yes</td>\n<td>Target status slug. Active non-archived status from <code>survey_statuses</code> (see survey reference / defaults).</td>\n<td>e.g. <code>draft</code></td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>string (date)</td>\n<td>yes</td>\n<td>Tenant calendar date for scheduling. Domain date format: <code>YYYY-MM-DD</code>.</td>\n<td>e.g. <code>2026-04-01</code></td>\n</tr>\n<tr>\n<td>duration</td>\n<td>string</td>\n<td>yes</td>\n<td>Cycle length. Must be one of: <code>3 days</code>, <code>5 days</code>, <code>15 days</code>, <code>1 month</code>.</td>\n<td>e.g. <code>15 days</code></td>\n</tr>\n<tr>\n<td>recurrence</td>\n<td>string or null</td>\n<td>no</td>\n<td>Repeat pattern. One of: <code>1 year</code>, <code>6 months</code>, <code>3 months</code>, <code>1 month</code>, or <code>null</code> for a one-off survey.</td>\n<td>e.g. <code>null</code></td>\n</tr>\n<tr>\n<td>is_anonymous</td>\n<td>boolean</td>\n<td>no</td>\n<td>Whether responses are anonymous.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>conditional</td>\n<td>When <code>true</code>, the survey targets all employees. When <code>false</code>, send <code>survey_required_for</code> with scoped audiences.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>survey_required_for</td>\n<td>object</td>\n<td>conditional</td>\n<td>Required when <code>required_for_all</code> is <code>false</code>. Object must include exactly these keys: <code>division</code>, <code>department</code>, <code>location</code>, <code>job_title</code>, <code>emp_state</code> (employment status custom field ids), <code>employee</code>; each value is an array of integer ids. At least one array must be non-empty; ids must exist in the tenant.</td>\n<td>e.g. <code>{\"division\":[],\"department\":[],\"location\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[15]}</code></td>\n</tr>\n<tr>\n<td>survey_questions</td>\n<td>array</td>\n<td>yes</td>\n<td>Template questions for the survey. Required; must be a non-empty array. Each element: <code>body</code> (string, required, max 1000), <code>is_required</code> (boolean), <code>survey_question_type_id</code> (integer from survey defaults), <code>order</code> (distinct positive integer). For single-choice and multiple-choice types, include an <code>answers</code> array of objects shaped as <code>{\"body\":\"...\"}</code>.</td>\n<td>e.g. <code>[{\"body\":\"How satisfied are you with team communication?\",\"is_required\":true,\"survey_question_type_id\":1,\"order\":1,\"answers\":[{\"body\":\"Very satisfied\"},{\"body\":\"Somewhat satisfied\"}]}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Use <strong>Get survey defaults</strong> for allowed statuses, durations, recurrence labels, and question type ids. Path parameters: none.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"cfb37223-7f6b-4b55-9601-3a6581c578a2","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Q2 engagement draft\",\n  \"description\": \"Internal draft before publishing.\",\n  \"survey_questions_description\": null,\n  \"survey_status\": \"draft\",\n  \"required_for_all\": false,\n  \"is_anonymous\": false,\n  \"survey_required_for\": {\n    \"division\": [],\n    \"department\": [],\n    \"location\": [],\n    \"job_title\": [],\n    \"emp_state\": [],\n    \"employee\": [15]\n  },\n  \"survey_questions\": [\n    {\n      \"body\": \"How satisfied are you with team communication?\",\n      \"is_required\": true,\n      \"survey_question_type_id\": 1,\n      \"order\": 1,\n      \"answers\": [\n        { \"body\": \"Very satisfied\" },\n        { \"body\": \"Somewhat satisfied\" }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 88,\n    \"survey_status_id\": 1,\n    \"title\": \"Q2 engagement draft\",\n    \"description\": \"Internal draft before publishing.\",\n    \"start_date\": null,\n    \"duration\": null,\n    \"recurrence\": null,\n    \"is_active\": false,\n    \"is_anonymous\": false,\n    \"required_for_all\": false,\n    \"survey_questions_description\": null,\n    \"created_at\": \"2026-04-29 11:00:00\",\n    \"updated_at\": \"2026-04-29 11:00:00\",\n    \"deleted_at\": null,\n    \"survey_status\": {\n      \"id\": 1,\n      \"slug\": \"draft\",\n      \"name\": \"Draft\",\n      \"is_active\": 1\n    },\n    \"survey_required_for\": [\n      {\n        \"id\": 40,\n        \"survey_id\": 88,\n        \"object_id\": 15,\n        \"required_for_type\": \"employee\",\n        \"created_at\": \"2026-04-29 11:00:05\",\n        \"updated_at\": \"2026-04-29 11:00:05\",\n        \"deleted_at\": null,\n        \"object_name\": \"Sam Chen\"\n      }\n    ],\n    \"survey_questions\": [\n      {\n        \"id\": 901,\n        \"body\": \"How satisfied are you with team communication?\",\n        \"is_active\": true,\n        \"is_required\": true,\n        \"survey_id\": 88,\n        \"survey_question_type_id\": 1,\n        \"sort\": \"1\",\n        \"created_at\": \"2026-04-29 11:00:06\",\n        \"updated_at\": \"2026-04-29 11:00:06\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 1,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_active\": true\n        },\n        \"survey_answers\": [\n          {\n            \"id\": 1001,\n            \"survey_question_id\": 901,\n            \"sort\": \"1\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Very satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-04-29 11:00:06\",\n            \"updated_at\": \"2026-04-29 11:00:06\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 1002,\n            \"survey_question_id\": 901,\n            \"sort\": \"2\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Somewhat satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-04-29 11:00:06\",\n            \"updated_at\": \"2026-04-29 11:00:06\",\n            \"deleted_at\": null\n          }\n        ]\n      }\n    ],\n    \"end_date\": null,\n    \"is_open\": false,\n    \"responses_count\": 0,\n    \"estimated_completion_time\": \"2.15\",\n    \"average_completion_time\": null\n  }\n}"},{"id":"7c4ee95a-5b1a-4021-aa00-6749df29476a","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The title field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"title\": [\n      \"The title field is required.\"\n    ]\n  }\n}"},{"id":"f4d86882-c858-4054-9a62-027342c71c01","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"0d6e34d1-8f68-427a-b575-cea97b838471","name":"Forbidden (403) — subscription","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Surveys feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"5eb890ae-cb4a-4815-bfd0-7aeb6306c933","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c909d9a0-8c67-46d9-ae9e-b2690e39ff46"},{"name":"Update survey","id":"99c1dce6-bfc5-4605-b28a-cd8427ddfc58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\", // (Required) Type: string. Survey title; max 255 characters. Example: Q2 engagement draft (revised).\n  \"description\": \"<string>\", // (Optional) Type: string. Max 5000 characters.\n  \"survey_questions_description\": \"<string>\", // (Optional) Type: string. Max 5000.\n  \"survey_status\": \"<string>\", // (Required) Type: string. Active survey status slug (not archived). Example: draft.\n  \"start_date\": \"<date>\", // (Conditional) Type: string. Domain date format YYYY-MM-DD. Stricter when survey has cycles or published.\n  \"duration\": \"<string>\", // (Conditional) Type: string. One of: 3 days | 5 days | 15 days | 1 month.\n  \"recurrence\": \"<string>\", // (Optional) Type: string or null. Allowed recurrence strings or null; cannot clear recurrence once set on an existing survey.\n  \"is_anonymous\": \"<boolean>\", // (Optional) Type: boolean (JSON true or false).\n  \"required_for_all\": \"<boolean>\", // (Conditional) Type: boolean. Example: true for all employees; use false when sending survey_required_for below.\n  \"survey_required_for\": { // (Conditional) Omit when required_for_all is true. Same shape as Create survey: exactly these keys; each value is an array of integer ids.\n    \"division\": [], // Example: [] or [3, 4]\n    \"department\": [], // Example: []\n    \"location\": [], // Example: []\n    \"job_title\": [], // Example: []\n    \"emp_state\": [], // Example: [] — employment_status custom field ids\n    \"employee\": [\"<integer>\"] // Example: [15, 18] — at least one of the six arrays must be non-empty\n  }, // Full example: {\"division\":[],\"department\":[],\"location\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[15]}\n  \"survey_questions\": [ // Full replacement list: include question id to update an existing row (from Get survey); omit id or null → new question; any existing question not listed here by id is deleted.\n    {\n      \"id\": \"<integer>\", // (Optional) Existing survey question id to update; omit or null → new question.\n      \"body\": \"<string>\", // (Required per item) Max 1000 characters. Example: How satisfied are you with team communication?\n      \"is_required\": \"<boolean>\", // (Required per item) Example: true\n      \"survey_question_type_id\": \"<integer>\", // (Required) Valid id from Get survey defaults. Example: 1 (single-choice).\n      \"order\": \"<integer>\", // (Required) Distinct positive integers. Example: 1\n      \"answers\": [ // Required for single/multiple choice; omit for plain text. Include answer id to update an existing option; omit id or null → new answer; any existing answer not listed here by id is deleted.\n        { \"id\": \"<integer>\", \"body\": \"<string>\" }, // Existing answer id optional; omit or null → new answer row\n        { \"body\": \"<string>\" } // Example: Somewhat satisfied\n      ]\n    }\n  ] // Full example: [{\"id\":901,\"body\":\"How satisfied are you?\",\"is_required\":true,\"survey_question_type_id\":1,\"order\":1,\"answers\":[{\"id\":1001,\"body\":\"Very satisfied\"},{\"body\":\"Somewhat\"}]}]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/:survey","description":"<h3>Update a survey</h3>\n\n<p>Updates an existing survey’s details, schedule, audience, anonymity settings, and questions.</p>\n<p>Not allowed while the survey is active and a cycle is currently open (HTTP 403).</p>\n<p>Requires permission to update this survey and a subscription that includes the Surveys feature.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>title</td>\n<td>string</td>\n<td>yes</td>\n<td>Survey title. Max 255 characters.</td>\n<td>e.g. <code>Q2 engagement draft (revised)</code></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>no</td>\n<td>Longer survey description. Max 5000 characters.</td>\n<td>e.g. <code>Updated copy before the next publish.</code></td>\n</tr>\n<tr>\n<td>survey_questions_description</td>\n<td>string</td>\n<td>no</td>\n<td>Intro text shown above questions for respondents. Max 5000 characters.</td>\n<td>e.g. <code>Please answer honestly; responses are aggregated by team.</code></td>\n</tr>\n<tr>\n<td>survey_status</td>\n<td>string</td>\n<td>yes</td>\n<td>Target status slug. Must be an active non-archived value from <code>survey_statuses</code> (see <strong>Get survey defaults</strong>).</td>\n<td>e.g. <code>draft</code></td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>string (date)</td>\n<td>yes</td>\n<td>Schedule anchor. Domain date format: <code>YYYY-MM-DD</code>.</td>\n<td>e.g. <code>2026-04-01</code></td>\n</tr>\n<tr>\n<td>duration</td>\n<td>string</td>\n<td>yes</td>\n<td>Cycle length. Must be one of: <code>3 days</code>, <code>5 days</code>, <code>15 days</code>, <code>1 month</code>.</td>\n<td>e.g. <code>15 days</code></td>\n</tr>\n<tr>\n<td>recurrence</td>\n<td>string or null</td>\n<td>conditional</td>\n<td>Repeat pattern. Allowed strings or <code>null</code> per product defaults; you cannot set <code>null</code> to clear recurrence if recurrence was already set on this survey.</td>\n<td>e.g. <code>3 months</code></td>\n</tr>\n<tr>\n<td>is_anonymous</td>\n<td>boolean</td>\n<td>no</td>\n<td>Whether responses are anonymous.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>conditional</td>\n<td>When <code>true</code>, the survey targets all employees. When <code>false</code>, send <code>survey_required_for</code> with scoped audiences.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>survey_required_for</td>\n<td>object</td>\n<td>conditional</td>\n<td>Required when <code>required_for_all</code> is <code>false</code>. Object must include exactly these keys: <code>division</code>, <code>department</code>, <code>location</code>, <code>job_title</code>, <code>emp_state</code> (employment status custom field ids), <code>employee</code>; each value is an array of integer ids. At least one array must be non-empty; ids must exist in the tenant.</td>\n<td>e.g. <code>{\"division\":[],\"department\":[],\"location\":[],\"job_title\":[],\"emp_state\":[],\"employee\":[15]}</code></td>\n</tr>\n<tr>\n<td>survey_questions</td>\n<td>array</td>\n<td>yes</td>\n<td>Full replacement list of template questions for this survey. Required; must be a non-empty array. For each question, include <code>id</code> to update an existing row (use ids from <strong>Get survey</strong>); omit <code>id</code> or use <code>null</code> to create a new question; any existing question not listed here by its <code>id</code> is removed. Each element: <code>body</code> (string, required, max 1000), <code>is_required</code> (boolean), <code>survey_question_type_id</code> (integer), <code>order</code> (distinct positive integer). For single-choice and multiple-choice types, include an <code>answers</code> array; for each answer, include <code>id</code> to update an existing option, or omit <code>id</code> / use <code>null</code> to add a new one; any existing answer not listed by <code>id</code> is removed.</td>\n<td>e.g. <code>[{\"id\":901,\"body\":\"How satisfied are you?\",\"is_required\":true,\"survey_question_type_id\":1,\"order\":1,\"answers\":[{\"id\":1001,\"body\":\"Very satisfied\"},{\"body\":\"Somewhat\"}]}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Use <strong>Get survey defaults</strong> for allowed statuses, durations, recurrence labels, and question type ids.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"62c26371-6f88-4164-a0a7-b7236f2b8906","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Q2 engagement draft (revised)\",\n  \"description\": \"Internal draft before publishing.\",\n  \"survey_questions_description\": null,\n  \"survey_status\": \"draft\",\n  \"required_for_all\": false,\n  \"is_anonymous\": false,\n  \"survey_required_for\": {\n    \"division\": [],\n    \"department\": [],\n    \"location\": [],\n    \"job_title\": [],\n    \"emp_state\": [],\n    \"employee\": [15]\n  },\n  \"survey_questions\": [\n    {\n      \"id\": 901,\n      \"body\": \"How satisfied are you with team communication?\",\n      \"is_required\": true,\n      \"survey_question_type_id\": 1,\n      \"order\": 1,\n      \"answers\": [\n        { \"id\": 1001, \"body\": \"Very satisfied\" },\n        { \"body\": \"Somewhat satisfied\" }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 88,\n    \"survey_status_id\": 1,\n    \"title\": \"Q2 engagement draft (revised)\",\n    \"description\": \"Internal draft before publishing.\",\n    \"start_date\": null,\n    \"duration\": null,\n    \"recurrence\": null,\n    \"is_active\": false,\n    \"is_anonymous\": false,\n    \"required_for_all\": false,\n    \"survey_questions_description\": null,\n    \"created_at\": \"2026-04-29 11:00:00\",\n    \"updated_at\": \"2026-04-29 14:22:00\",\n    \"deleted_at\": null,\n    \"survey_status\": {\n      \"id\": 1,\n      \"slug\": \"draft\",\n      \"name\": \"Draft\",\n      \"is_active\": 1\n    },\n    \"survey_required_for\": [\n      {\n        \"id\": 40,\n        \"survey_id\": 88,\n        \"object_id\": 15,\n        \"required_for_type\": \"employee\",\n        \"created_at\": \"2026-04-29 11:00:05\",\n        \"updated_at\": \"2026-04-29 11:00:05\",\n        \"deleted_at\": null,\n        \"object_name\": \"Sam Chen\"\n      }\n    ],\n    \"survey_questions\": [\n      {\n        \"id\": 901,\n        \"body\": \"How satisfied are you with team communication?\",\n        \"is_active\": true,\n        \"is_required\": true,\n        \"survey_id\": 88,\n        \"survey_question_type_id\": 1,\n        \"sort\": \"1\",\n        \"created_at\": \"2026-04-29 11:00:06\",\n        \"updated_at\": \"2026-04-29 14:22:01\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 1,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_active\": true\n        },\n        \"survey_answers\": [\n          {\n            \"id\": 1001,\n            \"survey_question_id\": 901,\n            \"sort\": \"1\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Very satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-04-29 11:00:06\",\n            \"updated_at\": \"2026-04-29 14:22:01\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 1002,\n            \"survey_question_id\": 901,\n            \"sort\": \"2\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Somewhat satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-04-29 11:00:06\",\n            \"updated_at\": \"2026-04-29 14:22:01\",\n            \"deleted_at\": null\n          }\n        ]\n      }\n    ],\n    \"end_date\": null,\n    \"is_open\": false,\n    \"responses_count\": 0,\n    \"estimated_completion_time\": \"2.15\",\n    \"average_completion_time\": null\n  }\n}"},{"id":"3197d7c2-baa1-4a4e-87d9-57e10d166767","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The title field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"title\": [\n      \"The title field is required.\"\n    ]\n  }\n}"},{"id":"e3470acf-beac-42d5-8a09-57060734863c","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"e1726d48-3247-49b6-b5e0-2fb506a4cded","name":"Forbidden (403) — subscription","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Surveys feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"5ddbd6df-b9aa-4bde-bf61-e8958eee4736","name":"Forbidden (403) — active survey, open cycle","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Published pulse\",\n  \"survey_status\": \"published\",\n  \"start_date\": \"2026-05-01\",\n  \"duration\": \"15 days\",\n  \"recurrence\": null,\n  \"required_for_all\": true,\n  \"survey_questions\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/42"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot update an active survey with currently open cycle.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"ed7ae0c5-5159-4f05-8b96-1e3c79d9248e","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"6ad28977-2a8f-44fc-9eac-b31a3fe198c1","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"99c1dce6-bfc5-4605-b28a-cd8427ddfc58"},{"name":"Clone survey","id":"bfdd9e8d-782a-4708-946b-aeb149ab81ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/clone","description":"<h3>Clone a survey</h3>\n\n<p>Creates a new draft copy of the survey identified in the path. The copy is inactive until published and retains the same structure as the source survey, including its questions, audience, and schedule settings.</p>\n<p>Requires permission to create a survey.</p>\n<p>There is no request body. Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","clone"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Identifier of the survey to copy.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"622ae380-5ee4-4e41-9fa0-8de26e8984f4","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/clone"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 190,\n    \"survey_status_id\": 1,\n    \"title\": \"Quarterly engagement pulse(copy)\",\n    \"description\": \"Short pulse to track engagement and priorities each quarter.\",\n    \"start_date\": \"2026-01-15\",\n    \"duration\": \"15 days\",\n    \"recurrence\": \"3 months\",\n    \"is_active\": false,\n    \"is_anonymous\": false,\n    \"required_for_all\": false,\n    \"survey_questions_description\": null,\n    \"created_at\": \"2026-04-29 18:00:00\",\n    \"updated_at\": \"2026-04-29 18:00:00\",\n    \"deleted_at\": null,\n    \"survey_status\": {\n      \"id\": 1,\n      \"slug\": \"draft\",\n      \"name\": \"Draft\",\n      \"is_active\": 1\n    },\n    \"survey_required_for\": [\n      {\n        \"id\": 61,\n        \"survey_id\": 190,\n        \"object_id\": 15,\n        \"required_for_type\": \"employee\",\n        \"created_at\": \"2026-04-29 18:00:01\",\n        \"updated_at\": \"2026-04-29 18:00:01\",\n        \"deleted_at\": null,\n        \"object_name\": \"Sam Chen\"\n      }\n    ],\n    \"survey_questions\": [\n      {\n        \"id\": 910,\n        \"body\": \"How satisfied are you with team communication?\",\n        \"is_active\": true,\n        \"is_required\": true,\n        \"survey_id\": 190,\n        \"survey_question_type_id\": 1,\n        \"sort\": \"1\",\n        \"created_at\": \"2026-04-29 18:00:02\",\n        \"updated_at\": \"2026-04-29 18:00:02\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 1,\n          \"slug\": \"single-choice\",\n          \"name\": \"Single choice\",\n          \"is_active\": true\n        },\n        \"survey_answers\": [\n          {\n            \"id\": 1010,\n            \"survey_question_id\": 910,\n            \"sort\": \"1\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Very satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-04-29 18:00:02\",\n            \"updated_at\": \"2026-04-29 18:00:02\",\n            \"deleted_at\": null\n          },\n          {\n            \"id\": 1011,\n            \"survey_question_id\": 910,\n            \"sort\": \"2\",\n            \"group_sort\": null,\n            \"group_name\": null,\n            \"body\": \"Somewhat satisfied\",\n            \"meta\": null,\n            \"created_at\": \"2026-04-29 18:00:02\",\n            \"updated_at\": \"2026-04-29 18:00:02\",\n            \"deleted_at\": null\n          }\n        ]\n      },\n      {\n        \"id\": 911,\n        \"body\": \"What should we improve next quarter?\",\n        \"is_active\": true,\n        \"is_required\": false,\n        \"survey_id\": 190,\n        \"survey_question_type_id\": 4,\n        \"sort\": \"2\",\n        \"created_at\": \"2026-04-29 18:00:03\",\n        \"updated_at\": \"2026-04-29 18:00:03\",\n        \"deleted_at\": null,\n        \"survey_question_type\": {\n          \"id\": 4,\n          \"slug\": \"text-field\",\n          \"name\": \"Short text\",\n          \"is_active\": true\n        },\n        \"survey_answers\": []\n      }\n    ],\n    \"end_date\": null,\n    \"is_open\": false,\n    \"responses_count\": 0,\n    \"estimated_completion_time\": \"8.25\",\n    \"average_completion_time\": null\n  }\n}"},{"id":"1b59bf84-cff7-422b-810e-d30f441f00f2","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/clone"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"30c989f3-8519-4ee0-9b97-3f2a1aee166f","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/clone"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"1244cb1b-a053-4732-b670-98ce23837861","name":"Not Found (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/clone"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"bfdd9e8d-782a-4708-946b-aeb149ab81ad"},{"name":"Get survey cycles","id":"5f8189d3-8fe5-402b-93e3-7ca5ac4605eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/cycles","description":"<p>This endpoint returns all cycles of the survey. Requires permission to view survey results for this survey.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","cycles"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"29495844-b452-4388-9ea0-bb79711ab969","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/cycles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 501,\n      \"start_date\": \"2026-04-01\",\n      \"end_date\": \"2026-04-15\",\n      \"is_closed\": false,\n      \"survey_id\": 42,\n      \"is_open\": true\n    },\n    {\n      \"id\": 500,\n      \"start_date\": \"2026-01-15\",\n      \"end_date\": \"2026-01-29\",\n      \"is_closed\": true,\n      \"survey_id\": 42,\n      \"is_open\": false\n    }\n  ]\n}"},{"id":"6e873058-18b7-47ad-bc0d-7e399dcf3a3d","name":"OK (200) — no cycles","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88/cycles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": []\n}"},{"id":"6a996ef4-6d9f-4319-b08e-ffd8faad6600","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/cycles"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"a10c4c97-fe03-415c-9af6-73f8190f3148","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/cycles"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"835133c7-e470-4dc2-891a-67aac147019c","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/cycles"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"5f8189d3-8fe5-402b-93e3-7ca5ac4605eb"},{"name":"Get survey result filters","id":"8e066387-4ed6-47c3-907d-382d53c590b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/filters","description":"<p>This endpoint returns metadata used to filter survey results: department, location, and division definitions, and employees.</p>\n<p>Requires permission to view survey results for this survey.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","filters"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"9ec03c77-1d38-46c5-8922-7e3f87d405e7","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"departments\": [\n      {\n        \"id\": 3,\n        \"name\": \"Engineering\",\n        \"object_type\": \"department\"\n      }\n    ],\n    \"locations\": [\n      {\n        \"id\": 2,\n        \"name\": \"Athens HQ\",\n        \"object_type\": \"location\"\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 1,\n        \"name\": \"Product\",\n        \"object_type\": \"division\"\n      }\n    ],\n    \"employees\": [\n      {\n        \"id\": 15,\n        \"photo_url\": \"https://cdn.example.com/photos/e15.jpg\",\n        \"resized_photo_url\": \"https://cdn.example.com/photos/e15_sm.jpg\",\n        \"first_name\": \"Sam\",\n        \"last_name\": \"Chen\",\n        \"email\": \"sam.chen@example.com\",\n        \"job_title\": \"Software Engineer\",\n        \"employee_survey_id\": 4401\n      },\n      {\n        \"id\": 22,\n        \"photo_url\": null,\n        \"resized_photo_url\": null,\n        \"first_name\": \"Alex\",\n        \"last_name\": \"Rivera\",\n        \"email\": \"alex.r@example.com\",\n        \"job_title\": \"HR Partner\",\n        \"employee_survey_id\": 4402\n      }\n    ]\n  }\n}"},{"id":"3cd41377-f852-48ea-b8f1-e889ac708fa1","name":"OK (200) — anonymous survey","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/77/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"departments\": [\n      {\n        \"id\": 3,\n        \"name\": \"Engineering\",\n        \"object_type\": \"department\"\n      }\n    ],\n    \"locations\": [\n      {\n        \"id\": 2,\n        \"name\": \"Athens HQ\",\n        \"object_type\": \"location\"\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 1,\n        \"name\": \"Product\",\n        \"object_type\": \"division\"\n      }\n    ],\n    \"employees\": [\n      {\n        \"id\": null,\n        \"photo_url\": null,\n        \"resized_photo_url\": null,\n        \"first_name\": null,\n        \"last_name\": null,\n        \"email\": null,\n        \"job_title\": null,\n        \"employee_survey_id\": 5501\n      },\n      {\n        \"id\": null,\n        \"photo_url\": null,\n        \"resized_photo_url\": null,\n        \"first_name\": null,\n        \"last_name\": null,\n        \"email\": null,\n        \"job_title\": null,\n        \"employee_survey_id\": 5502\n      }\n    ]\n  }\n}"},{"id":"6f4e2c0e-885d-41bd-a3f8-fb3859fa6389","name":"OK (200) — no cycles yet","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"departments\": [\n      {\n        \"id\": 3,\n        \"name\": \"Engineering\",\n        \"object_type\": \"department\"\n      }\n    ],\n    \"locations\": [],\n    \"divisions\": [],\n    \"employees\": []\n  }\n}"},{"id":"b2ad4a1a-222d-496f-9f61-3d12b4f7d642","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/filters"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"2b6190ad-ef6f-470c-b060-110d0bc9584e","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/filters"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"e03209e9-6ea3-4190-b948-ad8366133e13","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/filters"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"8e066387-4ed6-47c3-907d-382d53c590b9"},{"name":"Get survey results","id":"eb5cf2f2-8a2b-4e5b-b812-5b8462428f2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/results","description":"<p>This endpoint returns aggregated response statistics for the survey, including cycle timing, participation counts, and per-question results for choice-style questions and free-text answers. Each object under <code>data.questions.choice</code> and <code>data.questions.free</code> includes an <code>id</code> that identifies the survey cycle question row; that value is the <code>:question</code> path segment for <strong>Get cycles for a survey cycle question</strong> and <strong>Get survey question historical averages</strong> on the same survey.</p>\n<p>Requires permission to view survey results for this survey. Optional query parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","results"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"disabled":true,"description":{"content":"<p>(integer) Optional. Restricts the report to the identified survey cycle (<code>survey_cycles.id</code>). When this query key is present, the value must reference a non-deleted cycle that belongs to this survey; otherwise the API returns HTTP 422 Unprocessable Entity. When the key is omitted, the server selects the relevant cycle according to product rules.</p>\n","type":"text/plain"},"key":"survey_cycle_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>(string) Optional. Semicolon-separated filter segments applied to participant rows, using the same convention as survey results filters. Each segment uses <code>department=</code>, <code>division=</code>, <code>location=</code>, or <code>employee=</code>, followed by a comma-separated list of numeric identifiers. Example: <code>department=3,4;employee=15</code>. If omitted or empty, no filter is applied.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"b1638660-47a7-4d5d-b843-a85785364e31","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"title\": \"Quarterly engagement pulse\",\n    \"description\": \"Short pulse to track engagement and priorities each quarter.\",\n    \"start_date\": \"2026-04-01\",\n    \"end_date\": \"2026-04-15 23:59:59\",\n    \"average_completion_time\": \"11.25\",\n    \"can_reset_responses\": true,\n    \"is_open\": true,\n    \"is_active\": true,\n    \"survey_status\": {\n      \"id\": 2,\n      \"slug\": \"published\",\n      \"name\": \"Published\",\n      \"is_active\": 1\n    },\n    \"total_count\": 40,\n    \"answered_count\": 32,\n    \"questions\": {\n      \"choice\": [\n        {\n          \"id\": 7201,\n          \"body\": \"How satisfied are you with team communication?\",\n          \"survey_question_type_id\": 1,\n          \"survey_question_type\": {\n            \"id\": 1,\n            \"slug\": \"single-choice\",\n            \"name\": \"Single choice\",\n            \"is_active\": true\n          },\n          \"total\": 32,\n          \"answers\": [\n            {\n              \"id\": 9101,\n              \"body\": \"Very satisfied\",\n              \"sort\": \"1\",\n              \"count\": 18\n            },\n            {\n              \"id\": 9102,\n              \"body\": \"Somewhat satisfied\",\n              \"sort\": \"2\",\n              \"count\": 10\n            },\n            {\n              \"id\": null,\n              \"body\": \"N/A\",\n              \"sort\": null,\n              \"count\": 4\n            }\n          ]\n        }\n      ],\n      \"free\": [\n        {\n          \"id\": 7202,\n          \"body\": \"What should we improve next quarter?\",\n          \"survey_question_type_id\": 4,\n          \"survey_question_type\": {\n            \"id\": 4,\n            \"slug\": \"text-field\",\n            \"name\": \"Short text\",\n            \"is_active\": true\n          },\n          \"total\": 2,\n          \"answers\": [\n            {\n              \"id\": 15,\n              \"first_name\": \"Sam\",\n              \"last_name\": \"Chen\",\n              \"email\": \"sam.chen@example.com\",\n              \"photo_url\": \"https://cdn.example.com/photos/e15.jpg\",\n              \"resized_photo_url\": \"https://cdn.example.com/photos/e15_sm.jpg\",\n              \"job_title\": \"Software Engineer\",\n              \"employee_survey_id\": 5501,\n              \"finalized_at\": \"2026-04-12 10:15:00\",\n              \"body\": \"Faster feedback on design reviews.\"\n            },\n            {\n              \"id\": 22,\n              \"first_name\": \"Alex\",\n              \"last_name\": \"Rivera\",\n              \"email\": \"alex.r@example.com\",\n              \"photo_url\": null,\n              \"resized_photo_url\": null,\n              \"job_title\": \"HR Partner\",\n              \"employee_survey_id\": 5502,\n              \"finalized_at\": \"2026-04-12 11:02:00\",\n              \"body\": \"Clearer priorities from leadership.\"\n            }\n          ]\n        }\n      ]\n    }\n  }\n}"},{"id":"97fd8821-d110-4f80-8651-19f6cd594fcb","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/results?survey_cycle_id=99999999","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","results"],"query":[{"key":"survey_cycle_id","value":"99999999"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The selected survey cycle id is invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"survey_cycle_id\": [\n      \"The selected survey cycle id is invalid.\"\n    ]\n  }\n}"},{"id":"6bdee644-e7bb-4dee-bbc1-95be263b1159","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"e306c3f2-cde3-49ae-bd68-817642647834","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"b6928ad0-1f3d-401a-a538-ec569fc569bd","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/results"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"eb5cf2f2-8a2b-4e5b-b812-5b8462428f2d"},{"name":"Get survey results by employee","id":"645ad332-3731-4e6f-9e54-c97e7df67bc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/results-employees","description":"<p>This endpoint returns a list of employees who have a survey assignment in the resolved cycle, including completion time and related identifiers.</p>\n<p>Requires permission to view survey results for this survey. Optional query parameters are documented under Params. When no survey cycle can be resolved, the API returns HTTP 200 with an empty <code>data</code> array.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","results-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"disabled":true,"description":{"content":"<p>(integer) Optional. Restricts the listing to the identified survey cycle (<code>survey_cycles.id</code>). When this query key is present, the value must reference a non-deleted cycle that belongs to this survey; otherwise the API returns HTTP 422 Unprocessable Entity. When this key is omitted, resolution follows <code>question_id</code>, <code>answer_id</code>, then the survey’s relevant cycle per product rules.</p>\n","type":"text/plain"},"key":"survey_cycle_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>(string) Optional. Semicolon-separated filter segments applied to participant rows, using the same convention as survey results filters. Each segment uses <code>department=</code>, <code>division=</code>, <code>location=</code>, or <code>employee=</code>, followed by a comma-separated list of numeric identifiers. Example: <code>department=3,4;employee=15</code>. If omitted or empty, no filter is applied.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"disabled":true,"description":{"content":"<p>(integer) Optional. A <code>survey_cycle_questions.id</code> value used to resolve the survey cycle when <code>survey_cycle_id</code> is not supplied. If no row exists for this identifier, the API returns HTTP 404 Not Found. Ignored when a non-empty <code>survey_cycle_id</code> is supplied.</p>\n","type":"text/plain"},"key":"question_id","value":"<integer>"},{"disabled":true,"description":{"content":"<p>(string or integer) Optional. Either a <code>survey_cycle_answers.id</code> value or the literal <code>N/A</code> to select respondents with no selected answer for the related question filter path. Used to resolve the cycle when <code>survey_cycle_id</code> and <code>question_id</code> are not used as above. Unknown numeric identifiers produce HTTP 404 Not Found.</p>\n","type":"text/plain"},"key":"answer_id","value":"<string>"}],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"cb18a28d-6f4e-4816-a571-5c2a123b9a3d","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results-employees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 15,\n      \"photo_url\": \"https://cdn.example.com/photos/e15.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/e15_sm.jpg\",\n      \"first_name\": \"Sam\",\n      \"last_name\": \"Chen\",\n      \"email\": \"sam.chen@example.com\",\n      \"job_title\": \"Software Engineer\",\n      \"employee_survey_id\": 5501,\n      \"finalized_at\": \"2026-04-12 10:15:00\",\n      \"completion_time\": 12.3\n    },\n    {\n      \"id\": 22,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Alex\",\n      \"last_name\": \"Rivera\",\n      \"email\": \"alex.r@example.com\",\n      \"job_title\": \"HR Partner\",\n      \"employee_survey_id\": 5502,\n      \"finalized_at\": \"2026-04-12 11:02:00\",\n      \"completion_time\": 8.7\n    }\n  ]\n}"},{"id":"723e88ca-673e-4af3-a635-7f6f4f21ead7","name":"OK (200) — empty list","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results-employees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": []\n}"},{"id":"6ba39948-6572-4be8-b8dd-d92dfbe4380f","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/results-employees?survey_cycle_id=99999999","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","results-employees"],"query":[{"key":"survey_cycle_id","value":"99999999"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The selected survey cycle id is invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"survey_cycle_id\": [\n      \"The selected survey cycle id is invalid.\"\n    ]\n  }\n}"},{"id":"2e8aeefe-bc2b-40ce-b787-d979940065d0","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results-employees"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"df284a9f-86ae-4544-8df8-b7da600a94ca","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/results-employees"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"d3c08f50-271a-4373-a0e3-d82d80841a49","name":"Not Found (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/results-employees"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"645ad332-3731-4e6f-9e54-c97e7df67bc2"},{"name":"Get cycles for a survey cycle question","id":"22f647c6-5df8-4326-bfa0-4e9a3515f0ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/questions/:question/cycles","description":"<p>This endpoint returns all survey cycles that contain an instance of the same underlying survey question as the survey cycle question identified in the path. The :question path segment must be the survey cycle question id from Get survey results (data.questions.choice or data.questions.free).</p>\n<p>Requires permission to view survey results for this survey.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","questions",":question","cycles"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"},{"description":{"content":"<p>(integer, required) Survey cycle question identifier taken from the id field on each question object under data.questions.choice or data.questions.free in the response to Get survey results for this survey.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"question"}]}},"response":[{"id":"cfe98c8e-6a5e-4974-bd9f-d6d2678e965d","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/cycles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 501,\n      \"start_date\": \"2026-04-01\",\n      \"end_date\": \"2026-04-15\"\n    },\n    {\n      \"id\": 500,\n      \"start_date\": \"2026-01-15\",\n      \"end_date\": \"2026-01-29\"\n    }\n  ]\n}"},{"id":"86f632ea-6a95-42a6-8fae-e8db15236634","name":"OK (200) — empty","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/1202/cycles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": []\n}"},{"id":"f902d921-db87-402c-a01c-bceaad601733","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/cycles"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"d987dcd4-d112-4ee3-9633-f909d5052b13","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/cycles"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"d69240b6-9807-49aa-91fb-322cc177ada9","name":"Not Found (404) — survey","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/questions/1201/cycles"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"f0d52da5-2669-41be-88d8-e4fdaf828985","name":"Not Found (404) — cycle question","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/99999999/cycles"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\SurveyCycleQuestion] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"2e528cf7-83d2-46b5-b33f-5fea3526df69","name":"Internal Server Error (500) — question not on this survey","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/8801/cycles"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Survey Question not found for this survey.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"}],"_postman_id":"22f647c6-5df8-4326-bfa0-4e9a3515f0ef"},{"name":"Get survey question historical averages","id":"ca59bf13-3a67-42dc-b175-884a506eda11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/questions/:question/historical-averages?filter=<string>&cycleIds=<string>","description":"<p>This endpoint returns aggregated historical results for the survey cycle question identified in the path. The <code>:question</code> path segment must be the survey cycle question <code>id</code> from <strong>Get survey results</strong> (<code>data.questions.choice</code> or <code>data.questions.free</code>). Results may be constrained by the optional filter and cycleIds query parameters.</p>\n<p>Requires permission to view survey results for this survey. Parameter definitions appear under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","questions",":question","historical-averages"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Semicolon-separated filter segments applied to participant rows, using the same convention as survey results filters. Each segment uses <code>department=</code>, <code>division=</code>, <code>location=</code>, or <code>employee=</code>, followed by a comma-separated list of numeric identifiers. Example: <code>department=3,4;employee=15</code>. If omitted or empty, no filter is applied.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. Comma-separated survey cycle identifiers (<code>survey_cycles.id</code>). Each identifier must refer to a cycle that includes this logical question (same <code>survey_question_id</code> and <code>survey_question_type_id</code> as the path question). Duplicate identifiers or identifiers outside that set produce HTTP 422 Unprocessable Entity. If omitted, empty, or whitespace only, no cycle identifiers are supplied; the response <code>data</code> array is empty in that case.</p>\n","type":"text/plain"},"key":"cycleIds","value":"<string>"}],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"},{"description":{"content":"<p>(integer, required) Survey cycle question identifier taken from the id field on each question object under data.questions.choice or data.questions.free in the response to Get survey results for this survey.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"question"}]}},"response":[{"id":"dd5f5853-ce91-4a80-ae67-50de7a6c8537","name":"OK (200) — choice question","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/historical-averages?cycleIds=500,501","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","questions","1201","historical-averages"],"query":[{"key":"cycleIds","value":"500,501"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"survey_cycle_id\": 501,\n      \"start_date\": \"2026-04-01\",\n      \"end_date\": \"2026-04-15\",\n      \"answers\": [\n        {\n          \"answer_value\": \"Very satisfied\",\n          \"answer_count\": 18\n        },\n        {\n          \"answer_value\": \"Somewhat satisfied\",\n          \"answer_count\": 7\n        }\n      ]\n    },\n    {\n      \"survey_cycle_id\": 500,\n      \"start_date\": \"2026-01-15\",\n      \"end_date\": \"2026-01-29\",\n      \"answers\": [\n        {\n          \"answer_value\": \"Very satisfied\",\n          \"answer_count\": 12\n        },\n        {\n          \"answer_value\": \"Somewhat satisfied\",\n          \"answer_count\": 5\n        }\n      ]\n    }\n  ]\n}"},{"id":"3bbad237-5624-44bb-bb67-317c4a4e6ab3","name":"OK (200) — rating question","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/questions/1305/historical-averages?cycleIds=500,501&filter=department=3","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","questions","1305","historical-averages"],"query":[{"key":"cycleIds","value":"500,501"},{"key":"filter","value":"department=3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"survey_cycle_id\": 501,\n      \"start_date\": \"2026-04-01\",\n      \"end_date\": \"2026-04-15\",\n      \"average_score\": \"4.25\"\n    },\n    {\n      \"survey_cycle_id\": 500,\n      \"start_date\": \"2026-01-15\",\n      \"end_date\": \"2026-01-29\",\n      \"average_score\": \"4.08\"\n    }\n  ]\n}"},{"id":"12cd81e8-3cff-4024-80ff-e0997a09f937","name":"OK (200) — no cycleIds","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/historical-averages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": []\n}"},{"id":"829273bc-5a85-4bdd-96c5-690f91a28b34","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/historical-averages?cycleIds=500,500","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","questions","1201","historical-averages"],"query":[{"key":"cycleIds","value":"500,500"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The cycle IDs contain duplicates.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"cycleIds\": [\n      \"The cycle IDs contain duplicates.\"\n    ]\n  }\n}"},{"id":"5d087630-44a2-4eae-b5b8-0a03bb3e004e","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/historical-averages?cycleIds=500","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","questions","1201","historical-averages"],"query":[{"key":"cycleIds","value":"500"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"e1d2aba9-f0f9-4a07-bcc0-bdc5aac5907c","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/42/questions/1201/historical-averages"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"f45ba96d-65b4-4a8d-b470-cb7fb119fb70","name":"Not Found (404) — survey","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/99999999/questions/1201/historical-averages?cycleIds=500","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","99999999","questions","1201","historical-averages"],"query":[{"key":"cycleIds","value":"500"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"57b72dad-7633-4808-b5c9-38acf1225e73","name":"Not Found (404) — cycle question","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/questions/99999999/historical-averages?cycleIds=500","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","questions","99999999","historical-averages"],"query":[{"key":"cycleIds","value":"500"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\SurveyCycleQuestion] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"b24d3f90-fa14-4ead-b3b0-da8c0f405768","name":"Internal Server Error (500) — question not on this survey","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/surveys/42/questions/8801/historical-averages?cycleIds=500","host":["https://pubapi.talenthr.io/v1"],"path":["surveys","42","questions","8801","historical-averages"],"query":[{"key":"cycleIds","value":"500"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Survey Question not found for this survey.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\"\n  }\n}"}],"_postman_id":"ca59bf13-3a67-42dc-b175-884a506eda11"},{"name":"Reset survey","id":"50aeca15-d870-4563-b63d-c59ab331a811","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey/reset","description":"<p>This endpoint clears responses and related data for the survey's current open cycle and refreshes survey scheduling tasks.</p>\n<p>Requires permission to update this survey.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","reset"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"f4555ff9-cb82-47b3-acbc-4c78f6b95ea0","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88/reset"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"ea1b691d-6d56-4e5e-8eed-c2698b0e9510","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88/reset"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"4e5b9b82-e9e5-44cb-b0f3-d308af9695b5","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88/reset"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"7e3b2cdd-cc10-4d55-9639-c6d1427b39d3","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999/reset"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"50aeca15-d870-4563-b63d-c59ab331a811"},{"name":"Change survey status","id":"6b949239-83c8-4802-a7cd-0169c7f9e4b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_status\": \"<string>\" // (Required) Type: string. Active survey status slug from Get survey defaults. Example: archived.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/:survey/status","description":"<h3>Change survey status</h3>\n\n<p>Sets the workflow status of the survey identified in the path (for example draft, published, or archived). If the new status is not published and the survey is currently active, the survey is deactivated automatically.</p>\n<p>Requires permission to update this survey and a subscription that includes the Surveys feature.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>survey_status</td>\n<td>string</td>\n<td>yes</td>\n<td>Target workflow status for the survey. Must be an active status slug from <strong>Get survey defaults</strong> (<code>survey_statuses</code>); allowed values include draft, published, and archived.</td>\n<td>e.g. <code>archived</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","status"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"736e78a1-2453-48ba-8dd3-3f687fb96702","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_status\": \"archived\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"9af567b3-7920-4ad2-9d0c-6633ee99c4ce","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_status\": \"not-a-valid-status-slug\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/status"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The selected survey status is invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"survey_status\": [\n      \"The selected survey status is invalid.\"\n    ]\n  }\n}"},{"id":"fb45b88e-5607-4d85-958f-84863fec3cfe","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/status"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"c8e4e9c7-fdf3-4502-90b4-848c8bcc5c2f","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/status"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"e5885717-f34d-4594-a437-91acc0537174","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"survey_status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/99999999/status"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"6b949239-83c8-4802-a7cd-0169c7f9e4b6"},{"name":"Toggle survey active","id":"9058d29b-5d4f-41b8-b67a-34804aff1bdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": \"<boolean>\" // (Required) Type: boolean. Example: false.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/:survey/toggle","description":"<p>This endpoint sets whether the survey is active for participants. The body requires is_active. Activating with true requires a published survey and the Surveys subscription feature.</p>\n<p>Requires permission to update this survey.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Whether the survey is active.</td>\n<td>true or false</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey","toggle"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"b07dc50c-7433-4b16-b0a0-ab0a5ea05ba2","name":"OK (200) — activated","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"3ea86ac3-5dd4-419b-9717-103e910a45d8","name":"OK (200) — deactivated","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"f6c0fe84-cad7-4aea-b6c6-01ee610b7973","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The is active field is required.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"is_active\": [\n      \"The is active field is required.\"\n    ]\n  }\n}"},{"id":"aa6965a8-382c-4251-96b6-32792824ef46","name":"Forbidden (403) — subscription (activate)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The Surveys feature is not enabled for your subscription.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"58da8d62-e9ad-428c-be3b-3d0a1b49fa78","name":"Conflict (409) — activate non-published","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot activate a draft or an archived survey\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"cfb32a6a-185f-4ecd-9cd7-ef8a0d86def2","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"598682be-cd52-447d-933d-43d3890c0fe3","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/88/toggle"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"1d1277a7-0c0e-41c2-8c00-3af80a70a9ef","name":"Not Found (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/surveys/99999999/toggle"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"9058d29b-5d4f-41b8-b67a-34804aff1bdd"},{"name":"Delete survey","id":"4d86f3c8-1b2a-4302-9709-019098f0be45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/:survey","description":"<p>This endpoint removes a survey for this tenant.</p>\n<p>Requires permission to delete this survey.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["surveys",":survey"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer, required) Survey identifier.</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"survey"}]}},"response":[{"id":"da1fb210-0df0-42ec-80ec-b0ae05b1bf38","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"1fe92249-a258-4d55-b1e7-0136a3b4067d","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"fd9f3daf-389f-4dab-9284-91d49bfd6924","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/88"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"8b71684a-4182-4d70-9a5a-0eb5950692b7","name":"Not Found (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/surveys/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Survey] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"}],"_postman_id":"4d86f3c8-1b2a-4302-9709-019098f0be45"}],"id":"88ce83ed-b005-4197-9c01-5ba58050121c","_postman_id":"88ce83ed-b005-4197-9c01-5ba58050121c","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Time tracking","item":[{"name":"Get employee time tracking entries","id":"886f684a-6bf8-488b-805d-6fe40e2cc721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking?offset=<integer>&limit=<integer>&period=<string>&start_date=<date>&end_date=<date>&working_now=<boolean>&search=<string>&sort=<string>&order=<string>&filter=<string>","description":"<p>This endpoint returns a paginated list of time tracking rows for the specified employee. Requires permission to list time tracking entries for that employee.</p>\n<p>Defaults, allowed values, and validation behaviour are documented in the Params list. Period and start or end date inputs are validated according to the rules shown there. Optional search and filter parameters narrow the set.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0. Negative submitted values are clamped to 0.</p>\n","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>(integer) Optional. Rows per page. Default when omitted: 10. Minimum: 1; maximum: 100 inclusive. Values outside 1–100 fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"<p>(string) Optional. Allowed when not using a custom date range: today, yesterday, week, month. When period, start_date, and end_date are all omitted, the API applies today for validation. Other single-token values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string) Optional. Start of a custom range in YYYY-MM-DD format. Used with end_date instead of period; validation ties the three fields together (required_without rules and maximum range between dates).</p>\n","type":"text/plain"},"key":"start_date","value":"<date>"},{"description":{"content":"<p>(string) Optional. End of a custom range in YYYY-MM-DD format; must be on or after start_date. Together with start_date must not span more than 36 months.</p>\n","type":"text/plain"},"key":"end_date","value":"<date>"},{"description":{"content":"<p>(boolean) Optional. Must be a boolean when present (for example true or false in query parsing). Validated with other index parameters; it does not alter the employee-scoped result set in the current implementation.</p>\n","type":"text/plain"},"key":"working_now","value":"<boolean>"},{"description":{"content":"<p>(string) Optional. Free-text filter applied to name, entry timestamp, location, division, department, and tag fields as implemented on the server.</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort field. Allowed: time, started_at, ended_at, name, tag, location. Other values are ignored for sort selection and default ordering rules apply.</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort direction: asc or desc. Other values are normalized to desc.</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string parsed as semicolon-separated segments (for example department=1,2;tag=3,na). Department, division, and location segments use numeric ids; tag supports comma-separated ids or na for untagged. Equivalent array encodings may be merged by the server into that string form.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"6775b9ed-5cc1-44e0-8edc-bbc0f566e1fe","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking?offset=<integer>&limit=<integer>&period=<string>&start_date=<date>&end_date=<date>&working_now=<boolean>&search=<string>&sort=<string>&order=<string>&filter=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"query":[{"key":"offset","value":"<integer>"},{"key":"limit","value":"<integer>"},{"key":"period","value":"<string>"},{"key":"start_date","value":"<date>"},{"key":"end_date","value":"<date>"},{"key":"working_now","value":"<boolean>"},{"key":"search","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"order","value":"<string>"},{"key":"filter","value":"<string>"}],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"rows\": [\n      {\n        \"id\": 8801,\n        \"employee_id\": 15,\n        \"started_by_id\": 15,\n        \"started_at_utc\": \"2026-05-04 07:30:00\",\n        \"ended_at_utc\": \"2026-05-04 09:45:00\",\n        \"duration_seconds\": 8100,\n        \"timezone\": \"Europe/Athens\",\n        \"active_geo_location\": false,\n        \"geo_location\": null,\n        \"longitude\": null,\n        \"latitude\": null,\n        \"created_at\": \"2026-05-04 07:30:05\",\n        \"updated_at\": \"2026-05-04 09:45:10\",\n        \"deleted_at\": null,\n        \"first_name\": \"Sam\",\n        \"last_name\": \"Chen\",\n        \"email\": \"sam.chen@example.com\",\n        \"is_terminated\": false,\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/example/avatars/15.jpg\",\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/example/avatars/15_sm.jpg\",\n        \"job_title_id\": 3,\n        \"job_title\": \"Account Executive\",\n        \"time_tracking_tag_id\": 2,\n        \"time_tracking_tag\": \"Client work\",\n        \"department_id\": 20,\n        \"department\": \"Sales\",\n        \"division_id\": 5,\n        \"division\": \"Commercial\",\n        \"location_id\": 12,\n        \"location\": \"Athens HQ\",\n        \"started_at_local\": \"2026-05-04 10:30:00\",\n        \"ended_at_local\": \"2026-05-04 12:45:00\",\n        \"started_by_name\": \"Sam Chen\",\n        \"can_edit\": true,\n        \"can_start\": true\n      }\n    ]\n  }\n}"},{"id":"81391654-e868-4384-9628-9e9eae2aa762","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/99999999/time-tracking"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"6dbdc401-7691-4f22-b396-5206b6b7daf8","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking?limit=150","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"query":[{"key":"limit","value":"150"}],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The limit must not be greater than 100.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"limit\": [\n      \"The limit must not be greater than 100.\"\n    ]\n  }\n}"},{"id":"1a7f87b5-7507-4136-917b-9af0845de3e1","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"111a73a7-cf4d-4e05-b2b8-8bef50c43f55","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"886f684a-6bf8-488b-805d-6fe40e2cc721"},{"name":"Add closed time tracking entry","id":"2d7c0a10-bb85-4c62-b651-ecf630c0562b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"<string>\", // (Required) Type: string. Local start date-time in YYYY-MM-DD H:i:s using the API user timezone. Example: 2026-05-04 09:15:00. Must be strictly before the current local time.\n  \"ended_at\": \"<string>\", // (Required) Type: string. Local end date-time in YYYY-MM-DD H:i:s. Example: 2026-05-04 11:30:00. Must be strictly before the current local time and after started_at. The interval must not exceed twenty-four hours.\n  \"time_tracking_tag_id\": \"<integer>\" // (Optional) Type: integer or null. Must be an id from time tracking tags assigned to this employee, or null when no tag applies.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","description":"<h3>Add closed time tracking entry</h3>\n\n<p>Creates a completed time tracking entry for the employee in the path by recording a start time and an end time. Both times are interpreted in the authenticated API user’s local timezone.</p>\n<p>Requires permission to create time tracking entries for that employee and a subscription that includes the time tracking feature. Company time tracking must be enabled, and the employee must not be terminated. The interval must not overlap other entries and cannot exceed twenty-four hours.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>started_at</td>\n<td>string (date-time)</td>\n<td>yes</td>\n<td>Local start of the interval for the API user. Format: <code>YYYY-MM-DD H:i:s</code> in the API user’s timezone. Must be strictly before the current local time.</td>\n<td>e.g. <code>2026-05-04 09:15:00</code></td>\n</tr>\n<tr>\n<td>ended_at</td>\n<td>string (date-time)</td>\n<td>yes</td>\n<td>Local end of the interval. Format: <code>YYYY-MM-DD H:i:s</code>. Must be strictly before the current local time, after <code>started_at</code>, and within twenty-four hours of <code>started_at</code>.</td>\n<td>e.g. <code>2026-05-04 11:30:00</code></td>\n</tr>\n<tr>\n<td>time_tracking_tag_id</td>\n<td>integer or null</td>\n<td>no</td>\n<td>Tag for the entry. Must be an id from time tracking tags assigned to this employee, or <code>null</code> or omitted when no tag applies.</td>\n<td>e.g. <code>12</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"4ef0acc3-b05b-4277-ae5e-77df33460e08","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\",\n  \"time_tracking_tag_id\": 2\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8802,\n    \"employee_id\": 15,\n    \"started_by_id\": 20,\n    \"started_at_utc\": \"2026-05-04 06:15:00\",\n    \"ended_at_utc\": \"2026-05-04 08:30:00\",\n    \"duration_seconds\": 8100,\n    \"timezone\": \"Europe/Athens\",\n    \"active_geo_location\": false,\n    \"geo_location\": null,\n    \"longitude\": null,\n    \"latitude\": null,\n    \"time_tracking_tag_id\": 2,\n    \"location_id\": 12,\n    \"department_id\": 20,\n    \"division_id\": 5,\n    \"created_at\": \"2026-05-04 10:20:00\",\n    \"updated_at\": \"2026-05-04 10:20:00\",\n    \"deleted_at\": null,\n    \"started_at_local\": \"2026-05-04 09:15:00\",\n    \"ended_at_local\": \"2026-05-04 11:30:00\",\n    \"duration\": \"02:15:00\",\n    \"time_tracking_tag\": {\n      \"id\": 2,\n      \"name\": \"Client work\",\n      \"is_active\": true,\n      \"required_for_all\": false,\n      \"created_at\": \"2026-01-10 08:00:00\",\n      \"updated_at\": \"2026-01-10 08:00:00\",\n      \"deleted_at\": null\n    },\n    \"location\": {\n      \"id\": 12,\n      \"name\": \"Athens HQ\",\n      \"object_type\": \"location\"\n    }\n  }\n}"},{"id":"355ca37e-d91c-456c-84d9-c55d94f26519","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The started at field is required. (and 1 more error)\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"started_at\": [\n      \"The started at field is required.\"\n    ],\n    \"ended_at\": [\n      \"The ended at field is required.\"\n    ]\n  }\n}"},{"id":"040a869b-18f2-444d-8897-fe2c528e16d8","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/99999999/time-tracking"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"aeeb8988-53bc-4afc-9411-05ad01bbeda8","name":"Forbidden (403) — subscription","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Time Tracking enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"c5625547-8c0b-4686-b746-730cbeb67066","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"51dba0cb-b958-4b24-ae00-35e41e615ebf","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"42864d56-11db-4f88-89b4-c517bf3562a6","name":"Conflict (409) — time tracking deactivated","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Time tracking feature is deactivated.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"ec1b3ffb-659d-43f3-ad57-6d8f73a13a52","name":"Conflict (409) — terminated employee","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot start the timer on a terminated employee.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"}],"_postman_id":"2d7c0a10-bb85-4c62-b651-ecf630c0562b"},{"name":"Get current time tracking record","id":"c53ca1ff-e0b3-4246-8be7-560d45f89bbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/current","description":"<p>This endpoint returns whether the employee has an open time tracking entry and, when one exists, that record with related tag and location and local timestamps. Requires permission to view the current time tracking state for that employee.</p>\n<p>There are no query parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking","current"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"a93829bb-6892-4475-ab06-49575ef5a72b","name":"OK (200) — existing current time tracking entry","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/current","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","current"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"has_open_time_tracking\": true,\n    \"time_tracking_record\": {\n      \"id\": 8803,\n      \"employee_id\": 15,\n      \"started_by_id\": 15,\n      \"started_at_utc\": \"2026-05-04 12:00:05\",\n      \"ended_at_utc\": null,\n      \"duration_seconds\": 125,\n      \"timezone\": \"Europe/Athens\",\n      \"active_geo_location\": false,\n      \"geo_location\": null,\n      \"longitude\": null,\n      \"latitude\": null,\n      \"time_tracking_tag_id\": 2,\n      \"location_id\": 12,\n      \"department_id\": 20,\n      \"division_id\": 5,\n      \"created_at\": \"2026-05-04 12:00:05\",\n      \"updated_at\": \"2026-05-04 12:00:05\",\n      \"deleted_at\": null,\n      \"started_at_local\": \"2026-05-04 15:00:05\",\n      \"ended_at_local\": null,\n      \"time_tracking_tag\": {\n        \"id\": 2,\n        \"name\": \"Client work\",\n        \"is_active\": true,\n        \"required_for_all\": false,\n        \"created_at\": \"2026-01-10 08:00:00\",\n        \"updated_at\": \"2026-01-10 08:00:00\",\n        \"deleted_at\": null\n      },\n      \"location\": {\n        \"id\": 12,\n        \"name\": \"Athens HQ\",\n        \"object_type\": \"location\"\n      }\n    }\n  }\n}"},{"id":"5bdd78e7-8192-4d11-9eaf-a94f33cf065e","name":"OK (200) — no open entry","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/current","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","current"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"has_open_time_tracking\": false,\n    \"time_tracking_record\": null\n  }\n}"},{"id":"3ea1e374-a242-4c03-99a8-e62d2e862a4e","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/99999999/time-tracking/current"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"891cbbc5-05e6-438b-b3c4-86aa89f8b0c6","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/current","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","current"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"36f0c89a-54c9-4ed0-88d6-c9a0619bd9b2","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/current","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","current"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c53ca1ff-e0b3-4246-8be7-560d45f89bbe"},{"name":"Start time tracking recording","id":"7de4f787-dd83-42f4-8715-43844b859d01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_tracking_tag_id\": \"<integer>\", // (Optional) Type: integer or null. Tag id from tags assigned to the employee. Example: 2.\n  \"latitude\": \"<number>\", // (Optional) Type: number. Decimal latitude when geolocation is active and the employee is the caller; must be sent together with longitude.\n  \"longitude\": \"<number>\" // (Optional) Type: number. Decimal longitude when geolocation is active and the employee is the caller; must be sent together with latitude.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","description":"<h3>Start time tracking recording</h3>\n\n<p>Starts an open time tracking entry for the employee in the path (a running timer). The entry remains open until it is stopped through the stop endpoint or updated as a closed entry.</p>\n<p>Requires permission to create time tracking entries for that employee and a subscription that includes the time tracking feature. Company time tracking must be enabled, the employee must not be terminated, and the employee must not already have an open time tracking entry.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>time_tracking_tag_id</td>\n<td>integer or null</td>\n<td>no</td>\n<td>Tag applied when the timer starts. Must be an id from time tracking tags assigned to this employee, or null or omitted when no tag applies.</td>\n<td>e.g. <code>2</code></td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>number</td>\n<td>no</td>\n<td>Latitude when geolocation is enabled for the tenant and the authenticated user is the employee in the path. Must be sent together with longitude.</td>\n<td>e.g. <code>37.9838</code></td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>number</td>\n<td>no</td>\n<td>Longitude when geolocation is enabled for the tenant and the authenticated user is the employee in the path. Must be sent together with latitude.</td>\n<td>e.g. <code>23.7275</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>All request body fields are optional. Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking","start"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"8613a33b-ad95-4f51-95e3-035c0c5d05d5","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_tracking_tag_id\": 2\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8804,\n    \"employee_id\": 15,\n    \"started_by_id\": 15,\n    \"started_at_utc\": \"2026-05-04 14:05:00\",\n    \"ended_at_utc\": null,\n    \"duration_seconds\": 0,\n    \"timezone\": \"Europe/Athens\",\n    \"active_geo_location\": false,\n    \"geo_location\": null,\n    \"longitude\": null,\n    \"latitude\": null,\n    \"time_tracking_tag_id\": 2,\n    \"location_id\": 12,\n    \"department_id\": 20,\n    \"division_id\": 5,\n    \"created_at\": \"2026-05-04 14:05:00\",\n    \"updated_at\": \"2026-05-04 14:05:00\",\n    \"deleted_at\": null,\n    \"started_at_local\": \"2026-05-04 17:05:00\",\n    \"ended_at_local\": null,\n    \"time_tracking_tag\": {\n      \"id\": 2,\n      \"name\": \"Client work\",\n      \"is_active\": true,\n      \"required_for_all\": false,\n      \"created_at\": \"2026-01-10 08:00:00\",\n      \"updated_at\": \"2026-01-10 08:00:00\",\n      \"deleted_at\": null\n    },\n    \"location\": {\n      \"id\": 12,\n      \"name\": \"Athens HQ\",\n      \"object_type\": \"location\"\n    }\n  }\n}"},{"id":"55ed56ec-320d-4754-9a8b-d3abf0e3290b","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_tracking_tag_id\": 99999999\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The selected time tracking tag id is invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"time_tracking_tag_id\": [\n      \"The selected time tracking tag id is invalid.\"\n    ]\n  }\n}"},{"id":"949091c2-ea51-4927-a0d8-b56212f597ed","name":"Not found exception (404)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/99999999/time-tracking/start"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"0d2c4455-b182-43d2-b700-26ef739acb80","name":"Forbidden (403) — subscription","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Time Tracking enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"37f7afbe-39c8-4257-afa6-bccd4bf8d082","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"98d0295a-7ae9-4ccb-b45c-9e75a4b866c4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"},{"id":"931e674a-9dbf-4b62-88ce-6a24e4121d4b","name":"Conflict (409) — time tracking deactivated","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Time tracking feature is deactivated.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"d5932a05-cc0a-41bb-b5ed-9c4a012a2537","name":"Conflict (409) — terminated employee","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot start the timer on a terminated employee.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"23104bc7-5870-4c61-aae2-64f9504baea5","name":"Conflict (409) — timer already running","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/start","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","start"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The timer has already started.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"}],"_postman_id":"7de4f787-dd83-42f4-8715-43844b859d01"},{"name":"Get employee time tracking tags","id":"3d35cee4-ec3c-43d8-a7cc-f2d6f5872ad2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/tags?time_tracking_entry_id=<integer>","description":"<p>This endpoint returns the time tracking tags available to the given employee as a JSON array in data. Optional query time_tracking_entry_id may add the tag from that entry when it belongs to the employee and is not already in the list. Requires permission to read tags in this employee context.</p>\n<p>Defaults and validation for the query parameter are documented in the Params list.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking","tags"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. When set, must be the id of a non-deleted time tracking entry for this employee; the tag from that entry may be merged into the returned list when it is not already included.</p>\n","type":"text/plain"},"key":"time_tracking_entry_id","value":"<integer>"}],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"1717fe63-7857-4d96-b343-f038edda9c2e","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/tags","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","tags"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Internal\",\n      \"is_active\": true,\n      \"required_for_all\": true,\n      \"created_at\": \"2026-01-05 10:00:00\",\n      \"updated_at\": \"2026-01-05 10:00:00\",\n      \"deleted_at\": null\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Client work\",\n      \"is_active\": true,\n      \"required_for_all\": false,\n      \"created_at\": \"2026-01-10 08:00:00\",\n      \"updated_at\": \"2026-01-10 08:00:00\",\n      \"deleted_at\": null\n    }\n  ]\n}"},{"id":"acf6869b-e86a-440d-84b9-ce4b6f8f891c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/tags?time_tracking_entry_id=99999999","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","tags"],"query":[{"key":"time_tracking_entry_id","value":"99999999"}],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The selected time tracking entry id is invalid.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"time_tracking_entry_id\": [\n      \"The selected time tracking entry id is invalid.\"\n    ]\n  }\n}"},{"id":"a4270fce-4341-4b5a-a532-f995980be37d","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/99999999/time-tracking/tags"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"351af78b-a207-42c2-8829-6b1a1ceddbfb","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/tags","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","tags"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"d53c630b-a20f-4863-aa98-a0d0d2e6eb4b","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/tags","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","tags"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"3d35cee4-ec3c-43d8-a7cc-f2d6f5872ad2"},{"name":"Delete time tracking entry","id":"f0a5910b-86f6-4c50-9100-8c4090880efe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","description":"<p>This endpoint permanently removes a time tracking row when the caller is authorized to delete it. A successful response returns a success flag with no data object.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Time tracking entry id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingEntry"}]}},"response":[{"id":"2870ee58-005f-4b9e-a2c5-d486149dbd93","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"252ab39e-be83-40ca-a8de-2b5a0b1d834f","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/99999999","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","99999999"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingEntry] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"b433240e-d386-4cbb-b479-a649fb25333e","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"e3774663-a795-4f22-ae7a-3d28df1a25e4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"f0a5910b-86f6-4c50-9100-8c4090880efe"},{"name":"Get time tracking entry","id":"cb3a80bb-31f0-49f1-aedd-27bb2935aa4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","description":"<p>This endpoint returns one time tracking entry with tag and location relations and local start and end timestamps derived for the authenticated user’s timezone. Requires permission to view that entry.</p>\n<hr />\n<p><strong>Path parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>employee</td>\n<td>integer</td>\n<td>Employee associated with the request path.</td>\n</tr>\n<tr>\n<td>timeTrackingEntry</td>\n<td>integer</td>\n<td>Identifier of the time tracking entry to retrieve.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Time tracking entry id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingEntry"}]}},"response":[{"id":"41fc138c-6edd-4432-b11c-cbacb6ec0179","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8801,\n    \"employee_id\": 15,\n    \"started_by_id\": 15,\n    \"started_at_utc\": \"2026-05-04 07:30:00\",\n    \"ended_at_utc\": \"2026-05-04 09:45:00\",\n    \"duration_seconds\": 8100,\n    \"timezone\": \"Europe/Athens\",\n    \"active_geo_location\": false,\n    \"geo_location\": null,\n    \"longitude\": null,\n    \"latitude\": null,\n    \"time_tracking_tag_id\": 2,\n    \"location_id\": 12,\n    \"department_id\": 20,\n    \"division_id\": 5,\n    \"created_at\": \"2026-05-04 07:30:05\",\n    \"updated_at\": \"2026-05-04 09:45:10\",\n    \"deleted_at\": null,\n    \"started_at_local\": \"2026-05-04 10:30:00\",\n    \"ended_at_local\": \"2026-05-04 12:45:00\",\n    \"duration\": \"02:15:00\",\n    \"time_tracking_tag\": {\n      \"id\": 2,\n      \"name\": \"Client work\",\n      \"is_active\": true,\n      \"required_for_all\": false,\n      \"created_at\": \"2026-01-10 08:00:00\",\n      \"updated_at\": \"2026-01-10 08:00:00\",\n      \"deleted_at\": null\n    },\n    \"location\": {\n      \"id\": 12,\n      \"name\": \"Athens HQ\",\n      \"object_type\": \"location\"\n    }\n  }\n}"},{"id":"ac1ab717-c33d-4e60-830c-2cb0315a77fc","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/99999999","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","99999999"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingEntry] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"c192521c-251a-46f3-b6c2-c927b4a1a896","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"39e8fa14-6e30-4a68-ad7e-14fbb6d4e410","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"cb3a80bb-31f0-49f1-aedd-27bb2935aa4b"},{"name":"Update time tracking entry","id":"b7b8d690-11a6-4922-8065-ae739436ba03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"<string>\", // (Required) Type: string. Local start date-time in YYYY-MM-DD H:i:s using the API user timezone. Example: 2026-05-04 09:15:00. Must be strictly before the current local time.\n  \"ended_at\": \"<string>\", // (Required) Type: string. Local end date-time in YYYY-MM-DD H:i:s. Example: 2026-05-04 11:30:00. Must be strictly before the current local time and after started_at. The interval must not exceed twenty-four hours.\n  \"time_tracking_tag_id\": \"<integer>\" // (Optional) Type: integer or null. Must be an id from time tracking tags assigned to this employee, the entry’s current tag id, or null when no tag applies.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","description":"<h3>Update time tracking entry</h3>\n\n<p>Updates the start time, end time, and optional tag on a closed time tracking entry for the employee in the path. Open (running) entries cannot be updated through this endpoint. Start and end times are interpreted in the authenticated API user’s local timezone.</p>\n<p>Requires permission to edit time tracking entries for that employee. The interval must not overlap other entries and cannot exceed twenty-four hours.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>started_at</td>\n<td>string (date-time)</td>\n<td>yes</td>\n<td>Local start of the interval for the API user. Format: <code>YYYY-MM-DD H:i:s</code> in the API user’s timezone. Must be strictly before the current local time.</td>\n<td>e.g. <code>2026-05-04 09:15:00</code></td>\n</tr>\n<tr>\n<td>ended_at</td>\n<td>string (date-time)</td>\n<td>yes</td>\n<td>Local end of the interval. Format: <code>YYYY-MM-DD H:i:s</code>. Must be strictly before the current local time, after <code>started_at</code>, and within twenty-four hours of <code>started_at</code>.</td>\n<td>e.g. <code>2026-05-04 11:30:00</code></td>\n</tr>\n<tr>\n<td>time_tracking_tag_id</td>\n<td>integer or null</td>\n<td>no</td>\n<td>Tag for the entry. Must be an id from time tracking tags assigned to this employee, the entry’s current tag id, or null or omitted when no tag applies.</td>\n<td>e.g. <code>12</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Time tracking entry id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingEntry"}]}},"response":[{"id":"befa2122-25be-4ac3-a0bb-7e677aaf8de4","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:45:00\",\n  \"time_tracking_tag_id\": 2\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8801,\n    \"employee_id\": 15,\n    \"started_by_id\": 15,\n    \"started_at_utc\": \"2026-05-04 06:15:00\",\n    \"ended_at_utc\": \"2026-05-04 08:45:00\",\n    \"duration_seconds\": 9000,\n    \"timezone\": \"Europe/Athens\",\n    \"active_geo_location\": false,\n    \"geo_location\": null,\n    \"longitude\": null,\n    \"latitude\": null,\n    \"time_tracking_tag_id\": 2,\n    \"location_id\": 12,\n    \"department_id\": 20,\n    \"division_id\": 5,\n    \"created_at\": \"2026-05-04 07:30:05\",\n    \"updated_at\": \"2026-05-04 12:05:00\",\n    \"deleted_at\": null,\n    \"started_at_local\": \"2026-05-04 09:15:00\",\n    \"ended_at_local\": \"2026-05-04 11:45:00\",\n    \"duration\": \"02:30:00\",\n    \"time_tracking_tag\": {\n      \"id\": 2,\n      \"name\": \"Client work\",\n      \"is_active\": true,\n      \"required_for_all\": false,\n      \"created_at\": \"2026-01-10 08:00:00\",\n      \"updated_at\": \"2026-01-10 08:00:00\",\n      \"deleted_at\": null\n    },\n    \"location\": {\n      \"id\": 12,\n      \"name\": \"Athens HQ\",\n      \"object_type\": \"location\"\n    }\n  }\n}"},{"id":"39689200-d035-46ed-b4dc-4609e9de0d0c","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The started at field is required. (and 1 more error)\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"started_at\": [\n      \"The started at field is required.\"\n    ],\n    \"ended_at\": [\n      \"The ended at field is required.\"\n    ]\n  }\n}"},{"id":"83991e71-884d-4e52-ba14-d9d0052516f2","name":"Conflict (409) — open entry","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You cannot update a running time tracking record.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"ad50f0f7-5c9c-4d88-9c62-058b5ae5c04e","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/99999999","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","99999999"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingEntry] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"e60d3422-ecb8-4554-8063-c238b88d8925","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"f18c2070-f8c5-4745-aa1d-b09160292c07","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"started_at\": \"2026-05-04 09:15:00\",\n  \"ended_at\": \"2026-05-04 11:30:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"b7b8d690-11a6-4922-8065-ae739436ba03"},{"name":"Stop time tracking recording","id":"25eb25e8-928c-48ab-b033-e6ca66e2b02b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry/stop","description":"<p>This endpoint closes an open time tracking recording by setting its end time to the current moment, subject to company timer limits. The caller must be authorized to stop the entry.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["employees",":employee","time-tracking",":timeTrackingEntry","stop"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"},{"description":{"content":"<p>(integer) Time tracking entry id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingEntry"}]}},"response":[{"id":"8fff4dd6-8dfd-4967-b0ba-295184d1072c","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry/stop","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry","stop"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 8803,\n    \"employee_id\": 15,\n    \"started_by_id\": 15,\n    \"started_at_utc\": \"2026-05-04 07:00:00\",\n    \"ended_at_utc\": \"2026-05-04 10:20:30\",\n    \"duration_seconds\": 12030,\n    \"timezone\": \"Europe/Athens\",\n    \"active_geo_location\": false,\n    \"geo_location\": null,\n    \"longitude\": null,\n    \"latitude\": null,\n    \"time_tracking_tag_id\": 1,\n    \"location_id\": 12,\n    \"department_id\": 20,\n    \"division_id\": 5,\n    \"created_at\": \"2026-05-04 07:00:02\",\n    \"updated_at\": \"2026-05-04 10:20:30\",\n    \"deleted_at\": null,\n    \"started_at_local\": \"2026-05-04 10:00:00\",\n    \"ended_at_local\": \"2026-05-04 13:20:30\",\n    \"duration\": \"03:20:30\",\n    \"time_tracking_tag\": {\n      \"id\": 1,\n      \"name\": \"Internal\",\n      \"is_active\": true,\n      \"required_for_all\": true,\n      \"created_at\": \"2026-01-05 10:00:00\",\n      \"updated_at\": \"2026-01-05 10:00:00\",\n      \"deleted_at\": null\n    },\n    \"location\": {\n      \"id\": 12,\n      \"name\": \"Athens HQ\",\n      \"object_type\": \"location\"\n    }\n  }\n}"},{"id":"c7ba22de-d9b5-4da3-931f-8fb19fba1902","name":"Conflict (409) — already stopped","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry/stop","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry","stop"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The time tracking record is already stopped.\",\n    \"hr_code\": 1000,\n    \"hr_code_key\": \"generic_error\",\n    \"code\": 409\n  }\n}"},{"id":"b94738c7-64fb-49e9-9299-a4c55f794578","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/99999999/stop","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking","99999999","stop"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingEntry] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\",\n    \"dev\": {\n      \"file\": \"/usr/local/apache2/htdocs/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php\",\n      \"line\": 391,\n      \"exception_class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\"\n    }\n  }\n}"},{"id":"6bf04270-2ec9-4897-8d35-0d00426d145d","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry/stop","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry","stop"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"052d59bc-8df1-4d18-bed8-c683bdc6da1a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/employees/:employee/time-tracking/:timeTrackingEntry/stop","host":["https://pubapi.talenthr.io/v1"],"path":["employees",":employee","time-tracking",":timeTrackingEntry","stop"],"variable":[{"key":"employee","value":"<integer>","description":"(integer) Employee id (numeric path segment)."},{"key":"timeTrackingEntry","value":"<integer>","description":"(integer) Time tracking entry id (numeric path segment)."}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"25eb25e8-928c-48ab-b033-e6ca66e2b02b"},{"name":"Get time tracking settings","id":"a75891aa-64d4-42c3-aa6b-8da7da3dadcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-tracking","description":"<p>This endpoint returns tenant time tracking settings: whether the feature is active, maximum counted hours, whether open timers are capped at local end of day, and whether geolocation capture is enabled. Requires permission to read time tracking settings. Some keys may be omitted when the caller is not permitted to view them.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["settings","time-tracking"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"8d3841f8-9b16-4e7c-910f-23a95fee682e","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"active\": true,\n    \"max_counted_hours\": 12,\n    \"timer_end_of_day\": {\n      \"active\": true\n    },\n    \"geolocation\": {\n      \"active\": false\n    }\n  }\n}"},{"id":"90d20b20-c061-400a-8956-92b8ab1ee310","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"5b8c8f89-8ec6-460d-a0f4-f9a0d768556a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"a75891aa-64d4-42c3-aa6b-8da7da3dadcf"},{"name":"Update time tracking settings","id":"5ba4431e-91dc-4e93-9030-f6cb88e3c222","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"active\": \"<boolean>\", // (Required) Type: boolean. Master switch for time tracking on the tenant. Example: true. JSON booleans only (true or false).\n  \"active_timer_end_of_day\": \"<boolean>\", // (Required) Type: boolean. When true, open timers are capped at the employee local end of day according to company rules. Example: true.\n  \"active_geolocation\": \"<boolean>\", // (Required) Type: boolean. When true, geolocation capture is enabled for applicable start flows. Example: false.\n  \"max_counted_hours\": \"<integer>\" // (Required) Type: integer. Maximum hours counted for a span; minimum 1, maximum 24 inclusive. Example: 12.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-tracking","description":"<h3>Update time tracking settings</h3>\n\n<p>Updates tenant-wide time tracking settings: whether time tracking is enabled, how open timers are handled at end of day, whether geolocation is used, and the maximum counted hours per applicable span.</p>\n<p>Requires permission to write time tracking settings and a subscription that includes the time tracking feature. All request body fields are required.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>active</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Master switch that enables or disables time tracking for the tenant. JSON booleans only.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n<tr>\n<td>active_timer_end_of_day</td>\n<td>boolean</td>\n<td>yes</td>\n<td>When true, open timers are capped at the employee’s local end of day according to company rules. JSON booleans only.</td>\n<td>e.g. <code>true</code></td>\n</tr>\n<tr>\n<td>active_geolocation</td>\n<td>boolean</td>\n<td>yes</td>\n<td>When true, geolocation capture is enabled for applicable start flows. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>max_counted_hours</td>\n<td>integer</td>\n<td>yes</td>\n<td>Maximum hours counted for a span. Integer from 1 through 24 inclusive.</td>\n<td>e.g. <code>12</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>There are no path parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["settings","time-tracking"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"74832c2a-7b1b-4b6f-ba48-8c38cfdcfe10","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"active\": true,\n  \"active_timer_end_of_day\": true,\n  \"active_geolocation\": false,\n  \"max_counted_hours\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"active\": true,\n    \"max_counted_hours\": 10,\n    \"timer_end_of_day\": {\n      \"active\": true\n    },\n    \"geolocation\": {\n      \"active\": false\n    }\n  }\n}"},{"id":"a560977a-00c2-4385-b150-dbd48091ac80","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The active field is required. (and 3 more errors)\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"active\": [\n      \"The active field is required.\"\n    ],\n    \"active_timer_end_of_day\": [\n      \"The active timer end of day field is required.\"\n    ],\n    \"active_geolocation\": [\n      \"The active geolocation field is required.\"\n    ],\n    \"max_counted_hours\": [\n      \"The max counted hours field is required.\"\n    ]\n  }\n}"},{"id":"0b3c9a9a-b2db-4e50-8400-ba717d2bc988","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"active\": true,\n  \"active_timer_end_of_day\": true,\n  \"active_geolocation\": false,\n  \"max_counted_hours\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"828062bb-bda0-4777-861a-83c640d5e4c7","name":"Forbidden (403) — subscription","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"active\": true,\n  \"active_timer_end_of_day\": true,\n  \"active_geolocation\": false,\n  \"max_counted_hours\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Time Tracking enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"c8521b0b-027d-42d3-962a-d88bf182183d","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"active\": true,\n  \"active_timer_end_of_day\": true,\n  \"active_geolocation\": false,\n  \"max_counted_hours\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-tracking"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"5ba4431e-91dc-4e93-9030-f6cb88e3c222"},{"name":"List time tracking entries","id":"a3f5cfab-1c95-4bba-83e3-dbfbf9fe3882","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/entries?offset=<integer>&limit=<integer>&period=<string>&start_date=<date>&end_date=<date>&working_now=<boolean>&search=<string>&sort=<string>&order=<string>&filter=<string>","description":"<h3>List time tracking entries</h3>\n\n<p>This endpoint returns a paginated list of time tracking entries across employees, subject to the caller’s access rules. Requires permission to list time tracking entries tenant-wide. When the response is the default company-wide list and the working-now filter is not applied, additional keys summarize open timers and tag choices for administrative use.</p>\n<hr />\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","entries"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(integer) Optional. Pagination offset used together with limit (page-bucket semantics: offset 0 with limit 10 is page 1; offset 10 with limit 10 is page 2). Default when omitted: 0. Negative submitted values are clamped to 0.</p>\n","type":"text/plain"},"key":"offset","value":"<integer>"},{"description":{"content":"<p>(integer) Optional. Rows per page. Default when omitted: 10. Minimum: 1; maximum: 100 inclusive. Values outside 1–100 fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"\n(string) Optional. Allowed when not using a custom date range. Accepted values: today, yesterday, week, month. When period, start_date, and end_date are all omitted, the API applies today for validation. Other single-token values fail validation (HTTP 422).","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string) Optional. Start of a custom range in YYYY-MM-DD format. Used with end_date instead of period.</p>\n","type":"text/plain"},"key":"start_date","value":"<date>"},{"description":{"content":"<p>(string) Optional. End of a custom range in YYYY-MM-DD format; must be on or after start_date. Together with start_date must not span more than 36 months.</p>\n","type":"text/plain"},"key":"end_date","value":"<date>"},{"description":{"content":"<p>(boolean) Optional. Must be a boolean when present (for example true or false in query parsing). When evaluated as truthy, narrows results to the “working now” scope and omits company-wide aggregate keys such as available_tags and working_now_employee_ids from the response.</p>\n","type":"text/plain"},"key":"working_now","value":"<boolean>"},{"description":{"content":"<p>(string) Optional. Free-text filter applied to name, entry timestamp, location, division, department, and tag fields as implemented on the server.</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort field. Allowed: time, started_at, ended_at, name, tag, location. Other values are ignored for sort selection and default ordering rules apply.</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>(string) Optional. Sort direction: asc or desc. Other values are normalized to desc.</p>\n","type":"text/plain"},"key":"order","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string parsed as semicolon-separated segments (for example department=1,2;tag=3,na). Department, division, and location segments use numeric ids; tag supports comma-separated ids or na for untagged. Equivalent array encodings may be merged by the server into that string form.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"0a255e04-cb2d-4899-90c5-b04df8928d1f","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/time-tracking/entries?offset=<integer>&limit=<integer>&period=<string>&start_date=<date>&end_date=<date>&working_now=<boolean>&search=<string>&sort=<string>&order=<string>&filter=<string>","host":["https://pubapi.talenthr.io/v1"],"path":["time-tracking","entries"],"query":[{"key":"offset","value":"<integer>"},{"key":"limit","value":"<integer>"},{"key":"period","value":"<string>"},{"key":"start_date","value":"<date>"},{"key":"end_date","value":"<date>"},{"key":"working_now","value":"<boolean>"},{"key":"search","value":"<string>"},{"key":"sort","value":"<string>"},{"key":"order","value":"<string>"},{"key":"filter","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": 1,\n    \"working_now_employee_ids\": [\n      15\n    ],\n    \"rows\": [\n      {\n        \"id\": 8801,\n        \"employee_id\": 15,\n        \"started_by_id\": 15,\n        \"started_at_utc\": \"2026-05-04 07:30:00\",\n        \"ended_at_utc\": \"2026-05-04 09:45:00\",\n        \"duration_seconds\": 8100,\n        \"timezone\": \"Europe/Athens\",\n        \"active_geo_location\": false,\n        \"geo_location\": null,\n        \"longitude\": null,\n        \"latitude\": null,\n        \"created_at\": \"2026-05-04 07:30:05\",\n        \"updated_at\": \"2026-05-04 09:45:10\",\n        \"deleted_at\": null,\n        \"first_name\": \"Sam\",\n        \"last_name\": \"Chen\",\n        \"email\": \"sam.chen@example.com\",\n        \"is_terminated\": false,\n        \"photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/example/avatars/15.jpg\",\n        \"resized_photo_url\": \"https://d2spisfw2i7npf.cloudfront.net/example/avatars/15_sm.jpg\",\n        \"job_title_id\": 3,\n        \"job_title\": \"Account Executive\",\n        \"time_tracking_tag_id\": 2,\n        \"time_tracking_tag\": \"Client work\",\n        \"department_id\": 20,\n        \"department\": \"Sales\",\n        \"division_id\": 5,\n        \"division\": \"Commercial\",\n        \"location_id\": 12,\n        \"location\": \"Athens HQ\",\n        \"started_at_local\": \"2026-05-04 10:30:00\",\n        \"ended_at_local\": \"2026-05-04 12:45:00\",\n        \"started_by_name\": \"Sam Chen\",\n        \"can_edit\": true,\n        \"can_start\": true,\n        \"available_tag_ids\": [\n          1,\n          2\n        ]\n      }\n    ],\n    \"available_tags\": [\n      {\n        \"id\": 1,\n        \"name\": \"Office\"\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Client work\"\n      }\n    ]\n  }\n}"},{"id":"e3e7cdab-1e8f-4643-b54c-6b3e346f9c6f","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/time-tracking/entries?limit=150","host":["https://pubapi.talenthr.io/v1"],"path":["time-tracking","entries"],"query":[{"key":"limit","value":"150"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The limit must not be greater than 100.\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"limit\": [\n      \"The limit must not be greater than 100.\"\n    ]\n  }\n}"},{"id":"45a09d6d-1856-46ba-be98-2d4f08229295","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/entries"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"1cd85b06-36d4-435a-a847-89f25a7f90b1","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/entries"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"a3f5cfab-1c95-4bba-83e3-dbfbf9fe3882"},{"name":"Get time tracking filter options","id":"2f8c7d18-4a77-4c1a-95f1-161cd342e246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/filters","description":"<p>This endpoint returns divisions, departments, and time tracking tags used to build filter strings for time tracking lists and reports. Authorization uses the same permission gate as listing time tracking entries tenant-wide.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","filters"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"8aa7a817-adbc-4daa-92c9-de3373716ec5","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/filters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"locations\": [\n      {\n        \"id\": 12,\n        \"name\": \"Athens HQ\",\n        \"object_type\": \"location\"\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 5,\n        \"name\": \"Commercial\",\n        \"object_type\": \"division\"\n      }\n    ],\n    \"departments\": [\n      {\n        \"id\": 20,\n        \"name\": \"Sales\",\n        \"object_type\": \"department\"\n      }\n    ],\n    \"tags\": [\n      {\n        \"id\": 1,\n        \"name\": \"Office\"\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Client work\"\n      }\n    ]\n  }\n}"},{"id":"d1e8f160-7519-4a5b-b75b-c1ea5b0925ca","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/filters"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"56a94a0f-eff4-4893-a633-28a611400a0d","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/filters"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"2f8c7d18-4a77-4c1a-95f1-161cd342e246"},{"name":"List time tracking tags","id":"93acd22e-0f1c-4e4e-8f10-1b8920d4e144","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags","description":"<p>This endpoint lists all time tracking tags, ordered by name.  Requires permission to list time tracking tags.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","tags"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"4eb53f09-f044-4795-9b1f-b4189bae54a7","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Office\",\n      \"required_for_all\": true,\n      \"is_active\": true,\n      \"created_at\": \"2026-01-10 08:00:00\",\n      \"updated_at\": \"2026-01-15 10:30:00\",\n      \"deleted_at\": null,\n      \"time_tracking_tag_required_for\": []\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Sales floor\",\n      \"required_for_all\": false,\n      \"is_active\": true,\n      \"created_at\": \"2026-02-01 09:00:00\",\n      \"updated_at\": \"2026-02-01 09:00:00\",\n      \"deleted_at\": null,\n      \"time_tracking_tag_required_for\": [\n        {\n          \"id\": 501,\n          \"time_tracking_tag_id\": 2,\n          \"required_for_type\": \"division\",\n          \"object_id\": 5,\n          \"object_name\": \"Commercial\",\n          \"created_at\": \"2026-02-01 09:00:05\",\n          \"updated_at\": \"2026-02-01 09:00:05\",\n          \"deleted_at\": null\n        }\n      ]\n    }\n  ]\n}"},{"id":"43908ff8-fc55-45be-a11e-e3306376277c","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"dee0c027-b1a5-4b36-a48f-f82c6aee8524","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"93acd22e-0f1c-4e4e-8f10-1b8920d4e144"},{"name":"Create time tracking tag","id":"7dd91204-38d6-496b-b36f-d51278d925f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Unique tag name for the tenant. Maximum length 255 characters. Example: Client work.\n  \"required_for_all\": \"<boolean>\", // (Required) Type: boolean. When true, the tag applies to all employees and time_tracking_tag_required_for must be omitted. Example: true.\n  \"time_tracking_tag_required_for\": { // (Required when required_for_all is false.) Object with six array keys: division, department, location, job_title, emp_state (employment-status custom field ids), employee (employee ids). Every key must be present; each value must be an array (possibly empty). At least one integer id must appear in aggregate across all arrays, and ids must exist in the corresponding domain tables.\n    \"division\": [\"<integer>\"],\n    \"department\": [\"<integer>\"],\n    \"location\": [\"<integer>\"],\n    \"job_title\": [\"<integer>\"],\n    \"emp_state\": [\"<integer>\"],\n    \"employee\": [\"<integer>\"]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags","description":"<h3>Create time tracking tag</h3>\n\n<p>Creates a time tracking tag for the tenant. The tag can apply to all employees or to selected groups and individuals defined in the request.</p>\n<p>Requires permission to create time tracking tags.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Unique tag name for the tenant. Maximum 255 characters.</td>\n<td>e.g. <code>Client work</code></td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>yes</td>\n<td>When true, the tag applies to all employees and <code>time_tracking_tag_required_for</code> must be omitted. When false, send <code>time_tracking_tag_required_for</code> with scoped audiences. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>time_tracking_tag_required_for</td>\n<td>object</td>\n<td>conditional</td>\n<td>Required when <code>required_for_all</code> is false. Object must include exactly these keys: <code>division</code>, <code>department</code>, <code>location</code>, <code>job_title</code>, <code>emp_state</code> (employment status custom field ids), <code>employee</code>; each value is an array of integer ids (possibly empty). At least one id must appear in aggregate across all arrays; ids must exist in the tenant.</td>\n<td>e.g. <code>{\"division\":[5,8],\"department\":[20,21],\"location\":[12,14],\"job_title\":[3,4],\"emp_state\":[101,102],\"employee\":[15,18,22]}</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>There are no path parameters.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","tags"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"fbb0a4ac-478a-4207-9abe-59f141636b1a","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Client work\",\n  \"required_for_all\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 3,\n    \"name\": \"Client work\",\n    \"required_for_all\": true,\n    \"is_active\": true,\n    \"created_at\": \"2026-05-04 11:00:00\",\n    \"updated_at\": \"2026-05-04 11:00:00\",\n    \"deleted_at\": null,\n    \"time_tracking_tag_required_for\": []\n  }\n}"},{"id":"2554b7c5-56f4-4053-8ef2-d5e21cb482ba","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The name field is required. (and 2 more errors)\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\n      \"The name field is required.\"\n    ],\n    \"required_for_all\": [\n      \"The required for all field is required when time tracking tag required for is not present.\"\n    ],\n    \"time_tracking_tag_required_for\": [\n      \"The time tracking tag required for field is required when required for all is not present.\"\n    ]\n  }\n}"},{"id":"bbae9cb1-c77d-4bdd-bd8e-e8d888975675","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Client work\",\n  \"required_for_all\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"1d5bd713-3d8b-44ec-8692-ce6845518985","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Client work\",\n  \"required_for_all\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"7dd91204-38d6-496b-b36f-d51278d925f7"},{"name":"Delete time tracking tag","id":"0446d1c4-9136-4a32-9ca2-20cdb18d5c40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/:timeTrackingTag","description":"<p>This endpoint deletes a time tracking tag and its applicability rows. Entries that already used the tag will remain. Requires permission to delete the tag.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","tags",":timeTrackingTag"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Time tracking tag id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingTag"}]}},"response":[{"id":"7a618c9b-531e-492f-9820-a63bbc1b62d2","name":"OK (200)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true\n}"},{"id":"876d3b3f-5f48-471a-9e8f-ba53db3797ab","name":"Not found exception (404)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingTag] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"823e5aed-ebbe-446b-807c-3c056e509f9f","name":"Forbidden (403) — permission","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"0a5fbc24-68fe-4bd7-9320-c7187a23c6e9","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"0446d1c4-9136-4a32-9ca2-20cdb18d5c40"},{"name":"Get time tracking tag","id":"d93e6899-8879-43b3-ad45-fe5ca958a909","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/:timeTrackingTag","description":"<p>This endpoint returns one time tracking tag with its applicability rows. Requires permission to view that tag.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","tags",":timeTrackingTag"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Time tracking tag id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingTag"}]}},"response":[{"id":"9b0521fc-3fff-4919-b822-df57189a4e87","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"name\": \"Sales floor\",\n    \"required_for_all\": false,\n    \"is_active\": true,\n    \"created_at\": \"2026-02-01 09:00:00\",\n    \"updated_at\": \"2026-02-01 09:00:00\",\n    \"deleted_at\": null,\n    \"time_tracking_tag_required_for\": [\n      {\n        \"id\": 501,\n        \"time_tracking_tag_id\": 2,\n        \"required_for_type\": \"division\",\n        \"object_id\": 5,\n        \"object_name\": \"Commercial\",\n        \"created_at\": \"2026-02-01 09:00:05\",\n        \"updated_at\": \"2026-02-01 09:00:05\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"181afd11-81a8-4fa3-a9c2-521e2f021989","name":"Not found exception (404)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingTag] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"4bc94c0c-10f6-4d56-9b1e-129e3aa06453","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"8411325f-130d-4a3b-b2cb-922e3b40884a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"d93e6899-8879-43b3-ad45-fe5ca958a909"},{"name":"Update time tracking tag","id":"eda26447-de7a-4c4b-ad59-14e6d8e89191","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\", // (Required) Type: string. Unique tag name for the tenant. Maximum length 255 characters. Example: Sales floor.\n  \"required_for_all\": \"<boolean>\", // (Required) Type: boolean. When true, the tag applies to all employees and time_tracking_tag_required_for must be omitted. When false, include time_tracking_tag_required_for. Example: false.\n  \"time_tracking_tag_required_for\": { // (Required when required_for_all is false.) Object with six array keys: division, department, location, job_title, emp_state (employment-status custom field ids), employee (employee ids). Every key must be present; each value must be an array (possibly empty). At least one integer id must appear in aggregate across all arrays, and ids must exist in the corresponding domain tables.\n    \"division\": [\"<integer>\"],\n    \"department\": [\"<integer>\"],\n    \"location\": [\"<integer>\"],\n    \"job_title\": [\"<integer>\"],\n    \"emp_state\": [\"<integer>\"],\n    \"employee\": [\"<integer>\"]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/:timeTrackingTag","description":"<h3>Update time tracking tag</h3>\n\n<p>Updates an existing time tracking tag identified in the path. The tag name and audience (all employees or scoped groups and individuals) can be changed using the same rules as when creating a tag.</p>\n<p>Requires permission to update the time tracking tag.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>yes</td>\n<td>Unique tag name for the tenant. Maximum 255 characters.</td>\n<td>e.g. <code>Sales floor</code></td>\n</tr>\n<tr>\n<td>required_for_all</td>\n<td>boolean</td>\n<td>yes</td>\n<td>When true, the tag applies to all employees and <code>time_tracking_tag_required_for</code> must be omitted. When false, send <code>time_tracking_tag_required_for</code> with scoped audiences. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>time_tracking_tag_required_for</td>\n<td>object</td>\n<td>conditional</td>\n<td>Required when <code>required_for_all</code> is false. Object must include exactly these keys: <code>division</code>, <code>department</code>, <code>location</code>, <code>job_title</code>, <code>emp_state</code> (employment status custom field ids), <code>employee</code>; each value is an array of integer ids (possibly empty). At least one id must appear in aggregate across all arrays; ids must exist in the tenant.</td>\n<td>e.g. <code>{\"division\":[5,8],\"department\":[20,21],\"location\":[12,14],\"job_title\":[3,4],\"emp_state\":[101,102],\"employee\":[15,18,22]}</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p>Path parameters are documented under Params.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["time-tracking","tags",":timeTrackingTag"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[{"description":{"content":"<p>(integer) Time tracking tag id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"timeTrackingTag"}]}},"response":[{"id":"8b0ec23a-8ff7-4c39-b3b3-fdd479b41e30","name":"OK (200)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Sales floor\",\n  \"required_for_all\": false,\n  \"time_tracking_tag_required_for\": {\n    \"division\": [5, 8],\n    \"department\": [20, 21],\n    \"location\": [12, 14],\n    \"job_title\": [3, 4],\n    \"emp_state\": [101, 102],\n    \"employee\": [15, 18, 22]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 2,\n    \"name\": \"Sales floor\",\n    \"required_for_all\": false,\n    \"is_active\": true,\n    \"created_at\": \"2026-02-01 09:00:00\",\n    \"updated_at\": \"2026-05-04 12:15:00\",\n    \"deleted_at\": null,\n    \"time_tracking_tag_required_for\": [\n      {\n        \"id\": 501,\n        \"time_tracking_tag_id\": 2,\n        \"required_for_type\": \"division\",\n        \"object_id\": 5,\n        \"object_name\": \"Commercial\",\n        \"created_at\": \"2026-02-01 09:00:05\",\n        \"updated_at\": \"2026-02-01 09:00:05\",\n        \"deleted_at\": null\n      }\n    ]\n  }\n}"},{"id":"ce283b06-5346-40bc-9a82-270f6f3a2d4a","name":"Unprocessable Entity / Validation Exception (422)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The name field is required. (and 2 more errors)\",\n    \"hr_code\": 100\n  },\n  \"attempts\": 0,\n  \"errors\": {\n    \"name\": [\n      \"The name field is required.\"\n    ],\n    \"required_for_all\": [\n      \"The required for all field is required when time tracking tag required for is not present.\"\n    ],\n    \"time_tracking_tag_required_for\": [\n      \"The time tracking tag required for field is required when required for all is not present.\"\n    ]\n  }\n}"},{"id":"aded0808-d4c7-4f2e-bc35-0f6f357cad14","name":"Not found exception (404)","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Sales floor\",\n  \"required_for_all\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/99999999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\TimeTrackingTag] 99999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"6bde7a7b-a30a-46e6-9c03-c741c39d5e53","name":"Forbidden (403) — permission","originalRequest":{"method":"PUT","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Sales floor\",\n  \"required_for_all\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"50bc56b7-b79b-4cbc-b349-02f7b888d889","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Sales floor\",\n  \"required_for_all\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/time-tracking/tags/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"eda26447-de7a-4c4b-ad59-14e6d8e89191"}],"id":"aefaf19c-b8dc-4c88-bcf6-2d32e2bae016","_postman_id":"aefaf19c-b8dc-4c88-bcf6-2d32e2bae016","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Reference values","item":[{"name":"Get type and permission values","id":"218a7f93-833e-46c1-9543-4a5f021626f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields-values","description":"<h3>Get type and permission values</h3>\n\n<p>This endpoint returns reference data used when building custom field and permission payloads. The <strong><code>data</code></strong> object includes <strong><code>type_values</code></strong> (the catalog of custom field types) and <strong><code>permission_values</code></strong> (allowed <strong><code>action</code></strong> and <strong><code>condition</code></strong> strings for permission rows). Integrators use these structures for employee custom field create and update, default document folder create and update, asset custom fields, and other requests in this collection that rely on the same reference.</p>\n\n<p>Requires permission to list employee custom fields.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["custom-fields-values"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"93eb4c03-4b72-494a-a57c-32d1009551f9","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields-values"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"type_values\": [\n      {\"id\": 1, \"slug\": \"text-field\", \"name\": \"Text field\", \"is_visible\": true},\n      {\"id\": 2, \"slug\": \"long-text-field\", \"name\": \"Long text field\", \"is_visible\": true},\n      {\"id\": 3, \"slug\": \"single-choice\", \"name\": \"Single choice\", \"is_visible\": true},\n      {\"id\": 4, \"slug\": \"multiple-choice\", \"name\": \"Multiple choice\", \"is_visible\": true},\n      {\"id\": 5, \"slug\": \"link\", \"name\": \"Link\", \"is_visible\": true},\n      {\"id\": 6, \"slug\": \"date\", \"name\": \"Date\", \"is_visible\": true},\n      {\"id\": 7, \"slug\": \"person\", \"name\": \"Person\", \"is_visible\": true},\n      {\"id\": 8, \"slug\": \"group\", \"name\": \"Group\", \"is_visible\": false}\n    ],\n    \"permission_values\": {\n      \"conditions\": [\"all\", \"manager\", \"self\"],\n      \"actions\": [\"view\", \"edit\"]\n    }\n  }\n}"},{"id":"068c7e40-ba3b-44fa-b053-bd31e675eef8","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields-values"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"You do not have permission to perform this action.\",\n    \"code\": 403,\n    \"hr_code\": 10,\n    \"hr_code_key\": \"access_denied\"\n  }\n}"},{"id":"12f4d61e-e05d-487d-9486-61fc349867db","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/custom-fields-values"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"218a7f93-833e-46c1-9543-4a5f021626f6"}],"id":"c4608d75-9a3c-4046-85b8-92f96ed18bef","_postman_id":"c4608d75-9a3c-4046-85b8-92f96ed18bef","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"User roles","item":[{"name":"List user roles","id":"264910d0-e5f9-42af-9d78-45f6967a9cf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/user-roles","description":"<p>This endpoint returns all tenant user roles with id, name, slug, and role flags (is_super_admin, is_custom, deletable, editable, is_default).</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["user-roles"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"e22a595a-4b84-4a6f-af23-9dbac7fd1850","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/user-roles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"Company Administrator\",\n      \"slug\": \"company-administrator\",\n      \"is_super_admin\": 1,\n      \"is_custom\": 0,\n      \"deletable\": 0,\n      \"editable\": 0,\n      \"is_default\": 0\n    },\n    {\n      \"id\": 2,\n      \"name\": \"HR Manager\",\n      \"slug\": \"hr-manager\",\n      \"is_super_admin\": 0,\n      \"is_custom\": 0,\n      \"deletable\": 0,\n      \"editable\": 1,\n      \"is_default\": 0\n    },\n    {\n      \"id\": 3,\n      \"name\": \"Employee\",\n      \"slug\": \"employee\",\n      \"is_super_admin\": 0,\n      \"is_custom\": 0,\n      \"deletable\": 0,\n      \"editable\": 1,\n      \"is_default\": 1\n    }\n  ]\n}"},{"id":"f37e6c50-eefc-47ef-baf7-9e500a631f16","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/user-roles"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"264910d0-e5f9-42af-9d78-45f6967a9cf7"}],"id":"b6b60eed-263f-412b-924e-661dc65e82ab","_postman_id":"b6b60eed-263f-412b-924e-661dc65e82ab","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Time off settings","item":[{"name":"Get time off settings","id":"7bfbb04b-2196-480c-b8f6-d5a8651a3052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-off","description":"<p>This endpoint returns time off settings for the authenticated tenant under data (time_off_cycle, time_off_hours, time_off_calendar_notes). Requires permission to view time off settings.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["settings","time-off"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"985c039a-b881-48a8-b68b-28a26c52bae5","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"time_off_cycle\": {\n      \"day\": 1,\n      \"month\": 1\n    },\n    \"time_off_hours\": {\n      \"active\": false\n    },\n    \"time_off_calendar_notes\": {\n      \"active\": false\n    }\n  }\n}"},{"id":"c00aa3b8-d1e5-432c-8477-2990bd19b4f5","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"f5705170-512b-4700-9756-3d3385af9c4b","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"7bfbb04b-2196-480c-b8f6-d5a8651a3052"},{"name":"Update time off settings","id":"765a2e34-205a-456b-b6db-445f91a2e0b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_off_cycle\": {\n    \"day\": \"<integer>\", // (Required) Type: integer. Day of month. Minimum: 1; maximum: 31. Example: 1.\n    \"month\": \"<integer>\" // (Required) Type: integer. Month of year. Minimum: 1; maximum: 12. Example: 1.\n  },\n  \"time_off_hours\": \"<boolean>\", // (Required) Type: boolean. Enables or disables time off hour-based tracking. Example: false. JSON booleans only (true or false).\n  \"time_off_calendar_notes\": \"<boolean>\" // (Required) Type: boolean. Enables or disables time off calendar notes. Example: false.\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-off","description":"<p>This endpoint updates time off settings for the authenticated tenant. Requires permission to edit time off settings.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>time_off_cycle</td>\n<td>object</td>\n<td>yes</td>\n<td>Annual time off cycle start date. Send as a JSON object with integer <code>day</code> (1–31) and <code>month</code> (1–12), or as a JSON-encoded string of that object. <code>day</code> and <code>month</code> must form a valid calendar date for the current year.</td>\n<td>e.g. <code>{\"day\":1,\"month\":1}</code></td>\n</tr>\n<tr>\n<td>time_off_hours</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Controls whether employees may request time off in hours for the tenant. When <code>true</code>, hour-based time off requests are permitted; when <code>false</code>, they are not. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n<tr>\n<td>time_off_calendar_notes</td>\n<td>boolean</td>\n<td>yes</td>\n<td>Enables or disables time off calendar notes. JSON booleans only.</td>\n<td>e.g. <code>false</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["settings","time-off"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"da499ec0-e292-465a-80de-adf4c351c500","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_off_cycle\": {\n    \"day\": 1,\n    \"month\": 1\n  },\n  \"time_off_hours\": false,\n  \"time_off_calendar_notes\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"time_off_cycle\": {\n      \"day\": 1,\n      \"month\": 1\n    },\n    \"time_off_hours\": {\n      \"active\": false\n    },\n    \"time_off_calendar_notes\": {\n      \"active\": false\n    }\n  }\n}"},{"id":"62af2522-98ce-43a6-b167-9dde41669a70","name":"Unprocessable Content (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_off_cycle\": {\n    \"day\": 0,\n    \"month\": 13\n  },\n  \"time_off_hours\": false,\n  \"time_off_calendar_notes\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"time_off_cycle\": [\n        \"The field is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"030a5968-3993-4d35-8a96-570a907f14d2","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_off_cycle\": {\n    \"day\": 1,\n    \"month\": 1\n  },\n  \"time_off_hours\": false,\n  \"time_off_calendar_notes\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"05f4e95b-a867-4de5-90e5-1a7b0132da2b","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"time_off_cycle\": {\n    \"day\": 1,\n    \"month\": 1\n  },\n  \"time_off_hours\": false,\n  \"time_off_calendar_notes\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/settings/time-off"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"765a2e34-205a-456b-b6db-445f91a2e0b6"}],"id":"0caaf86c-e4a7-41f5-aa68-d3d9b87e2a3b","_postman_id":"0caaf86c-e4a7-41f5-aa68-d3d9b87e2a3b","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}},{"name":"Reports","item":[{"name":"Get report filters","id":"c603f273-44c3-4ed8-8847-9c1547428de8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/filters?model=<string>","description":"<p>This endpoint returns the available filter values for the specified report.</p>\n<p>Many report endpoints accept a <code>filter</code> query parameter. Use this endpoint to discover valid filter values for a given report model.</p>\n<p>The returned filter values reflect the values that are present in the underlying data used by the report. If a value is not returned, that does not indicate a validation failure. You may still provide that value when filtering the report; the report will simply return zero results when the value does not match any records.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","filters"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Required. Report model identifier. Allowed: employee_time_tracking_report, company_time_tracking_report, gender_report, age_report, location_report, division_report, department_report, seniority_report, compensation_report, headcount_report, hire_leave_report, employee_performance_report, timeoff_budgets_report.</p>\n","type":"text/plain"},"key":"model","value":"<string>"}],"variable":[]}},"response":[{"id":"fc3d7046-a592-4cba-aff5-e833024341d5","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/filters?model=gender_report","host":["https://pubapi.talenthr.io/v1"],"path":["reports","filters"],"query":[{"key":"model","value":"gender_report"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"locations\": [\n      {\n        \"id\": 10,\n        \"name\": \"Athens\",\n        \"object_type\": \"location\"\n      },\n      {\n        \"id\": \"N/A\",\n        \"name\": \"N/A\",\n        \"object_type\": null\n      }\n    ],\n    \"divisions\": [\n      {\n        \"id\": 3,\n        \"name\": \"Operations\",\n        \"object_type\": \"division\"\n      },\n      {\n        \"id\": \"N/A\",\n        \"name\": \"N/A\",\n        \"object_type\": null\n      }\n    ],\n    \"departments\": [\n      {\n        \"id\": 7,\n        \"name\": \"Engineering\",\n        \"object_type\": \"department\"\n      },\n      {\n        \"id\": \"N/A\",\n        \"name\": \"N/A\",\n        \"object_type\": null\n      }\n    ],\n    \"job_titles\": [\n      {\n        \"id\": 12,\n        \"name\": \"Software Engineer\",\n        \"object_type\": \"job_title\"\n      },\n      {\n        \"id\": \"N/A\",\n        \"name\": \"N/A\",\n        \"object_type\": null\n      }\n    ],\n    \"emp_state\": [\n      {\n        \"id\": 2,\n        \"name\": \"Active\",\n        \"object_type\": \"employment_status\"\n      },\n      {\n        \"id\": \"N/A\",\n        \"name\": \"N/A\",\n        \"object_type\": null\n      }\n    ],\n    \"managers\": [\n      {\n        \"id\": 5,\n        \"first_name\": \"Alex\",\n        \"last_name\": \"Smith\",\n        \"email\": \"alex.smith@example.com\"\n      },\n      {\n        \"id\": \"N/A\",\n        \"name\": \"N/A\",\n        \"object_type\": null\n      }\n    ],\n    \"genders\": [\n      {\n        \"id\": \"male\",\n        \"name\": \"Male\"\n      },\n      {\n        \"id\": \"female\",\n        \"name\": \"Female\"\n      },\n      {\n        \"id\": \"Non-binary\",\n        \"name\": \"Non-binary\"\n      }\n    ]\n  }\n}"},{"id":"dc8bb26e-b05b-4586-9555-153924a4e015","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/filters?model=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","filters"],"query":[{"key":"model","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"model\": [\n        \"The selected model is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"6f4ec25c-b102-4b84-9525-3ad87c13b8b4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/filters?model=gender_report","host":["https://pubapi.talenthr.io/v1"],"path":["reports","filters"],"query":[{"key":"model","value":"gender_report"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c603f273-44c3-4ed8-8847-9c1547428de8"},{"name":"Get seniority report","id":"63149499-b5a6-4f4c-9b9f-f3ce45c01368","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/seniority?group_by=<string>&filter=<string>&exclude_na=<string>","description":"<p>This endpoint returns seniority report aggregates for the tenant. Requires permission to view core reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","seniority"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Breakdown dimension. Allowed: location, department, division, gender, age. Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender).</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) excludes the <strong>N/A</strong> bucket from the breakdown. Any other value when this parameter is present includes <strong>N/A</strong>. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string>"}],"variable":[]}},"response":[{"id":"184f148a-ac8f-4490-beea-1f3f27173a2e","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/seniority"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"< 1 year\": 4,\n      \"1 - 2 years\": 3,\n      \"2 - 3 years\": 2,\n      \"3 - 4 years\": 1,\n      \"4 - 5 years\": 1,\n      \"5 - 10 years\": 5,\n      \"10+ years\": 2\n    },\n    \"object_selectors\": {\n      \"< 1 year\": \"< 1 year\",\n      \"1 - 2 years\": \"1 - 2 years\",\n      \"2 - 3 years\": \"2 - 3 years\",\n      \"3 - 4 years\": \"3 - 4 years\",\n      \"4 - 5 years\": \"4 - 5 years\",\n      \"5 - 10 years\": \"5 - 10 years\",\n      \"10+ years\": \"10+ years\"\n    },\n    \"group_by\": {},\n    \"group_by_selectors\": {}\n  }\n}"},{"id":"b1299e06-259f-4f2f-9746-45cd3c2c474d","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority?group_by=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority"],"query":[{"key":"group_by","value":"location"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"< 1 year\": 4,\n      \"1 - 2 years\": 3,\n      \"2 - 3 years\": 2,\n      \"3 - 4 years\": 1,\n      \"4 - 5 years\": 1,\n      \"5 - 10 years\": 5,\n      \"10+ years\": 2\n    },\n    \"object_selectors\": {\n      \"< 1 year\": \"< 1 year\",\n      \"1 - 2 years\": \"1 - 2 years\",\n      \"2 - 3 years\": \"2 - 3 years\",\n      \"3 - 4 years\": \"3 - 4 years\",\n      \"4 - 5 years\": \"4 - 5 years\",\n      \"5 - 10 years\": \"5 - 10 years\",\n      \"10+ years\": \"10+ years\"\n    },\n    \"group_by\": {\n      \"< 1 year\": {\n        \"Athens\": 2,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 1\n      },\n      \"1 - 2 years\": {\n        \"Athens\": 1,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 1\n      },\n      \"2 - 3 years\": {\n        \"Athens\": 1,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"3 - 4 years\": {\n        \"Athens\": 1,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"4 - 5 years\": {\n        \"Athens\": 0,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"5 - 10 years\": {\n        \"Athens\": 2,\n        \"Berlin\": 1,\n        \"London\": 1,\n        \"N/A\": 1\n      },\n      \"10+ years\": {\n        \"Athens\": 1,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 0\n      }\n    },\n    \"group_by_selectors\": {\n      \"< 1 year\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"1 - 2 years\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2 - 3 years\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"3 - 4 years\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"4 - 5 years\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"5 - 10 years\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"10+ years\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      }\n    }\n  }\n}"},{"id":"805776e6-f7ca-4bb3-969f-aea098571010","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"d5908215-66b6-4392-b517-a3b731c5cff2","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/seniority"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"851709d5-d141-4dce-9d71-1a4b9446d7c5","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/seniority"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"63149499-b5a6-4f4c-9b9f-f3ce45c01368"},{"name":"Get genders report","id":"07e77533-49c9-481a-9483-4aa0c73cf8b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/genders?group_by=<string>&filter=<string>&exclude_na=<string>","description":"<p>This endpoint returns gender report aggregates for the tenant. Requires permission to view demographics reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","genders"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Breakdown dimension. Allowed: location, department, division, age, seniority. Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender). Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with model=gender_report.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) excludes the <strong>N/A</strong> bucket from the breakdown. Any other value when this parameter is present includes <strong>N/A</strong>. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string>"}],"variable":[]}},"response":[{"id":"53a5c5fd-2598-45c7-a3c2-58f3a9ca689b","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/genders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"Female\": 7,\n      \"Male\": 9,\n      \"Non-binary\": 2\n    },\n    \"object_selectors\": {\n      \"Female\": \"Female\",\n      \"Male\": \"Male\",\n      \"Non-binary\": \"Non-binary\"\n    },\n    \"group_by\": {},\n    \"group_by_selectors\": {}\n  }\n}"},{"id":"fd0cb4c8-a10f-4f16-89f2-82198cddd8cf","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders?group_by=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders"],"query":[{"key":"group_by","value":"location"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"Female\": 7,\n      \"Male\": 9,\n      \"Non-binary\": 2\n    },\n    \"object_selectors\": {\n      \"Female\": \"Female\",\n      \"Male\": \"Male\",\n      \"Non-binary\": \"Non-binary\"\n    },\n    \"group_by\": {\n      \"Female\": {\n        \"Athens\": 3,\n        \"Berlin\": 2,\n        \"London\": 0,\n        \"N/A\": 2\n      },\n      \"Male\": {\n        \"Athens\": 4,\n        \"Berlin\": 3,\n        \"London\": 0,\n        \"N/A\": 2\n      },\n      \"Non-binary\": {\n        \"Athens\": 1,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 0\n      }\n    },\n    \"group_by_selectors\": {\n      \"Female\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"Male\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"Non-binary\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      }\n    }\n  }\n}"},{"id":"c01f9044-c04f-463a-bae6-3c9ddfac8f61","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"b4c19955-df71-46e2-b55d-27b44d4e12a7","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/genders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"03eb9312-b97d-46bd-8b99-17965e899d29","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/genders"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"07e77533-49c9-481a-9483-4aa0c73cf8b3"},{"name":"Get aggregate job records report","id":"c66bd530-6794-486e-b237-7017ce0cfb96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records?object=<string>&group_by=<string>&filter=<string>&exclude_na=<string>","description":"<p>This endpoint returns aggregate job record report data for the tenant. Requires permission to view core reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","aggregate-job-records"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Required. Report object dimension. Allowed: location, department, division.</p>\n","type":"text/plain"},"key":"object","value":"<string>"},{"description":{"content":"<p>(string) Optional. Breakdown dimension. Allowed: location, department, division, gender, age, seniority. Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender). Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with model based on object: location_report, department_report, or division_report.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) excludes the <strong>N/A</strong> bucket from the breakdown. Any other value when this parameter is present includes <strong>N/A</strong>. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string>"}],"variable":[]}},"response":[{"id":"8a4ae183-9788-406f-a39c-34b57111ce64","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records?object=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records"],"query":[{"key":"object","value":"location"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"Athens\": 12,\n      \"Berlin\": 4,\n      \"London\": 2,\n      \"N/A\": 3\n    },\n    \"object_selectors\": {\n      \"Athens\": 10,\n      \"Berlin\": 11,\n      \"London\": 12,\n      \"N/A\": null\n    },\n    \"group_by\": {},\n    \"group_by_selectors\": {}\n  }\n}"},{"id":"f9f4882a-1258-46fd-93fd-833798c66491","name":"OK (200) — grouped by gender","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records?object=location&group_by=gender","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records"],"query":[{"key":"object","value":"location"},{"key":"group_by","value":"gender"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"Athens\": 12,\n      \"Berlin\": 4,\n      \"London\": 2,\n      \"N/A\": 3\n    },\n    \"object_selectors\": {\n      \"Athens\": 10,\n      \"Berlin\": 11,\n      \"London\": 12,\n      \"N/A\": null\n    },\n    \"group_by\": {\n      \"Athens\": {\n        \"Female\": 5,\n        \"Male\": 7,\n        \"Non-binary\": 0\n      },\n      \"Berlin\": {\n        \"Female\": 2,\n        \"Male\": 2,\n        \"Non-binary\": 0\n      },\n      \"London\": {\n        \"Female\": 1,\n        \"Male\": 1,\n        \"Non-binary\": 0\n      },\n      \"N/A\": {\n        \"Female\": 1,\n        \"Male\": 2,\n        \"Non-binary\": 0\n      }\n    },\n    \"group_by_selectors\": {\n      \"Athens\": {\n        \"Female\": \"Female\",\n        \"Male\": \"Male\",\n        \"Non-binary\": \"Non-binary\"\n      },\n      \"Berlin\": {\n        \"Female\": \"Female\",\n        \"Male\": \"Male\",\n        \"Non-binary\": \"Non-binary\"\n      },\n      \"London\": {\n        \"Female\": \"Female\",\n        \"Male\": \"Male\",\n        \"Non-binary\": \"Non-binary\"\n      },\n      \"N/A\": {\n        \"Female\": \"Female\",\n        \"Male\": \"Male\",\n        \"Non-binary\": \"Non-binary\"\n      }\n    }\n  }\n}"},{"id":"7e5c6c59-439e-400b-a6d4-bbb15d508d0d","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records?object=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records"],"query":[{"key":"object","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"object\": [\n        \"The selected object is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"2c79cae3-f1af-43e4-bd18-178c070efeaf","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records?object=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records"],"query":[{"key":"object","value":"location"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"8560564f-0c4b-407c-96dd-f8c900f464a7","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records?object=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records"],"query":[{"key":"object","value":"location"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c66bd530-6794-486e-b237-7017ce0cfb96"},{"name":"Get genders report employees","id":"994bc6de-b836-4cf7-9bbc-c4932dca0d8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/genders-employees?group_by=<string>&object_selector=<string>&group_by_selector=<string | integer>&filter=<string>&exclude_na=<string | integer>","description":"<p>This endpoint returns employees that match a breakdown cell from the gender demographics report.</p>\n<p>Requires permission to view demographics reports.</p>\n<p>Use <strong>GET</strong> <strong>https://pubapi.talenthr.io/v1/reports/genders</strong> to read aggregate totals, <strong>object_selectors</strong>, and <strong>group_by_selectors</strong>, then supply <strong>object_selector</strong> and, when drilling into a grouped cell, <strong>group_by</strong> plus <strong>group_by_selector</strong> accordingly.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","genders-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Secondary breakdown dimension aligned with GET https://pubapi.talenthr.io/v1/reports/genders. Allowed: location, department, division, age, seniority.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Gender bucket aligned with totals from GET https://pubapi.talenthr.io/v1/reports/genders (<strong>Female</strong>, <strong>Male</strong>, or <strong>Non-binary</strong>).</p>\n","type":"text/plain"},"key":"object_selector","value":"<string>"},{"description":{"content":"<p>(string or integer) When <strong>group_by</strong> is set: bucket identifier aligned with GET https://pubapi.talenthr.io/v1/reports/genders — <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> numeric ids; age band (<strong>&lt;= 20</strong>, <strong>21-30</strong>, <strong>31-40</strong>, <strong>41-55</strong>, <strong>56-69</strong>, <strong>70+</strong>, <strong>N/A</strong>); or seniority band (<strong>&lt; 1 year</strong>, <strong>1 - 2 years</strong>, <strong>2 - 3 years</strong>, <strong>3 - 4 years</strong>, <strong>4 - 5 years</strong>, <strong>5 - 10 years</strong>, <strong>10+ years</strong>).</p>\n","type":"text/plain"},"key":"group_by_selector","value":"<string | integer>"},{"description":{"content":"<p>(string) Optional. Filter string for reports. Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>gender_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) aligns with omitting <strong>N/A</strong> buckets the same way as GET https://pubapi.talenthr.io/v1/reports/genders. Any other value when this parameter is present includes <strong>N/A</strong> rows. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string | integer>"}],"variable":[]}},"response":[{"id":"87012372-edce-4fb7-afc6-1c09f0c5ee6b","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders-employees?object_selector=Male","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders-employees"],"query":[{"key":"object_selector","value":"Male"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 101,\n      \"photo_url\": \"https://cdn.example.com/photos/101/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/101/thumb.jpg\",\n      \"first_name\": \"Alex\",\n      \"last_name\": \"Smith\",\n      \"email\": \"alex.smith@example.com\",\n      \"job_title\": \"Software Developer\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Male\"\n      }\n    },\n    {\n      \"id\": 102,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Jordan\",\n      \"last_name\": \"Taylor\",\n      \"email\": \"jordan.taylor@example.com\",\n      \"job_title\": \"Product Manager\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Male\"\n      }\n    }\n  ]\n}"},{"id":"935d8742-a594-4985-a084-df8a247b0f96","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders-employees?group_by=location&object_selector=Female&group_by_selector=10","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders-employees"],"query":[{"key":"group_by","value":"location"},{"key":"object_selector","value":"Female"},{"key":"group_by_selector","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 201,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Jamie\",\n      \"last_name\": \"Jones\",\n      \"email\": \"jamie.jones@example.com\",\n      \"job_title\": \"Analyst\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    },\n    {\n      \"id\": 203,\n      \"photo_url\": \"https://cdn.example.com/photos/203/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/203/thumb.jpg\",\n      \"first_name\": \"Priya\",\n      \"last_name\": \"Nair\",\n      \"email\": \"priya.nair@example.com\",\n      \"job_title\": \"Finance Manager\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    }\n  ]\n}"},{"id":"0d74e55f-a000-4dd6-8a1b-eef49720bb4e","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders-employees?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders-employees"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"426e599a-dfac-4b30-a2d8-0bd9dd940991","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders-employees?object_selector=Male","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders-employees"],"query":[{"key":"object_selector","value":"Male"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"1be4a919-f97b-4aa3-a9aa-7b5d1d8a0202","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/genders-employees?object_selector=Male","host":["https://pubapi.talenthr.io/v1"],"path":["reports","genders-employees"],"query":[{"key":"object_selector","value":"Male"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"994bc6de-b836-4cf7-9bbc-c4932dca0d8e"},{"name":"Get aggregate job records report employees","id":"c8936f4d-62ae-4ef0-9457-cff0e0313659","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records-employees?object=<string>&group_by=<string>&object_selector=<string | integer>&group_by_selector=<string | integer>&filter=<string>&exclude_na=<string | integer>","description":"<p>This endpoint returns employees that match a breakdown cell from the aggregate job records report.</p>\n<p>Requires permission to view core reports.</p>\n<p>Use <strong>GET</strong> <strong>https://pubapi.talenthr.io/v1/reports/aggregate-job-records</strong> to read aggregate totals, <strong>object_selectors</strong>, and <strong>group_by_selectors</strong>, then supply <strong>object</strong>, <strong>object_selector</strong>, and — when drilling into a grouped cell — <strong>group_by</strong> plus <strong>group_by_selector</strong> accordingly.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","aggregate-job-records-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Required. Report object dimension aligned with GET https://pubapi.talenthr.io/v1/reports/aggregate-job-records. Allowed: location, department, division.</p>\n","type":"text/plain"},"key":"object","value":"<string>"},{"description":{"content":"<p>(string) Optional. Secondary breakdown dimension aligned with GET https://pubapi.talenthr.io/v1/reports/aggregate-job-records. Allowed: location, department, division, gender, age, seniority.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string or integer) Bucket on the primary <strong>object</strong> axis: numeric <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> id matching <strong>object_selectors</strong> from GET https://pubapi.talenthr.io/v1/reports/aggregate-job-records, or omit for the <strong>N/A</strong> bucket when that aggregate exists.</p>\n","type":"text/plain"},"key":"object_selector","value":"<string | integer>"},{"description":{"content":"<p>(string or integer) When <strong>group_by</strong> differs from <strong>object</strong>: bucket identifier aligned with <strong>group_by_selectors</strong> from GET https://pubapi.talenthr.io/v1/reports/aggregate-job-records — <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> numeric ids; gender (<strong>Female</strong>, <strong>Male</strong>, or <strong>Non-binary</strong>); age band (<strong>&lt;= 20</strong>, <strong>21-30</strong>, <strong>31-40</strong>, <strong>41-55</strong>, <strong>56-69</strong>, <strong>70+</strong>, <strong>N/A</strong>); or seniority band (<strong>&lt; 1 year</strong>, <strong>1 - 2 years</strong>, <strong>2 - 3 years</strong>, <strong>3 - 4 years</strong>, <strong>4 - 5 years</strong>, <strong>5 - 10 years</strong>, <strong>10+ years</strong>).</p>\n","type":"text/plain"},"key":"group_by_selector","value":"<string | integer>"},{"description":{"content":"<p>(string) Optional. Filter string for reports. Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong> set from <strong>object</strong>: <strong>location_report</strong>, <strong>department_report</strong>, or <strong>division_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) aligns with omitting <strong>N/A</strong> buckets the same way as GET https://pubapi.talenthr.io/v1/reports/aggregate-job-records. Any other value when this parameter is present includes <strong>N/A</strong> rows. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string | integer>"}],"variable":[]}},"response":[{"id":"0ad00f09-8743-40e6-8682-bba05add549e","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records-employees?object=location&object_selector=10","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records-employees"],"query":[{"key":"object","value":"location"},{"key":"object_selector","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 501,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Riley\",\n      \"last_name\": \"Chen\",\n      \"email\": \"riley.chen@example.com\",\n      \"job_title\": \"Engineer\",\n      \"primary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    },\n    {\n      \"id\": 502,\n      \"photo_url\": \"https://cdn.example.com/photos/502/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/502/thumb.jpg\",\n      \"first_name\": \"Sam\",\n      \"last_name\": \"Nwosu\",\n      \"email\": \"sam.nwosu@example.com\",\n      \"job_title\": \"Designer\",\n      \"primary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    }\n  ]\n}"},{"id":"69bc9cb8-9850-4a8e-940f-ebbddb1e431f","name":"OK (200) — grouped by gender","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records-employees?object=location&group_by=gender&object_selector=10&group_by_selector=Female","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records-employees"],"query":[{"key":"object","value":"location"},{"key":"group_by","value":"gender"},{"key":"object_selector","value":"10"},{"key":"group_by_selector","value":"Female"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 601,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Morgan\",\n      \"last_name\": \"Lee\",\n      \"email\": \"morgan.lee@example.com\",\n      \"job_title\": \"Operations Lead\",\n      \"primary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      },\n      \"secondary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      }\n    },\n    {\n      \"id\": 602,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Elena\",\n      \"last_name\": \"Petrova\",\n      \"email\": \"elena.petrova@example.com\",\n      \"job_title\": \"HR Coordinator\",\n      \"primary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      },\n      \"secondary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      }\n    }\n  ]\n}"},{"id":"7fbc157e-94f4-49b9-b78f-9fecc470402f","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records-employees?object=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records-employees"],"query":[{"key":"object","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"object\": [\n        \"The selected object is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"11d92fcf-cbaf-42e1-9272-99d709356ed1","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records-employees?object=location&object_selector=10","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records-employees"],"query":[{"key":"object","value":"location"},{"key":"object_selector","value":"10"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"3fa8ebf5-7a4f-4e35-82c9-fa71b2faad47","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/aggregate-job-records-employees?object=location&object_selector=10","host":["https://pubapi.talenthr.io/v1"],"path":["reports","aggregate-job-records-employees"],"query":[{"key":"object","value":"location"},{"key":"object_selector","value":"10"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c8936f4d-62ae-4ef0-9457-cff0e0313659"},{"name":"Get age profile report employees","id":"cdd2d107-de41-48e7-9127-e0ddb09936ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/age-profile-employees?group_by=<string>&object_selector=<string>&group_by_selector=<string | integer>&filter=<string>&exclude_na=<string | integer>","description":"<p>This endpoint returns employees that match a breakdown cell from the age profile demographics report.</p>\n<p>Requires permission to view demographics reports.</p>\n<p>Use <strong>GET</strong> <strong>https://pubapi.talenthr.io/v1/reports/age-profile</strong> to read aggregate totals, <strong>object_selectors</strong>, and <strong>group_by_selectors</strong>, then supply <strong>object_selector</strong> and — when drilling into a grouped cell — <strong>group_by</strong> plus <strong>group_by_selector</strong> accordingly.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","age-profile-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Secondary breakdown dimension aligned with GET https://pubapi.talenthr.io/v1/reports/age-profile. Allowed: location, department, division, gender, seniority.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Age band identifier aligned with totals from GET https://pubapi.talenthr.io/v1/reports/age-profile: <strong>&lt;= 20</strong>, <strong>21-30</strong>, <strong>31-40</strong>, <strong>41-55</strong>, <strong>56-69</strong>, <strong>70+</strong>, <strong>N/A</strong>.</p>\n","type":"text/plain"},"key":"object_selector","value":"<string>"},{"description":{"content":"<p>(string or integer) When <strong>group_by</strong> is set: bucket identifier aligned with GET https://pubapi.talenthr.io/v1/reports/age-profile — <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> numeric ids; gender (<strong>Female</strong>, <strong>Male</strong>, or <strong>Non-binary</strong>); or seniority band (<strong>&lt; 1 year</strong>, <strong>1 - 2 years</strong>, <strong>2 - 3 years</strong>, <strong>3 - 4 years</strong>, <strong>4 - 5 years</strong>, <strong>5 - 10 years</strong>, <strong>10+ years</strong>).</p>\n","type":"text/plain"},"key":"group_by_selector","value":"<string | integer>"},{"description":{"content":"<p>(string) Optional. Filter string for reports. Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>age_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) aligns with omitting <strong>N/A</strong> buckets the same way as GET https://pubapi.talenthr.io/v1/reports/age-profile. Any other value when this parameter is present includes <strong>N/A</strong> rows. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string | integer>"}],"variable":[]}},"response":[{"id":"4cfd6623-cccf-4b87-9ca5-c3d23d4c4c08","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile-employees?object_selector=21-30","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile-employees"],"query":[{"key":"object_selector","value":"21-30"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 701,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Taylor\",\n      \"last_name\": \"Green\",\n      \"email\": \"taylor.green@example.com\",\n      \"job_title\": \"Marketing Specialist\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"age\",\n        \"value\": 29.0,\n        \"unit\": \"years\",\n        \"label\": \"29.00\"\n      }\n    },\n    {\n      \"id\": 702,\n      \"photo_url\": \"https://cdn.example.com/photos/702/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/702/thumb.jpg\",\n      \"first_name\": \"Noah\",\n      \"last_name\": \"Khan\",\n      \"email\": \"noah.khan@example.com\",\n      \"job_title\": \"Customer Success Manager\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"age\",\n        \"value\": 25.0,\n        \"unit\": \"years\",\n        \"label\": \"25.00\"\n      }\n    }\n  ]\n}"},{"id":"492ad997-c326-4c7c-90b0-f1612156f177","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile-employees?group_by=location&object_selector=31-40&group_by_selector=10","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile-employees"],"query":[{"key":"group_by","value":"location"},{"key":"object_selector","value":"31-40"},{"key":"group_by_selector","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 711,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Ava\",\n      \"last_name\": \"Papadopoulos\",\n      \"email\": \"ava.papadopoulos@example.com\",\n      \"job_title\": \"Accountant\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"age\",\n        \"value\": 34.0,\n        \"unit\": \"years\",\n        \"label\": \"34.00\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    },\n    {\n      \"id\": 712,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Liam\",\n      \"last_name\": \"Brown\",\n      \"email\": \"liam.brown@example.com\",\n      \"job_title\": \"Sales Executive\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"age\",\n        \"value\": 39.0,\n        \"unit\": \"years\",\n        \"label\": \"39.00\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    }\n  ]\n}"},{"id":"85ca9bd5-02ad-4500-bb2c-e796f52ef774","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile-employees?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile-employees"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"6c959e36-62f9-4d7a-b560-684bcfcfec96","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile-employees?object_selector=21-30","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile-employees"],"query":[{"key":"object_selector","value":"21-30"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"8455c2c1-bd7f-49a5-83e6-cbebf0ae4b92","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile-employees?object_selector=21-30","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile-employees"],"query":[{"key":"object_selector","value":"21-30"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"cdd2d107-de41-48e7-9127-e0ddb09936ce"},{"name":"Get seniority report employees","id":"a9a2fcc5-f249-4a72-9dba-65ce92356800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/seniority-employees?group_by=<string>&object_selector=<string>&group_by_selector=<string | integer>&filter=<string>&exclude_na=<string | integer>","description":"<p>This endpoint returns employees that match a breakdown cell from the seniority core report.</p>\n<p>Requires permission to view core reports.</p>\n<p>Use <strong>GET</strong> <strong>https://pubapi.talenthr.io/v1/reports/seniority</strong> to read aggregate totals, <strong>object_selectors</strong>, and <strong>group_by_selectors</strong>, then supply <strong>object_selector</strong> and — when drilling into a grouped cell — <strong>group_by</strong> plus <strong>group_by_selector</strong> accordingly.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","seniority-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Secondary breakdown dimension aligned with GET https://pubapi.talenthr.io/v1/reports/seniority. Allowed: location, department, division, gender, age.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Seniority band identifier aligned with totals from GET https://pubapi.talenthr.io/v1/reports/seniority: <strong>&lt; 1 year</strong>, <strong>1 - 2 years</strong>, <strong>2 - 3 years</strong>, <strong>3 - 4 years</strong>, <strong>4 - 5 years</strong>, <strong>5 - 10 years</strong>, <strong>10+ years</strong>.</p>\n","type":"text/plain"},"key":"object_selector","value":"<string>"},{"description":{"content":"<p>(string or integer) When <strong>group_by</strong> is set: bucket identifier aligned with GET https://pubapi.talenthr.io/v1/reports/seniority — <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> numeric ids; gender (<strong>Female</strong>, <strong>Male</strong>, or <strong>Non-binary</strong>); or age band (<strong>&lt;= 20</strong>, <strong>21-30</strong>, <strong>31-40</strong>, <strong>41-55</strong>, <strong>56-69</strong>, <strong>70+</strong>, <strong>N/A</strong>).</p>\n","type":"text/plain"},"key":"group_by_selector","value":"<string | integer>"},{"description":{"content":"<p>(string) Optional. Filter string for reports. Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>seniority_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) aligns with omitting <strong>N/A</strong> buckets the same way as GET https://pubapi.talenthr.io/v1/reports/seniority. Any other value when this parameter is present includes <strong>N/A</strong> rows. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string | integer>"}],"variable":[]}},"response":[{"id":"4ee21a02-ebc3-497f-9e57-47f77bf90bdf","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority-employees?object_selector=< 1 year","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority-employees"],"query":[{"key":"object_selector","value":"< 1 year"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 801,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Maya\",\n      \"last_name\": \"Wilson\",\n      \"email\": \"maya.wilson@example.com\",\n      \"job_title\": \"Junior Developer\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"seniority\",\n        \"value\": 8.0,\n        \"unit\": \"months\",\n        \"label\": \"8.00\"\n      }\n    },\n    {\n      \"id\": 802,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Ethan\",\n      \"last_name\": \"Garcia\",\n      \"email\": \"ethan.garcia@example.com\",\n      \"job_title\": \"Support Associate\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"seniority\",\n        \"value\": 3.0,\n        \"unit\": \"months\",\n        \"label\": \"3.00\"\n      }\n    }\n  ]\n}"},{"id":"f53cd616-d6e1-4e0a-b7e7-437dfdd7f36f","name":"OK (200) — grouped by department","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority-employees?group_by=department&object_selector=1 - 2 years&group_by_selector=5","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority-employees"],"query":[{"key":"group_by","value":"department"},{"key":"object_selector","value":"1 - 2 years"},{"key":"group_by_selector","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 811,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Sophia\",\n      \"last_name\": \"Martin\",\n      \"email\": \"sophia.martin@example.com\",\n      \"job_title\": \"Recruiter\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"seniority\",\n        \"value\": 18.0,\n        \"unit\": \"months\",\n        \"label\": \"18.00\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 5,\n        \"type\": \"department\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Sales\"\n      }\n    },\n    {\n      \"id\": 812,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Oliver\",\n      \"last_name\": \"Ng\",\n      \"email\": \"oliver.ng@example.com\",\n      \"job_title\": \"Sales Ops Analyst\",\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"seniority\",\n        \"value\": 14.0,\n        \"unit\": \"months\",\n        \"label\": \"14.00\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 5,\n        \"type\": \"department\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Sales\"\n      }\n    }\n  ]\n}"},{"id":"f3c3165f-b675-4f60-9203-db31209b4828","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority-employees?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority-employees"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"f4aada86-fcc2-4a5e-b43a-dfe7aff83161","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority-employees?object_selector=< 1 year","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority-employees"],"query":[{"key":"object_selector","value":"< 1 year"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"29a85cbd-89a0-4841-b92c-eab0d562ff02","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/seniority-employees?object_selector=< 1 year","host":["https://pubapi.talenthr.io/v1"],"path":["reports","seniority-employees"],"query":[{"key":"object_selector","value":"< 1 year"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"a9a2fcc5-f249-4a72-9dba-65ce92356800"},{"name":"Get compensation report employees","id":"abb28ea9-275f-4314-916c-ae6841c105c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation-employees?group_by=<string>&object_selector=<string>&group_by_selector=<string | integer>&filter=<string>&include_bonus=<string>&exclude_na=<string | integer>","description":"<p>This endpoint returns employees that match a breakdown cell from the annual compensation report.</p>\n<p>Requires permission to view compensation reports.</p>\n<p>Use <strong>GET</strong> <strong>https://pubapi.talenthr.io/v1/reports/compensation</strong> to read aggregate totals, <strong>object_selectors</strong>, and <strong>group_by_selectors</strong>, then supply <strong>object_selector</strong> and — when drilling into a grouped cell — <strong>group_by</strong> plus <strong>group_by_selector</strong> accordingly.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","compensation-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Secondary breakdown dimension aligned with GET https://pubapi.talenthr.io/v1/reports/compensation. Allowed: location, department, division, gender, age, seniority.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Compensation band identifier aligned with totals from GET https://pubapi.talenthr.io/v1/reports/compensation: <strong>0K-20K</strong>, <strong>20K-50K</strong>, <strong>50K-100K</strong>, <strong>100K+</strong>, or <strong>N/A</strong>.</p>\n","type":"text/plain"},"key":"object_selector","value":"<string>"},{"description":{"content":"<p>(string or integer) When <strong>group_by</strong> is set: bucket identifier aligned with GET https://pubapi.talenthr.io/v1/reports/compensation — <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> numeric ids; gender (<strong>Female</strong>, <strong>Male</strong>, or <strong>Non-binary</strong>); age band (<strong>&lt;= 20</strong>, <strong>21-30</strong>, <strong>31-40</strong>, <strong>41-55</strong>, <strong>56-69</strong>, <strong>70+</strong>, <strong>N/A</strong>); or seniority band (<strong>&lt; 1 year</strong>, <strong>1 - 2 years</strong>, <strong>2 - 3 years</strong>, <strong>3 - 4 years</strong>, <strong>4 - 5 years</strong>, <strong>5 - 10 years</strong>, <strong>10+ years</strong>).</p>\n","type":"text/plain"},"key":"group_by_selector","value":"<string | integer>"},{"description":{"content":"<p>(string) Optional. Filter string for reports. Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>compensation_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. When omitted, null, empty, or whitespace: bonuses are not included. When provided: allowed values are <strong>\"1\"</strong> (include bonus amounts) or <strong>\"0\"</strong> (exclude). Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"include_bonus","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) aligns with omitting <strong>N/A</strong> buckets the same way as GET https://pubapi.talenthr.io/v1/reports/compensation. Any other value when this parameter is present includes <strong>N/A</strong> rows. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string | integer>"}],"variable":[]}},"response":[{"id":"fbc5102c-88b6-459d-a895-fdeec2f3a4e6","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-employees?object_selector=50-100","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-employees"],"query":[{"key":"object_selector","value":"50-100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"meta\": {\n    \"currency\": \"USD\"\n  },\n  \"data\": [\n    {\n      \"id\": 901,\n      \"employee_id\": 901,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Chloe\",\n      \"last_name\": \"Evans\",\n      \"email\": \"chloe.evans@example.com\",\n      \"job_title\": \"Senior Engineer\",\n      \"annual_compensation\": 72000,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"compensation\",\n        \"value\": 72000.0,\n        \"unit\": null,\n        \"label\": \"72000.00\"\n      }\n    },\n    {\n      \"id\": 902,\n      \"employee_id\": 902,\n      \"photo_url\": \"https://cdn.example.com/photos/902/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/902/thumb.jpg\",\n      \"first_name\": \"Omar\",\n      \"last_name\": \"Hassan\",\n      \"email\": \"omar.hassan@example.com\",\n      \"job_title\": \"Data Analyst\",\n      \"annual_compensation\": 54000,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"compensation\",\n        \"value\": 54000.0,\n        \"unit\": null,\n        \"label\": \"54000.00\"\n      }\n    }\n  ]\n}"},{"id":"355d6813-97cd-49a4-ac53-9b95d3a5109c","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-employees?group_by=location&object_selector=20-50&group_by_selector=10&include_bonus=1","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-employees"],"query":[{"key":"group_by","value":"location"},{"key":"object_selector","value":"20-50"},{"key":"group_by_selector","value":"10"},{"key":"include_bonus","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"meta\": {\n    \"currency\": \"USD\"\n  },\n  \"data\": [\n    {\n      \"id\": 911,\n      \"employee_id\": 911,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Isabella\",\n      \"last_name\": \"Stone\",\n      \"email\": \"isabella.stone@example.com\",\n      \"job_title\": \"Customer Support Lead\",\n      \"annual_compensation\": 36000,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"compensation\",\n        \"value\": 36000.0,\n        \"unit\": null,\n        \"label\": \"36000.00\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    },\n    {\n      \"id\": 912,\n      \"employee_id\": 912,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"first_name\": \"Daniel\",\n      \"last_name\": \"Ortiz\",\n      \"email\": \"daniel.ortiz@example.com\",\n      \"job_title\": \"Office Administrator\",\n      \"annual_compensation\": 42000,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"compensation\",\n        \"value\": 42000.0,\n        \"unit\": null,\n        \"label\": \"42000.00\"\n      },\n      \"secondary_dimension\": {\n        \"id\": 10,\n        \"type\": \"location\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Athens\"\n      }\n    }\n  ]\n}"},{"id":"f3fb58d9-c775-42f9-b499-2582eae09a5d","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-employees?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-employees"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"f57711a2-16f9-4bb3-9bb9-e3bbd0dbd03f","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-employees?object_selector=50-100","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-employees"],"query":[{"key":"object_selector","value":"50-100"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"be51f6b9-4c15-4c9d-9b5c-485ef8427457","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-employees?object_selector=50-100","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-employees"],"query":[{"key":"object_selector","value":"50-100"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"abb28ea9-275f-4314-916c-ae6841c105c2"},{"name":"Get headcount report employees","id":"039bf550-fe9c-4411-8fde-7bb7cdf2f769","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/headcount-employees?group_by=<string>&object_selector=<string>&group_by_selector=<string | integer>&filter=<string>&exclude_na=<string | integer>","description":"<p>This endpoint returns employees that match a headcount snapshot filter.</p>\n<p>Requires permission to view core reports.</p>\n<p>Use <strong>GET</strong> <strong>https://pubapi.talenthr.io/v1/reports/headcount</strong> to identify the appropriate snapshot date and available breakdown values, then call this endpoint with <strong>object_selector</strong> and, when filtering by a dimension, <strong>group_by</strong> plus <strong>group_by_selector</strong>.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","headcount-employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Single dimension used to filter employees, aligned with groupings available on GET https://pubapi.talenthr.io/v1/reports/headcount. Allowed: location, department, division, gender, age, seniority.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Required. Snapshot month selector. The provided date is interpreted as the calendar month containing that date, and results are returned for the entire month (for example, 2026-01-01 returns results for all of January 2026). Date format: YYYY-MM-DD.</p>\n","type":"text/plain"},"key":"object_selector","value":"<string>"},{"description":{"content":"<p>(string or integer) When <strong>group_by</strong> is set: bucket identifier aligned with GET https://pubapi.talenthr.io/v1/reports/headcount — <strong>location</strong>, <strong>department</strong>, or <strong>division</strong> numeric ids; gender (<strong>Female</strong>, <strong>Male</strong>, or <strong>Non-binary</strong>); age band (<strong>&lt;= 20</strong>, <strong>21-30</strong>, <strong>31-40</strong>, <strong>41-55</strong>, <strong>56-69</strong>, <strong>70+</strong>, <strong>N/A</strong>); or seniority band (<strong>&lt; 1 year</strong>, <strong>1 - 2 years</strong>, <strong>2 - 3 years</strong>, <strong>3 - 4 years</strong>, <strong>4 - 5 years</strong>, <strong>5 - 10 years</strong>, <strong>10+ years</strong>).</p>\n","type":"text/plain"},"key":"group_by_selector","value":"<string | integer>"},{"description":{"content":"<p>(string) Optional. Filter string for reports. Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>headcount_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) aligns with omitting <strong>N/A</strong> buckets the same way as GET https://pubapi.talenthr.io/v1/reports/headcount. Any other value when this parameter is present includes <strong>N/A</strong> rows. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string | integer>"}],"variable":[]}},"response":[{"id":"05f05deb-9750-4037-81af-4f1e10259cd9","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount-employees?object_selector=2026-05-01","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount-employees"],"query":[{"key":"object_selector","value":"2026-05-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"employee_id\": 1001,\n      \"gender\": \"Female\",\n      \"location_id\": 10,\n      \"division_id\": null,\n      \"department_id\": 5,\n      \"job_title_id\": 22,\n      \"birth_date\": \"1992-03-10\",\n      \"hire_date_utc\": \"2022-07-01 09:00:00\",\n      \"hire_date\": \"2022-07-01\",\n      \"termination_date_utc\": null,\n      \"employment_status_id\": 2,\n      \"first_name\": \"Nina\",\n      \"last_name\": \"Santos\",\n      \"email\": \"nina.santos@example.com\",\n      \"user_id\": 2001,\n      \"photo_url\": \"https://cdn.example.com/photos/1001/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/1001/thumb.jpg\",\n      \"age\": 34,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      }\n    },\n    {\n      \"employee_id\": 1002,\n      \"gender\": \"Male\",\n      \"location_id\": 10,\n      \"division_id\": null,\n      \"department_id\": 5,\n      \"job_title_id\": 22,\n      \"birth_date\": \"1990-11-05\",\n      \"hire_date_utc\": \"2021-01-15 09:00:00\",\n      \"hire_date\": \"2021-01-15\",\n      \"termination_date_utc\": null,\n      \"employment_status_id\": 2,\n      \"first_name\": \"Marcus\",\n      \"last_name\": \"Reed\",\n      \"email\": \"marcus.reed@example.com\",\n      \"user_id\": 2002,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"age\": 35,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Male\"\n      }\n    }\n  ]\n}"},{"id":"87186eeb-808d-4a17-86eb-943d8ace23e8","name":"OK (200) — grouped by gender","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount-employees?group_by=gender&object_selector=2026-05-01&group_by_selector=Female","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount-employees"],"query":[{"key":"group_by","value":"gender"},{"key":"object_selector","value":"2026-05-01"},{"key":"group_by_selector","value":"Female"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"employee_id\": 1011,\n      \"gender\": \"Female\",\n      \"location_id\": 10,\n      \"division_id\": null,\n      \"department_id\": 3,\n      \"job_title_id\": 18,\n      \"birth_date\": \"1994-01-20\",\n      \"hire_date_utc\": \"2020-04-10 09:00:00\",\n      \"hire_date\": \"2020-04-10\",\n      \"termination_date_utc\": null,\n      \"employment_status_id\": 2,\n      \"first_name\": \"Layla\",\n      \"last_name\": \"Ahmed\",\n      \"email\": \"layla.ahmed@example.com\",\n      \"user_id\": 2011,\n      \"photo_url\": null,\n      \"resized_photo_url\": null,\n      \"age\": 32,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      }\n    },\n    {\n      \"employee_id\": 1012,\n      \"gender\": \"Female\",\n      \"location_id\": 11,\n      \"division_id\": null,\n      \"department_id\": 3,\n      \"job_title_id\": 18,\n      \"birth_date\": \"1988-09-02\",\n      \"hire_date_utc\": \"2019-10-01 09:00:00\",\n      \"hire_date\": \"2019-10-01\",\n      \"termination_date_utc\": null,\n      \"employment_status_id\": 2,\n      \"first_name\": \"Hannah\",\n      \"last_name\": \"Miller\",\n      \"email\": \"hannah.miller@example.com\",\n      \"user_id\": 2012,\n      \"photo_url\": \"https://cdn.example.com/photos/1012/large.jpg\",\n      \"resized_photo_url\": \"https://cdn.example.com/photos/1012/thumb.jpg\",\n      \"age\": 37,\n      \"primary_dimension\": {\n        \"id\": null,\n        \"type\": \"gender\",\n        \"value\": null,\n        \"unit\": null,\n        \"label\": \"Female\"\n      }\n    }\n  ]\n}"},{"id":"e033c92f-dd4d-4e97-84a5-c732ac04a2ba","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount-employees?group_by=invalid&object_selector=2026-05-01","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount-employees"],"query":[{"key":"group_by","value":"invalid"},{"key":"object_selector","value":"2026-05-01"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"3b2e7e01-34eb-4ad0-96b5-fdd70c832223","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount-employees?object_selector=2026-05-01","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount-employees"],"query":[{"key":"object_selector","value":"2026-05-01"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"66041a38-54d8-4d95-ad4f-1a8e993ec082","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount-employees?object_selector=2026-05-01","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount-employees"],"query":[{"key":"object_selector","value":"2026-05-01"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"039bf550-fe9c-4411-8fde-7bb7cdf2f769"},{"name":"Get hires and leaves report","id":"1f32039e-995b-42d3-a50a-f4f226a9421e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/hires-leaves?period=<string>&start_date=<string>&end_date=<string>&filter=<string>","description":"<p>This endpoint returns hires and leaves report data for the tenant. Requires permission to view hiring reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","hires-leaves"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional when start_date and end_date are provided. Allowed: l12m, current year, or previous year (as a 4-digit year). When omitted, start_date and end_date are required.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string) Optional when period is provided. Required when period is omitted. Date format: YYYY-MM-DD.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string) Optional when period is provided. Required when period is omitted. Date format: YYYY-MM-DD. Must be &gt;= start_date. Maximum date range is 36 months.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender). Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with model=hire_leave_report.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"db406933-bdc5-4219-ac2d-da767897b9e5","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/hires-leaves?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","hires-leaves"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"chart\": {\n      \"hires\": {\n        \"2025-05\": 0,\n        \"2025-06\": 0,\n        \"2025-07\": 0,\n        \"2025-08\": 0,\n        \"2025-09\": 0,\n        \"2025-10\": 0,\n        \"2025-11\": 1,\n        \"2025-12\": 0,\n        \"2026-01\": 2,\n        \"2026-02\": 0,\n        \"2026-03\": 0,\n        \"2026-04\": 0,\n        \"2026-05\": 0\n      },\n      \"terminations\": {\n        \"2025-05\": 0,\n        \"2025-06\": 0,\n        \"2025-07\": 0,\n        \"2025-08\": 0,\n        \"2025-09\": 0,\n        \"2025-10\": 0,\n        \"2025-11\": 0,\n        \"2025-12\": 1,\n        \"2026-01\": 0,\n        \"2026-02\": 0,\n        \"2026-03\": 0,\n        \"2026-04\": 0,\n        \"2026-05\": 0\n      },\n      \"attrition\": {\n        \"2025-05\": 0,\n        \"2025-06\": 0,\n        \"2025-07\": 0,\n        \"2025-08\": 0,\n        \"2025-09\": 0,\n        \"2025-10\": 0,\n        \"2025-11\": 0,\n        \"2025-12\": 6.67,\n        \"2026-01\": 0,\n        \"2026-02\": 0,\n        \"2026-03\": 0,\n        \"2026-04\": 0,\n        \"2026-05\": 0\n      }\n    },\n    \"rows\": [\n      {\n        \"id\": 5,\n        \"first_name\": \"Alex\",\n        \"last_name\": \"Smith\",\n        \"email\": \"alex.smith@example.com\",\n        \"job_title_name\": \"Software Engineer\",\n        \"department_name\": \"Engineering\",\n        \"location_name\": \"Athens\",\n        \"division_name\": \"Operations\",\n        \"photo_url\": \"https://example.com/photo.png\",\n        \"resized_photo_url\": \"https://example.com/photo_small.png\",\n        \"event\": \"hire\",\n        \"hire_date\": \"2026-01-10\"\n      },\n      {\n        \"id\": 8,\n        \"first_name\": \"Maria\",\n        \"last_name\": \"Jones\",\n        \"email\": \"maria.jones@example.com\",\n        \"job_title_name\": \"Sales Manager\",\n        \"department_name\": \"Sales\",\n        \"location_name\": \"Berlin\",\n        \"division_name\": \"Commercial\",\n        \"photo_url\": \"https://example.com/photo2.png\",\n        \"resized_photo_url\": \"https://example.com/photo2_small.png\",\n        \"event\": \"termination\",\n        \"termination_date\": \"2025-12-05\",\n        \"is_terminated\": true\n      }\n    ],\n    \"startingHeadcount\": 15\n  }\n}"},{"id":"63284434-1b26-4a5e-934f-621cf38a50b9","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/hires-leaves?period=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","hires-leaves"],"query":[{"key":"period","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The given data was invalid.\"\n      ]\n    }\n  }\n}"},{"id":"580e9ed8-2e51-4652-832d-b440fd38f19f","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/hires-leaves?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","hires-leaves"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"594220d4-d6ad-4831-a140-fb3712055ac9","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/hires-leaves?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","hires-leaves"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"1f32039e-995b-42d3-a50a-f4f226a9421e"},{"name":"Get headcount report","id":"6a0a2614-dc66-4d4a-a98a-96aaf4fcf7ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/headcount?period=<string>&start_date=<string>&end_date=<string>&filter=<string>&group_by=<string>","description":"<p>This endpoint returns headcount report data for the tenant. Requires permission to view core reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","headcount"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional when start_date and end_date are provided. Allowed: l12m, current year, or previous year (as a 4-digit year). When omitted, start_date and end_date are required. When period is l12m, month keys in data.total run from the first day of the calendar month 12 months before the current month through the current month (13 Y-m keys), plus current.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string) Optional when period is provided. Required when period is omitted. Date format: YYYY-MM-DD.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string) Optional when period is provided. Required when period is omitted. Date format: YYYY-MM-DD. Must be &gt;= start_date. Maximum date range is 36 months.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender, termination_type). Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with model=headcount_report.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. Breakdown dimension. Allowed: location, department, division, gender, age, seniority. Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"}],"variable":[]}},"response":[{"id":"9e041efc-48f4-4261-b3f3-5e053b149a12","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"2025-05\": 10,\n      \"2025-06\": 10,\n      \"2025-07\": 11,\n      \"2025-08\": 11,\n      \"2025-09\": 11,\n      \"2025-10\": 12,\n      \"2025-11\": 12,\n      \"2025-12\": 13,\n      \"2026-01\": 13,\n      \"2026-02\": 14,\n      \"2026-03\": 14,\n      \"2026-04\": 14,\n      \"2026-05\": 14,\n      \"current\": 14\n    },\n    \"group_by\": {},\n    \"object_selectors\": {\n      \"2025-05\": \"2025-05-01\",\n      \"2025-06\": \"2025-06-01\",\n      \"2025-07\": \"2025-07-01\",\n      \"2025-08\": \"2025-08-01\",\n      \"2025-09\": \"2025-09-01\",\n      \"2025-10\": \"2025-10-01\",\n      \"2025-11\": \"2025-11-01\",\n      \"2025-12\": \"2025-12-01\",\n      \"2026-01\": \"2026-01-01\",\n      \"2026-02\": \"2026-02-01\",\n      \"2026-03\": \"2026-03-01\",\n      \"2026-04\": \"2026-04-01\",\n      \"2026-05\": \"2026-05-01\"\n    },\n    \"group_by_selectors\": {}\n  }\n}"},{"id":"f160f54f-9db6-4633-87f9-4f6b579df8f7","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount?period=l12m&group_by=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount"],"query":[{"key":"period","value":"l12m"},{"key":"group_by","value":"location"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"2025-05\": 10,\n      \"2025-06\": 10,\n      \"2025-07\": 11,\n      \"2025-08\": 11,\n      \"2025-09\": 11,\n      \"2025-10\": 12,\n      \"2025-11\": 12,\n      \"2025-12\": 13,\n      \"2026-01\": 13,\n      \"2026-02\": 14,\n      \"2026-03\": 14,\n      \"2026-04\": 14,\n      \"2026-05\": 14,\n      \"current\": 14\n    },\n    \"group_by\": {\n      \"2025-05\": {\n        \"Athens\": 5,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-06\": {\n        \"Athens\": 5,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-07\": {\n        \"Athens\": 6,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-08\": {\n        \"Athens\": 6,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-09\": {\n        \"Athens\": 6,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-10\": {\n        \"Athens\": 6,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-11\": {\n        \"Athens\": 6,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2025-12\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2026-01\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 2\n      },\n      \"2026-02\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 3\n      },\n      \"2026-03\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 3\n      },\n      \"2026-04\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 3\n      },\n      \"2026-05\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 3\n      },\n      \"current\": {\n        \"Athens\": 7,\n        \"Berlin\": 3,\n        \"London\": 1,\n        \"N/A\": 3\n      }\n    },\n    \"object_selectors\": {\n      \"2025-05\": \"2025-05-01\",\n      \"2025-06\": \"2025-06-01\",\n      \"2025-07\": \"2025-07-01\",\n      \"2025-08\": \"2025-08-01\",\n      \"2025-09\": \"2025-09-01\",\n      \"2025-10\": \"2025-10-01\",\n      \"2025-11\": \"2025-11-01\",\n      \"2025-12\": \"2025-12-01\",\n      \"2026-01\": \"2026-01-01\",\n      \"2026-02\": \"2026-02-01\",\n      \"2026-03\": \"2026-03-01\",\n      \"2026-04\": \"2026-04-01\",\n      \"2026-05\": \"2026-05-01\"\n    },\n    \"group_by_selectors\": {\n      \"2025-05\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-06\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-07\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-08\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-09\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-10\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-11\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2025-12\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2026-01\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2026-02\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2026-03\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2026-04\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"2026-05\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"current\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      }\n    }\n  }\n}"},{"id":"97bba3d2-98e9-461b-89dc-200b2b5f0e22","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount?period=l12m&group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount"],"query":[{"key":"period","value":"l12m"},{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"1c285933-28b1-477b-8083-1109a9f07c71","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"38ba3a0f-f068-4564-b372-ca9b5b00edad","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/headcount?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","headcount"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"6a0a2614-dc66-4d4a-a98a-96aaf4fcf7ad"},{"name":"Get compensation report","id":"742e05de-1d19-4abd-84c7-1853b3c792ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation?group_by=<string>&filter=<string>&include_bonus=<string>&exclude_na=<string>","description":"<p>This endpoint returns annual compensation band counts for the tenant. Salary figures are converted to the company currency; the <strong><code>meta.currency</code></strong> field names that currency.</p>\n<p>Requires permission to view compensation reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","compensation"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Breakdown dimension. Allowed: location, department, division, gender, age, seniority. Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender). Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with model=compensation_report.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. When the parameter is absent, empty, or null, bonus amounts are not included in each employee’s aggregated compensation for this report. When set, value must be \"0\" or \"1\". \"1\" adds converted bonus totals (effective as of today) into the aggregates; \"0\" matches the default behaviour.</p>\n","type":"text/plain"},"key":"include_bonus","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) excludes the <strong>N/A</strong> bucket from the breakdown. Any other value when this parameter is present includes <strong>N/A</strong>. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string>"}],"variable":[]}},"response":[{"id":"9a227999-6e63-4c59-a1ee-43c13cee7863","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"0K-20K\": 2,\n      \"20K-50K\": 6,\n      \"50K-100K\": 3,\n      \"100K+\": 1,\n      \"N/A\": 1\n    },\n    \"object_selectors\": {\n      \"0K-20K\": \"0K-20K\",\n      \"20K-50K\": \"20K-50K\",\n      \"50K-100K\": \"50K-100K\",\n      \"100K+\": \"100K+\",\n      \"N/A\": \"N/A\"\n    },\n    \"group_by\": {},\n    \"group_by_selectors\": {}\n  },\n  \"meta\": {\n    \"currency\": \"USD\"\n  }\n}"},{"id":"9e9e5b98-fa3d-43a2-b4a3-400ac974a94e","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation?group_by=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation"],"query":[{"key":"group_by","value":"location"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"0K-20K\": 2,\n      \"20K-50K\": 6,\n      \"50K-100K\": 3,\n      \"100K+\": 1,\n      \"N/A\": 1\n    },\n    \"object_selectors\": {\n      \"0K-20K\": \"0K-20K\",\n      \"20K-50K\": \"20K-50K\",\n      \"50K-100K\": \"50K-100K\",\n      \"100K+\": \"100K+\",\n      \"N/A\": \"N/A\"\n    },\n    \"group_by\": {\n      \"0K-20K\": {\n        \"Athens\": 1,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 1\n      },\n      \"20K-50K\": {\n        \"Athens\": 3,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 0\n      },\n      \"50K-100K\": {\n        \"Athens\": 1,\n        \"Berlin\": 1,\n        \"London\": 1,\n        \"N/A\": 0\n      },\n      \"100K+\": {\n        \"Athens\": 0,\n        \"Berlin\": 1,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"N/A\": {\n        \"Athens\": 0,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 1\n      }\n    },\n    \"group_by_selectors\": {\n      \"0K-20K\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"20K-50K\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"50K-100K\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"100K+\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"N/A\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      }\n    }\n  },\n  \"meta\": {\n    \"currency\": \"USD\"\n  }\n}"},{"id":"a314e0b1-a35d-48d7-bc23-e7c46a243663","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"356189bb-cbe9-48b5-9636-d21815bb6fce","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"13ee14c7-a55c-4420-a1d9-3fd92b95815e","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"742e05de-1d19-4abd-84c7-1853b3c792ef"},{"name":"Get age profile report","id":"1aa96657-6950-4ef5-916b-5340103f8fcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/age-profile?group_by=<string>&filter=<string>&exclude_na=<string>","description":"<p>This endpoint returns age profile aggregates for employees in scope for the tenant report.</p>\n<p>Requires permission to view demographic reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","age-profile"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. When omitted, counts are aggregated by tenant-configured age bands only. When set, Allowed: location, department, division, gender, seniority — each band is crossed with this dimension (HTTP 422 for other values).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for reports (for example location, department, division, job_title, emp_state, manager, gender). Retrieve available filter values via GET https://pubapi.talenthr.io/v1/reports/filters with model=age_report.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) excludes the <strong>N/A</strong> bucket from the breakdown. Any other value when this parameter is present includes <strong>N/A</strong>. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string>"}],"variable":[]}},"response":[{"id":"06a3a462-055f-4954-a274-ad35d6177be3","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/age-profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"<= 20\": 1,\n      \"21-30\": 4,\n      \"31-40\": 5,\n      \"41-55\": 3,\n      \"56-69\": 1,\n      \"70+\": 0,\n      \"N/A\": 0\n    },\n    \"object_selectors\": {\n      \"<= 20\": \"<= 20\",\n      \"21-30\": \"21-30\",\n      \"31-40\": \"31-40\",\n      \"41-55\": \"41-55\",\n      \"56-69\": \"56-69\",\n      \"70+\": \"70+\",\n      \"N/A\": \"N/A\"\n    },\n    \"group_by\": {},\n    \"group_by_selectors\": {}\n  }\n}"},{"id":"c25fca8e-30d3-4e87-b7df-f859b03a2495","name":"OK (200) — grouped by location","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile?group_by=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile"],"query":[{"key":"group_by","value":"location"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"<= 20\": 1,\n      \"21-30\": 4,\n      \"31-40\": 5,\n      \"41-55\": 3,\n      \"56-69\": 1,\n      \"70+\": 0,\n      \"N/A\": 0\n    },\n    \"object_selectors\": {\n      \"<= 20\": \"<= 20\",\n      \"21-30\": \"21-30\",\n      \"31-40\": \"31-40\",\n      \"41-55\": \"41-55\",\n      \"56-69\": \"56-69\",\n      \"70+\": \"70+\",\n      \"N/A\": \"N/A\"\n    },\n    \"group_by\": {\n      \"<= 20\": {\n        \"Athens\": 1,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"21-30\": {\n        \"Athens\": 2,\n        \"Berlin\": 1,\n        \"London\": 1,\n        \"N/A\": 0\n      },\n      \"31-40\": {\n        \"Athens\": 2,\n        \"Berlin\": 2,\n        \"London\": 1,\n        \"N/A\": 0\n      },\n      \"41-55\": {\n        \"Athens\": 1,\n        \"Berlin\": 1,\n        \"London\": 1,\n        \"N/A\": 0\n      },\n      \"56-69\": {\n        \"Athens\": 1,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"70+\": {\n        \"Athens\": 0,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 0\n      },\n      \"N/A\": {\n        \"Athens\": 0,\n        \"Berlin\": 0,\n        \"London\": 0,\n        \"N/A\": 0\n      }\n    },\n    \"group_by_selectors\": {\n      \"<= 20\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"21-30\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"31-40\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"41-55\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"56-69\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"70+\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      },\n      \"N/A\": {\n        \"Athens\": 10,\n        \"Berlin\": 11,\n        \"London\": 12,\n        \"N/A\": null\n      }\n    }\n  }\n}"},{"id":"53ca7a62-e2f7-4226-acf1-9c638ceb14d4","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/age-profile?group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","age-profile"],"query":[{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"38e4989d-982a-49fe-ac58-e42af8d8204c","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/age-profile"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"b48981b7-90a9-43f6-ae3f-5c46ad64f859","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/age-profile"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"1aa96657-6950-4ef5-916b-5340103f8fcd"},{"name":"Get average compensation report","id":"4cb49ca0-5260-448d-ae26-d874c2ee259b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation-average?group_by_1=<string>&group_by_2=<string>&filter=<string>&include_bonus=<string>&exclude_na=<string>","description":"<p>This endpoint returns mean annual compensation (company currency), optionally split by a primary dimension (<code>group_by_1</code>, default <strong><code>department</code></strong>) and a second dimension (<code>group_by_2</code>). When <code>group_by_2</code> is omitted, <strong><code>data.group_by</code></strong> is an empty object and <strong><code>data.total</code></strong> carries one average per primary bucket.</p>\n<p>Hourly rates are normalized using work hours consistent with compensation reports; optional inclusion of bonuses follows <strong><code>include_bonus</code></strong> as documented for <strong><code>GET</code></strong> <strong><code>https://pubapi.talenthr.io/v1/reports/compensation</code></strong>.</p>\n<p>Requires permission to view compensation reports.</p>\n<p>Defaults, allowed values, and validation behaviour for query parameters are documented in the Params list for each parameter.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","compensation-average"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Optional. Primary dimension for averages: location, department, division, gender, age, seniority. When omitted, the API uses department (HTTP 422 for other invalid values).</p>\n","type":"text/plain"},"key":"group_by_1","value":"<string>"},{"description":{"content":"<p>(string) Optional. Secondary breakdown for nested averages — same allowed set as group_by_1 and must differ from group_by_1 when both are set (HTTP 422 when equal).</p>\n","type":"text/plain"},"key":"group_by_2","value":"<string>"},{"description":{"content":"<p>(string) Optional. Same filter semantics as GET https://pubapi.talenthr.io/v1/reports/compensation — use GET https://pubapi.talenthr.io/v1/reports/filters with model=compensation_report for available filter values.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. Same semantics as the include_bonus query parameter on GET https://pubapi.talenthr.io/v1/reports/compensation.</p>\n","type":"text/plain"},"key":"include_bonus","value":"<string>"},{"description":{"content":"<p>(string or integer) Optional. <strong>1</strong> (integer) or <strong>\"1\"</strong> (string) excludes the <strong>N/A</strong> bucket from the breakdown. Any other value when this parameter is present includes <strong>N/A</strong>. When omitted, <strong>N/A</strong> is included by default.</p>\n","type":"text/plain"},"key":"exclude_na","value":"<string>"}],"variable":[]}},"response":[{"id":"76a595be-8e12-4407-b4ac-2a241d4983f4","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation-average"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"meta\": {\n    \"currency\": \"USD\"\n  },\n  \"data\": {\n    \"total\": {\n      \"Engineering\": 87450.25,\n      \"Operations\": 52100,\n      \"People\": 61200,\n      \"N/A\": 0\n    },\n    \"group_by\": {}\n  }\n}"},{"id":"8b16bce4-6271-4f5a-9331-4ca5e7c31327","name":"OK (200) — with secondary dimension","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-average?group_by_1=department&group_by_2=gender","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-average"],"query":[{"key":"group_by_1","value":"department"},{"key":"group_by_2","value":"gender"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"meta\": {\n    \"currency\": \"USD\"\n  },\n  \"data\": {\n    \"total\": {\n      \"Engineering\": 87450.25,\n      \"Operations\": 52100,\n      \"People\": 61200,\n      \"N/A\": 0\n    },\n    \"group_by\": {\n      \"Engineering\": {\n        \"Male\": 90000,\n        \"Female\": 84500.5,\n        \"Non-binary\": 81800\n      },\n      \"Operations\": {\n        \"Male\": 51000,\n        \"Female\": 53250,\n        \"Non-binary\": 49800\n      },\n      \"People\": {\n        \"Male\": 60000,\n        \"Female\": 62400,\n        \"Non-binary\": 60800\n      },\n      \"N/A\": {\n        \"Male\": 0,\n        \"Female\": 0,\n        \"Non-binary\": 0\n      }\n    }\n  }\n}"},{"id":"e1c919f6-7ab5-4dc8-b0bd-db7e3eed7109","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/compensation-average?group_by_1=location&group_by_2=location","host":["https://pubapi.talenthr.io/v1"],"path":["reports","compensation-average"],"query":[{"key":"group_by_1","value":"location"},{"key":"group_by_2","value":"location"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by_2\": [\n        \"The group by 2 value is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"8c5d047f-d071-4857-8b24-e140ddde5cac","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation-average"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"74a679cc-db36-492c-9e95-64e3950e5065","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation-average"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"4cb49ca0-5260-448d-ae26-d874c2ee259b"},{"name":"Set compensation band ranges","id":"35294121-889e-473a-987d-b6cf8a5e28a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"compensation_ranges\": [\n    {\"from\": 0, \"to\": 50000},\n    {\"from\": 50000, \"to\": 120000},\n    {\"from\": 120000, \"to\": null}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/reports/compensation/set-ranges","description":"<h3 id=\"api-endpoint-to-set-compensation-band-ranges\">API Endpoint to set compensation band ranges.</h3>\n<p>This endpoint replaces the tenant’s compensation band definitions used by compensation reports. Compensation bands partition annual compensation into contiguous ranges; each band uses a lower bound (<code>from</code>) and an optional upper bound (<code>to</code>) in the tenant’s compensation currency units.</p>\n<p>Requires permission to set compensation reports (not merely view).</p>\n<ul>\n<li>Every band except the last must include non-null <code>from</code> and <code>to</code>; <code>from</code> must be strictly less than <code>to</code>.</li>\n<li>The last band may set <code>to</code> to <code>null</code> for an open upper bound; when <code>to</code> is present on the last band, <code>from</code> must be strictly less than <code>to</code>.</li>\n<li>Each <code>from</code> and <code>to</code> may be a JSON number or a numeric string (integer or decimal).</li>\n</ul>\n<p>On success, the response includes the persisted bands under <code>data.ranges</code>.</p>\n<hr />\n<p><strong>Request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Values</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>compensation_ranges</td>\n<td>array or string</td>\n<td>yes</td>\n<td>Ordered list of compensation bands for the tenant. Send as a JSON array (canonical) or as a JSON string that decodes to the same array structure. Each element is an object with <code>from</code> and optional <code>to</code>. Every band except the last must include non-null <code>from</code> and <code>to</code>; <code>from</code> must be strictly less than <code>to</code>. The last band may set <code>to</code> to <code>null</code> for an open upper bound; when <code>to</code> is present on the last band, <code>from</code> must be strictly less than <code>to</code>. Each <code>from</code> and <code>to</code> may be a JSON number or a numeric string (integer or decimal).</td>\n<td>e.g. <code>[{\"from\":0,\"to\":50000},{\"from\":50000,\"to\":120000},{\"from\":120000,\"to\":null}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","compensation","set-ranges"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"a1a12dd8-dfd9-4ae3-8f1a-84f76273fefe","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"compensation_ranges\": [\n    {\"from\": 0, \"to\": 50000},\n    {\"from\": 50000, \"to\": 120000},\n    {\"from\": 120000, \"to\": null}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/reports/compensation/set-ranges"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"ranges\": [\n      {\n        \"from\": 0,\n        \"to\": 50000\n      },\n      {\n        \"from\": 50000,\n        \"to\": 120000\n      },\n      {\n        \"from\": 120000,\n        \"to\": null\n      }\n    ]\n  }\n}"},{"id":"6e31533a-4dd4-4f6f-be37-1f57297b4776","name":"Unprocessable Content (422)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"compensation_ranges\": \"not-valid-json\"\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/reports/compensation/set-ranges"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"compensation_ranges\": [\n        \"The compensation ranges must be a valid JSON string.\"\n      ]\n    }\n  }\n}"},{"id":"58e586d3-76b9-4f7b-9c20-9fdc1b0e63c9","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"compensation_ranges\": [\n    {\"from\": 0, \"to\": 50000},\n    {\"from\": 50000, \"to\": 120000},\n    {\"from\": 120000, \"to\": null}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/reports/compensation/set-ranges"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"90d150b6-1101-4d87-bda9-e28b06830774","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"compensation_ranges\": [\n    {\"from\": 0, \"to\": 50000},\n    {\"from\": 50000, \"to\": 120000},\n    {\"from\": 120000, \"to\": null}\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://pubapi.talenthr.io/v1/reports/compensation/set-ranges"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"35294121-889e-473a-987d-b6cf8a5e28a3"},{"name":"Reset compensation band ranges","id":"b8da7efd-4b12-4197-9684-c573e2706ad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/reset-ranges","description":"<p>This endpoint restores compensation bands to the product defaults and persists them for the tenant.</p>\n<p>Requires permission to set compensation reports (not merely view).</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","compensation","reset-ranges"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"ba10d928-b68b-4b91-aaf0-d92b5caa9e4f","name":"OK (200)","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/reset-ranges"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"ranges\": [\n      {\n        \"from\": \"0\",\n        \"to\": \"20\"\n      },\n      {\n        \"from\": \"20\",\n        \"to\": \"50\"\n      },\n      {\n        \"from\": \"50\",\n        \"to\": \"100\"\n      },\n      {\n        \"from\": \"100\",\n        \"to\": null\n      }\n    ]\n  }\n}"},{"id":"45804812-05f6-48b6-b1a1-cbaa41210289","name":"Forbidden (403) — permission","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/reset-ranges"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"4ee6fdd1-bdac-43bf-9c32-e6ca075f1cb4","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/reset-ranges"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"b8da7efd-4b12-4197-9684-c573e2706ad6"},{"name":"Get compensation band ranges","id":"07fad60b-509e-489a-98ba-620fe3e29327","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/ranges","description":"<p>This endpoint returns the tenant’s current compensation band definitions used by compensation reports. If the tenant has no stored bands, the API returns the product default bands.</p>\n<p>Requires permission to <strong>view</strong> compensation reports.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","compensation","ranges"],"host":["https://pubapi.talenthr.io/v1"],"query":[],"variable":[]}},"response":[{"id":"70827f0b-1663-4d1b-addc-e9d6a86bda07","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/ranges"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"ranges\": [\n      {\n        \"from\": \"0\",\n        \"to\": \"20\"\n      },\n      {\n        \"from\": \"20\",\n        \"to\": \"50\"\n      },\n      {\n        \"from\": \"50\",\n        \"to\": \"100\"\n      },\n      {\n        \"from\": \"100\",\n        \"to\": null\n      }\n    ]\n  }\n}"},{"id":"a11fb5cf-d7ae-4f30-afeb-df0c23f0991f","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/ranges"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"bc1ce272-681f-4c9d-8c78-4799596d723a","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/compensation/ranges"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"07fad60b-509e-489a-98ba-620fe3e29327"},{"name":"Get company performance report","id":"c07dae07-ec61-41d0-8111-8ad8395caede","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/company-performance?period=<string>&start_date=<string>&end_date=<string>&actual_review_cycles=<string>&group_by=<string>","description":"<p>This endpoint returns company-level performance review aggregates (value and work question categories) for the selected cycles.</p>\n<p>Requires permission to <strong>view</strong> performance reports. The tenant subscription must have the <strong>Performance Review</strong> feature enabled.</p>\n<p>Provide either a <strong>period</strong> preset, a <strong>start_date</strong>/<strong>end_date</strong> pair, or target cycles via <strong>actual_review_cycles</strong> as described in the Params list.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","company-performance"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. Use <strong>l12m</strong> or <strong>l6m</strong> for a rolling window when <strong>start_date</strong> / <strong>end_date</strong> are not used. Send <strong>start_date</strong> and <strong>end_date</strong> together when <strong>period</strong> is omitted (unless <strong>actual_review_cycles</strong> selects cycles instead). Other values fail validation (HTTP 422).</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. Format <strong>YYYY-MM-DD</strong>. Together with <strong>end_date</strong>, the range must not exceed 36 months.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. Format <strong>YYYY-MM-DD</strong>, must be on or after <strong>start_date</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Comma-separated performance review cycle ids. When present, the server uses only those cycles (unknown ids are ignored). Period and custom date rules are not applied for validation in that mode.</p>\n","type":"text/plain"},"key":"actual_review_cycles","value":"<string>"},{"description":{"content":"<p>(string) Optional. Breakdown dimension. Allowed: <strong>location</strong>, <strong>department</strong>, <strong>division</strong>, <strong>gender</strong>, <strong>age</strong>, <strong>seniority</strong>. Other values fail validation (HTTP 422). When omitted, the response uses overall totals per answer.</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"}],"variable":[]}},"response":[{"id":"78c2fd92-6380-45d5-b2e8-425c734ddd73","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/company-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","company-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 101,\n      \"category\": \"value\",\n      \"body\": \"How well does the employee demonstrate company values?\",\n      \"answers\": [\n        {\n          \"id\": 501,\n          \"body\": \"Exceeds expectations\",\n          \"count\": 12\n        },\n        {\n          \"id\": 502,\n          \"body\": \"Meets expectations\",\n          \"count\": 8\n        }\n      ],\n      \"group_by\": {}\n    }\n  ]\n}"},{"id":"e7701709-6ab1-4403-9b5a-fc6c7dbb5ec6","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/company-performance?period=l12m&group_by=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","company-performance"],"query":[{"key":"period","value":"l12m"},{"key":"group_by","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"9e48338d-2102-41f3-b59b-f8f9b8a6e2a8","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/company-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","company-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"e2826d5a-1b72-48c0-8899-01070c019d46","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/company-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","company-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Performance Review enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"7364852c-43af-4f74-a06c-e4507f805db9","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/company-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","company-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"c07dae07-ec61-41d0-8111-8ad8395caede"},{"name":"Get employees performance report","id":"d41d26d9-fcd3-4b02-a3a8-c00994414426","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/employees-performance?period=<string>&start_date=<string>&end_date=<string>&actual_review_cycles=<string>&search=<string>&filter=<string>","description":"<p>This endpoint returns per-employee contribution and engagement averages for the selected performance cycles.</p>\n<p>Requires permission to <strong>view</strong> performance reports and the <strong>Performance Review</strong> subscription feature. Saved examples illustrate the JSON shape.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","employees-performance"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. <strong>l12m</strong> or <strong>l6m</strong>, or omit when using <strong>start_date</strong>/<strong>end_date</strong> or <strong>actual_review_cycles</strong> as documented for the company performance report.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>; range max 36 months with <strong>end_date</strong>.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, on or after <strong>start_date</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Comma-separated cycle ids; unknown ids ignored. When present, period and date validation follow the same branch as the company performance report.</p>\n","type":"text/plain"},"key":"actual_review_cycles","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filters employees by name fragments and related directory fields (see server-side matching).</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filter string for the employee directory. Retrieve available values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>employee_performance_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"e678fe54-d4a9-4fd5-b296-7304495c1d35","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"max_value\": 5,\n    \"max_engagement\": 5,\n    \"rows\": [\n      {\n        \"id\": 42,\n        \"first_name\": \"Jane\",\n        \"last_name\": \"Doe\",\n        \"email\": \"jane@example.com\",\n        \"photo_url\": \"https://example.com/photo.jpg\",\n        \"job_title\": \"Engineer\",\n        \"department\": \"Engineering\",\n        \"division\": \"Product\",\n        \"location\": \"London\",\n        \"employment_status_name\": \"Active\",\n        \"value_average\": 4.2,\n        \"engagement_average\": 3.8,\n        \"resized_photo_url\": \"https://example.com/photo-sm.jpg\"\n      }\n    ]\n  }\n}"},{"id":"504daa80-1283-42b5-a8a0-4e0983a7b6fd","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/employees-performance"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"9859bdf4-6f17-4a38-8d2f-139531a7bd95","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"9eb0b398-35f3-40db-a670-dc1299c62375","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Performance Review enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"04ae546a-9224-4d7f-a35b-7025fe779fe8","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"d41d26d9-fcd3-4b02-a3a8-c00994414426"},{"name":"Get employees performance report (analytical)","id":"54ae0827-e1a6-41e2-8774-98e3eaa77dbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/employees-performance-analytical?period=<string>&start_date=<string>&end_date=<string>&actual_review_cycles=<string>&search=<string>&filter=<string>","description":"<p>This endpoint returns an analytical view of employee performance reviews: cycles with per-employee manager and self question rows, including answered text where submitted.</p>\n<p>Use this route for the analytical dataset in API integrations. Requires permission to <strong>view</strong> performance reports and the <strong>Performance Review</strong> subscription feature.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","employees-performance-analytical"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Same conditional rules as <strong>Get employees performance report</strong>.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Same as <strong>Get employees performance report</strong>.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Same as <strong>Get employees performance report</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Same as <strong>Get employees performance report</strong>.</p>\n","type":"text/plain"},"key":"actual_review_cycles","value":"<string>"},{"description":{"content":"<p>(string) Optional. Same behaviour as <strong>Get employees performance report</strong>.</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>(string) Optional. Same behaviour as <strong>Get employees performance report</strong>; use GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>employee_performance_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"20f60065-6f46-46fc-9dc2-21642b4f1586","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-analytical?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-analytical"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 9,\n      \"performance_review_id\": 3,\n      \"name\": \"Q1 Review\",\n      \"start_date\": \"2025-01-01\",\n      \"end_date\": \"2025-03-31\",\n      \"employees\": [\n        {\n          \"id\": 42,\n          \"first_name\": \"Jane\",\n          \"last_name\": \"Doe\",\n          \"email\": \"jane@example.com\",\n          \"location\": \"London\",\n          \"division\": \"Product\",\n          \"department\": \"Engineering\",\n          \"job_title\": \"Engineer\",\n          \"employment_status_name\": \"Active\",\n          \"manager_questions\": [],\n          \"employee_questions\": [\n            {\n              \"id\": 501,\n              \"question_body\": \"How engaged is Jane this cycle?\",\n              \"answer_body\": \"Highly engaged\"\n            }\n          ],\n          \"manager_answered\": true,\n          \"employee_answered\": true\n        }\n      ]\n    }\n  ]\n}"},{"id":"88342896-f848-45e3-835c-23d4ffee910b","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/employees-performance-analytical"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"e05cc621-1bc2-4c90-862d-16aa97a243e6","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-analytical?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-analytical"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"41e245f5-67e6-4010-80b3-988a56548fd6","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-analytical?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-analytical"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Performance Review enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"b49c1fce-fd52-43f8-b04b-babac0bb9005","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-analytical?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-analytical"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"54ae0827-e1a6-41e2-8774-98e3eaa77dbd"},{"name":"Get employee performance history","id":"081dd5cd-bc71-4b72-8b1a-b18ca0544838","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/:employee?period=<string>&start_date=<string>&end_date=<string>&actual_review_cycles=<string>","description":"<p>This endpoint returns contribution (value) and engagement score history for one employee across the selected performance cycles.</p>\n<p>Requires permission to view performance reports and the Performance Review subscription feature.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","employees-performance-history",":employee"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. <strong>l12m</strong> or <strong>l6m</strong>, or omit when using <strong>start_date</strong>/<strong>end_date</strong> together (same rules as <strong>Get company performance report</strong>).</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>; together with <strong>end_date</strong> the window may not exceed 36 months.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, on or after <strong>start_date</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Comma-separated performance cycle ids (digits only). Unknown ids are ignored. When present, <strong>period</strong> / <strong>start_date</strong>/<strong>end_date</strong> validation follows the same branch as <strong>Get company performance report</strong>.</p>\n","type":"text/plain"},"key":"actual_review_cycles","value":"<string>"}],"variable":[{"description":{"content":"<p>(integer) Required. Employee id (numeric path segment).</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"employee"}]}},"response":[{"id":"465fa20a-595f-4200-a431-8ca424c03ec2","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/42?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-history","42"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 42,\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"jane@example.com\",\n    \"photo_url\": \"https://example.com/photo.jpg\",\n    \"resized_photo_url\": \"https://example.com/photo-sm.jpg\",\n    \"job_title\": \"Engineer\",\n    \"department\": \"Engineering\",\n    \"division\": \"Product\",\n    \"location\": \"London\",\n    \"employment_status_name\": \"Active\",\n    \"value\": [\n      {\n        \"start_date\": \"2025-01-01\",\n        \"score\": 4\n      },\n      {\n        \"start_date\": \"2025-07-01\",\n        \"score\": 5\n      }\n    ],\n    \"engagement\": [\n      {\n        \"start_date\": \"2025-01-01\",\n        \"score\": 3\n      }\n    ]\n  }\n}"},{"id":"14c9e8d2-80d0-48aa-b7d6-e6370f9f3cc6","name":"OK (200) — no reviews in window","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/42?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-history","42"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {}\n}"},{"id":"f2a19ccf-0ce1-49ba-9895-72fd1cf2565a","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/42"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"11899b6d-9cc6-49f4-9868-a4b9a6befcf8","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/42?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-history","42"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"62b066bc-c4f9-40e5-b115-3910ecca4c92","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/42?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-history","42"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Performance Review enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"4dcb2ad7-d316-4c74-9cdf-c44eaab9401d","name":"Not found exception (404) — employee","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/999999?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-history","999999"],"query":[{"key":"period","value":"l12m"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"No query results for model [App\\\\Models\\\\Employee] 999999\",\n    \"code\": 404,\n    \"hr_code\": 41,\n    \"hr_code_key\": \"not_found_http\"\n  }\n}"},{"id":"af822abe-9661-41f3-9237-1beaabf6ad57","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/employees-performance-history/42?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","employees-performance-history","42"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"081dd5cd-bc71-4b72-8b1a-b18ca0544838"},{"name":"Get performance cycles for date range","id":"2608666b-6181-4f5d-b437-663f42345590","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/performance-cycles?period=<string>&start_date=<string>&end_date=<string>","description":"<p>This endpoint lists performance review cycles whose dates overlap the resolved window (period l12m/l6m, or explicit start_date/end_date).</p>\n<p>Requires permission to view performance reports.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","performance-cycles"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. <strong>l12m</strong> or <strong>l6m</strong>, or omit when using <strong>start_date</strong>/<strong>end_date</strong> together. Resolves the calendar window used to select cycles.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>; range max 36 months with <strong>end_date</strong>.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, on or after <strong>start_date</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"}],"variable":[]}},"response":[{"id":"d4877cb0-5878-43c4-ae58-52bddf9b19db","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/performance-cycles?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","performance-cycles"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 3,\n      \"start_date\": \"2025-01-01\",\n      \"end_date\": \"2025-03-31\",\n      \"is_disabled\": false,\n      \"performance_review_id\": 1,\n      \"is_open\": false,\n      \"performance_review\": {\n        \"id\": 1,\n        \"name\": \"Q1 Review\"\n      }\n    }\n  ]\n}"},{"id":"5092d58a-3ed7-4237-a3d0-a07f510df4c0","name":"Unprocessable Content (422)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/performance-cycles"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"9a4db218-ad48-4523-8881-0377e634e72f","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/performance-cycles?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","performance-cycles"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"e1680952-995e-4925-8ea4-4ef546cbbdb1","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/performance-cycles?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","performance-cycles"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"2608666b-6181-4f5d-b437-663f42345590"},{"name":"Get time off report","id":"b4c6ec5b-d731-40d9-9714-ed7fca634f71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/timeoffs?period=<string>&start_date=<string>&end_date=<string>&filter=<string>","description":"<p>This endpoint returns summarized <strong>approved</strong>, non-cancelled time off for the resolved reporting window, including monthly totals by leave type and working-weekday totals and percentage shares by type.</p>\n<p>Requires permission to view time off reports.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","timeoffs"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. Allowed: <strong>l12m</strong>, the <strong>current calendar year</strong>, or the <strong>previous calendar year</strong> (four-digit year, e.g. <strong>2026</strong>). Omit when using <strong>start_date</strong> and <strong>end_date</strong> together.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, not after the end of the current calendar month.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, on or after <strong>start_date</strong>. Maximum span with <strong>start_date</strong> is <strong>36 months</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Semicolon-separated <strong>key=value</strong> pairs for <strong>location</strong>, <strong>department</strong>, and <strong>division</strong> only (numeric ids), e.g. <code>location=5;department=3</code>. Retrieve available values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>timeoff_budgets_report</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"}],"variable":[]}},"response":[{"id":"e56a917d-313d-4e8a-9a53-f5c4db4e3a36","name":"OK (200)","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/timeoffs?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","timeoffs"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"monthly_leave_breakdown\": {\n      \"2025-06\": {\n        \"Vacation\": 2.5,\n        \"Sick\": 0.5\n      },\n      \"2025-07\": {\n        \"Vacation\": 1\n      }\n    },\n    \"weekday_leave_breakdown\": {\n      \"Monday\": {\n        \"Vacation\": 1.5\n      },\n      \"Tuesday\": {\n        \"Vacation\": 1,\n        \"Sick\": 0.5\n      }\n    },\n    \"weekday_leave_breakdown_percentage\": {\n      \"Monday\": {\n        \"Vacation\": 60,\n        \"Sick\": 40\n      },\n      \"Tuesday\": {\n        \"Vacation\": 66.67,\n        \"Sick\": 33.33\n      }\n    }\n  }\n}"},{"id":"7decd84e-db45-4005-8761-6a4f18c0eaca","name":"Unprocessable Content (422) — invalid period","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/timeoffs?period=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","timeoffs"],"query":[{"key":"period","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The given data was invalid.\"\n      ]\n    }\n  }\n}"},{"id":"b45c21f7-7a0e-498c-ae8a-48025810c9e2","name":"Unprocessable Content (422) — missing window","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/timeoffs"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"3cdc707d-e876-4994-b38d-19b7e669fd0c","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/timeoffs?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","timeoffs"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"c8e52cb0-fb3f-45a3-be8f-a11d46ab7876","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/timeoffs?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","timeoffs"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"b4c6ec5b-d731-40d9-9714-ed7fca634f71"},{"name":"Get company time tracking report","id":"bc006dd2-8cfc-4970-a759-97fdbbb32f7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=<string>&start_date=<string>&end_date=<string>&filter=<string>&group_by=<string>","description":"<p>This endpoint returns company-wide tracked time totals by calendar month, optionally split by a <strong>group_by</strong> dimension.</p>\n<p>Requires permission to view time tracking reports and the Time Tracking subscription feature.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","time-tracking","company"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. Allowed: <strong>l12m</strong>, the <strong>current calendar year</strong>, or the <strong>previous calendar year</strong> (four-digit year). Omit when using <strong>start_date</strong> and <strong>end_date</strong> together.</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, on or after <strong>start_date</strong>. Maximum span is <strong>36 months</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Semicolon-separated <strong>key=value</strong> pairs (for example location, department, division, job title, employment status, manager, gender, tag). Retrieve available values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>company_time_tracking_report</strong> using the same <strong>period</strong> / <strong>start_date</strong> / <strong>end_date</strong> as this request.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. <strong>location</strong>, <strong>department</strong>, <strong>division</strong>, <strong>gender</strong>, <strong>age</strong>, <strong>seniority</strong>, or <strong>tag</strong>. When set, the successful response includes a per-month breakdown by that dimension (see saved <strong>200</strong> examples).</p>\n","type":"text/plain"},"key":"group_by","value":"<string>"}],"variable":[]}},"response":[{"id":"4af91964-c60e-4cde-98a5-9c12099d4188","name":"OK (200) — without group_by","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"l12m"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"2025-05\": 88,\n      \"2025-06\": 92.5,\n      \"2025-07\": 76,\n      \"2025-08\": 101,\n      \"2025-09\": 89,\n      \"2025-10\": 94,\n      \"2025-11\": 82,\n      \"2025-12\": 71,\n      \"2026-01\": 96,\n      \"2026-02\": 88,\n      \"2026-03\": 103,\n      \"2026-04\": 91,\n      \"2026-05\": 85\n    },\n    \"group_by\": {}\n  }\n}"},{"id":"0cc5db31-2484-4370-b3d3-4dc81dadb952","name":"OK (200) — with group_by","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=l12m&group_by=department","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"l12m"},{"key":"group_by","value":"department"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": {\n    \"total\": {\n      \"2025-05\": 88,\n      \"2025-06\": 92.5,\n      \"2025-07\": 76,\n      \"2025-08\": 101,\n      \"2025-09\": 89,\n      \"2025-10\": 94,\n      \"2025-11\": 82,\n      \"2025-12\": 71,\n      \"2026-01\": 96,\n      \"2026-02\": 88,\n      \"2026-03\": 103,\n      \"2026-04\": 91,\n      \"2026-05\": 85\n    },\n    \"group_by\": {\n      \"2025-05\": {\n        \"Engineering\": 55,\n        \"Sales\": 33\n      },\n      \"2025-06\": {\n        \"Engineering\": 58,\n        \"Sales\": 34.5\n      },\n      \"2025-07\": {\n        \"Engineering\": 48,\n        \"Sales\": 28\n      },\n      \"2025-08\": {\n        \"Engineering\": 62,\n        \"Sales\": 39\n      },\n      \"2025-09\": {\n        \"Engineering\": 54,\n        \"Sales\": 35\n      },\n      \"2025-10\": {\n        \"Engineering\": 58,\n        \"Sales\": 36\n      },\n      \"2025-11\": {\n        \"Engineering\": 51,\n        \"Sales\": 31\n      },\n      \"2025-12\": {\n        \"Engineering\": 44,\n        \"Sales\": 27\n      },\n      \"2026-01\": {\n        \"Engineering\": 59,\n        \"Sales\": 37\n      },\n      \"2026-02\": {\n        \"Engineering\": 54,\n        \"Sales\": 34\n      },\n      \"2026-03\": {\n        \"Engineering\": 63,\n        \"Sales\": 40\n      },\n      \"2026-04\": {\n        \"Engineering\": 56,\n        \"Sales\": 35\n      },\n      \"2026-05\": {\n        \"Engineering\": 52,\n        \"Sales\": 33\n      }\n    }\n  }\n}"},{"id":"1053ee7f-4bc6-477c-893d-53c34ac47a55","name":"Unprocessable Content (422) — invalid period","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=invalid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"invalid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The given data was invalid.\"\n      ]\n    }\n  }\n}"},{"id":"fe86fb53-1d41-4b1b-af18-f2b46b3e8b12","name":"Unprocessable Content (422) — invalid group_by","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=l12m&group_by=not_valid","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"l12m"},{"key":"group_by","value":"not_valid"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"group_by\": [\n        \"The selected group by is invalid.\"\n      ]\n    }\n  }\n}"},{"id":"5f172ef7-8f84-4837-acb3-e4955ef46e70","name":"Unprocessable Content (422) — missing window","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/time-tracking/company"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"0cf613b8-5e86-4434-9de4-2e3ccb722510","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"1ab25dc2-a3ec-4187-b226-5356def5f1de","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Time Tracking enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"5d8c1212-2026-4553-bcd1-97cb571820f5","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/company?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","company"],"query":[{"key":"period","value":"l12m"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"bc006dd2-8cfc-4970-a759-97fdbbb32f7c"},{"name":"Get employees time tracking report","id":"afcf146c-4a55-41ca-8236-fd73479b7c6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?period=<string>&start_date=<string>&end_date=<string>&filter=<string>&tags=<string>&search=<string>&sort=<string>&order=<string>","description":"<p>This endpoint returns employees with tracked minutes in the resolved window, broken down by selected tags and a running total.</p>\n<p>Requires permission to view time tracking reports and the Time Tracking subscription feature. Preset <strong>period</strong> values are interpreted in the authenticated user’s timezone.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}},"urlObject":{"path":["reports","time-tracking","employees"],"host":["https://pubapi.talenthr.io/v1"],"query":[{"description":{"content":"<p>(string) Conditionally required. Allowed: <strong>today</strong>, <strong>yesterday</strong>, <strong>week</strong>, <strong>month</strong>, or omit when using <strong>start_date</strong> and <strong>end_date</strong> (<strong>YYYY-MM-DD</strong>).</p>\n","type":"text/plain"},"key":"period","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>end_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>.</p>\n","type":"text/plain"},"key":"start_date","value":"<string>"},{"description":{"content":"<p>(string, date) Conditionally required with <strong>start_date</strong> when <strong>period</strong> is omitted. <strong>YYYY-MM-DD</strong>, on or after <strong>start_date</strong>. Maximum span is <strong>36 months</strong>.</p>\n","type":"text/plain"},"key":"end_date","value":"<string>"},{"description":{"content":"<p>(string) Optional. Semicolon-separated <strong>key=value</strong> pairs (for example location, department, division, job title, employment status, manager, gender, tag). Retrieve available values via GET https://pubapi.talenthr.io/v1/reports/filters with <strong>model</strong>=<strong>employee_time_tracking_report</strong> using the same <strong>period</strong> / <strong>start_date</strong> / <strong>end_date</strong>.</p>\n","type":"text/plain"},"key":"filter","value":"<string>"},{"description":{"content":"<p>(string) Optional. Comma-separated time tracking tag ids to include. Include the token <strong>na</strong> to count minutes logged <strong>without</strong> a tag.</p>\n","type":"text/plain"},"key":"tags","value":"<string>"},{"description":{"content":"<p>(string) Optional. Filters by employee name fragments and related directory fields (server-side matching).</p>\n","type":"text/plain"},"key":"search","value":"<string>"},{"description":{"content":"<p>(string) Optional. <strong>total</strong> (default when <strong>sort</strong> is omitted), <strong>name</strong>, <strong>na</strong> (untagged minutes), or a numeric time tracking <strong>tag id</strong>. <strong>order</strong> defaults to <strong>desc</strong> when omitted.</p>\n","type":"text/plain"},"key":"sort","value":"<string>"},{"description":{"content":"<p>(string) Optional. <strong>asc</strong> or <strong>desc</strong>.</p>\n","type":"text/plain"},"key":"order","value":"<string>"}],"variable":[]}},"response":[{"id":"10fd1450-ed4e-42e9-af71-0ef3c288a4c4","name":"OK (200) — preset period","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?period=today&tags=2,na","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","employees"],"query":[{"key":"period","value":"today"},{"key":"tags","value":"2,na"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 42,\n      \"first_name\": \"Jane\",\n      \"last_name\": \"Doe\",\n      \"email\": \"jane@example.com\",\n      \"photo_url\": \"https://example.com/p.jpg\",\n      \"resized_photo_url\": \"https://example.com/p-sm.jpg\",\n      \"job_title\": \"Engineer\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 135\n        },\n        {\n          \"id\": 2,\n          \"name\": \"Client work\",\n          \"minutes\": 120\n        },\n        {\n          \"id\": null,\n          \"name\": \"N/A\",\n          \"minutes\": 15\n        }\n      ]\n    },\n    {\n      \"id\": 17,\n      \"first_name\": \"Alex\",\n      \"last_name\": \"Kumar\",\n      \"email\": \"alex.kumar@example.com\",\n      \"photo_url\": \"https://example.com/17.jpg\",\n      \"resized_photo_url\": \"https://example.com/17-sm.jpg\",\n      \"job_title\": \"Product Designer\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 210\n        },\n        {\n          \"id\": 2,\n          \"name\": \"Client work\",\n          \"minutes\": 180\n        },\n        {\n          \"id\": null,\n          \"name\": \"N/A\",\n          \"minutes\": 30\n        }\n      ]\n    },\n    {\n      \"id\": 23,\n      \"first_name\": \"Maria\",\n      \"last_name\": \"Santos\",\n      \"email\": \"maria.santos@example.com\",\n      \"photo_url\": \"https://example.com/23.jpg\",\n      \"resized_photo_url\": \"https://example.com/23-sm.jpg\",\n      \"job_title\": \"Sales Manager\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 90\n        },\n        {\n          \"id\": 2,\n          \"name\": \"Client work\",\n          \"minutes\": 90\n        },\n        {\n          \"id\": null,\n          \"name\": \"N/A\",\n          \"minutes\": 0\n        }\n      ]\n    },\n    {\n      \"id\": 8,\n      \"first_name\": \"Sam\",\n      \"last_name\": \"Chen\",\n      \"email\": \"sam.chen@example.com\",\n      \"photo_url\": \"https://example.com/8.jpg\",\n      \"resized_photo_url\": \"https://example.com/8-sm.jpg\",\n      \"job_title\": \"Support Lead\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 45\n        },\n        {\n          \"id\": 2,\n          \"name\": \"Client work\",\n          \"minutes\": 0\n        },\n        {\n          \"id\": null,\n          \"name\": \"N/A\",\n          \"minutes\": 45\n        }\n      ]\n    }\n  ]\n}"},{"id":"262f16cb-d4a2-4773-aa63-186e286d7a48","name":"OK (200) — custom date range","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?start_date=2026-04-01&end_date=2026-04-30&sort=total&order=desc","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","employees"],"query":[{"key":"start_date","value":"2026-04-01"},{"key":"end_date","value":"2026-04-30"},{"key":"sort","value":"total"},{"key":"order","value":"desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 42,\n      \"first_name\": \"Jane\",\n      \"last_name\": \"Doe\",\n      \"email\": \"jane@example.com\",\n      \"photo_url\": \"https://example.com/p.jpg\",\n      \"resized_photo_url\": \"https://example.com/p-sm.jpg\",\n      \"job_title\": \"Engineer\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 480\n        }\n      ]\n    },\n    {\n      \"id\": 17,\n      \"first_name\": \"Alex\",\n      \"last_name\": \"Kumar\",\n      \"email\": \"alex.kumar@example.com\",\n      \"photo_url\": \"https://example.com/17.jpg\",\n      \"resized_photo_url\": \"https://example.com/17-sm.jpg\",\n      \"job_title\": \"Product Designer\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 360\n        }\n      ]\n    },\n    {\n      \"id\": 23,\n      \"first_name\": \"Maria\",\n      \"last_name\": \"Santos\",\n      \"email\": \"maria.santos@example.com\",\n      \"photo_url\": \"https://example.com/23.jpg\",\n      \"resized_photo_url\": \"https://example.com/23-sm.jpg\",\n      \"job_title\": \"Sales Manager\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 240\n        }\n      ]\n    },\n    {\n      \"id\": 8,\n      \"first_name\": \"Sam\",\n      \"last_name\": \"Chen\",\n      \"email\": \"sam.chen@example.com\",\n      \"photo_url\": \"https://example.com/8.jpg\",\n      \"resized_photo_url\": \"https://example.com/8-sm.jpg\",\n      \"job_title\": \"Support Lead\",\n      \"time_tracking\": [\n        {\n          \"id\": null,\n          \"name\": \"total\",\n          \"minutes\": 120\n        }\n      ]\n    }\n  ]\n}"},{"id":"587503a8-56eb-4545-9cb5-aa9a55e1fc14","name":"Unprocessable Content (422) — invalid period","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?period=l12m","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","employees"],"query":[{"key":"period","value":"l12m"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The given data was invalid.\"\n      ]\n    }\n  }\n}"},{"id":"dbea6841-7c8b-49cc-b800-a684a948acad","name":"Unprocessable Content (422) — missing window","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"The given data was invalid.\",\n    \"code\": \"02\",\n    \"hr_code\": 2,\n    \"fields\": {\n      \"period\": [\n        \"The period field is required when start date is not present.\"\n      ],\n      \"start_date\": [\n        \"The start date field is required when period is not present.\"\n      ]\n    }\n  }\n}"},{"id":"dd3fef3e-8ff1-4f5e-9b37-4439586af926","name":"Forbidden (403) — permission","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?period=today","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","employees"],"query":[{"key":"period","value":"today"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Missing permission.\",\n    \"code\": \"01\",\n    \"hr_code\": 1\n  }\n}"},{"id":"5af61468-5534-476a-bf6a-e3144aeb1307","name":"Forbidden (403) — subscription","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?period=today","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","employees"],"query":[{"key":"period","value":"today"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Your subscription doesn't have Time Tracking enabled. Please upgrade.\",\n    \"code\": 403,\n    \"hr_code\": 5002\n  }\n}"},{"id":"0fb0b803-0b52-41c9-a33b-f3661464f4b0","name":"Forbidden — unauthenticated (403)","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://pubapi.talenthr.io/v1/reports/time-tracking/employees?period=today","host":["https://pubapi.talenthr.io/v1"],"path":["reports","time-tracking","employees"],"query":[{"key":"period","value":"today"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": false,\n  \"error\": {\n    \"message\": \"Unauthenticated.\",\n    \"code\": \"03\",\n    \"hr_code\": 3\n  }\n}"}],"_postman_id":"afcf146c-4a55-41ca-8236-fd73479b7c6f"}],"id":"82ecdbc2-86ef-49fe-83bc-e5487179c0e3","_postman_id":"82ecdbc2-86ef-49fe-83bc-e5487179c0e3","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":true,"source":{"_postman_id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","id":"282b1908-49ef-4074-8ea7-67fdb51c9b4a","name":"TalentHR API","type":"collection"}}}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"834f56ff-a30a-4ab3-8b91-a2d6d69b134b"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"6951c6b7-d8a4-4a25-9e19-058ac230dd36"}}],"variable":[{"id":"67257d5b-eb15-484e-915b-1bf5b09bf318","key":"baseUrl","value":"https://pubapi.talenthr.io/v1"},{"id":"ed8e7952-e5ae-4cce-b363-eb902f646a19","key":"basicAuthUsername","value":""},{"id":"4944d393-974d-4bd9-adeb-0c395d8f1229","key":"basicAuthPassword","value":""}]}