{
"code": 500,
"errors": [],
"message": "Internal Server Error"
}
EmployeeMappings
Create Employee Mapping
Create a new employee mapping for a given organization.
A mapping is identified by the employee_id + system_integration_id pair. Creating is
idempotent for an identical mapping: posting one that already exists returns 200 with the
existing mapping and writes nothing, while a genuinely new mapping returns 201.
A create is never allowed to change an existing mapping. If a mapping for the pair already
exists but carries a different external_id or status, the request is rejected with 409
— use PUT /v1/org/employees/mappings/{employee_mapping_id} to change it.
A remote record belongs to one employee per system integration, so an external_id already
mapped to a different employee in the same system integration is also rejected with 409.
Permissions required: Employee: Create, SystemIntegration: Get
Creates an employee mapping. Once connected to an employee and system integration, the mapping can not be made to point to a different employee or system integration. Only the external_id and status can be updated, and only through PUT — re-posting an existing mapping with a different external_id or status is rejected with 409 rather than applied.
Describes the relationship between an employee and a system to which the employee belongs. Only included if requested by submitting relations=employee_mappings.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Twine Integrations","colors":{"primary":"#7600ff","light":"#ad66ff","dark":"#7600ff"},"logo":{"light":"https://mintcdn.com/entwineab/W0WCY-b2dvTokvLn/logo/light.svg?fit=max\u0026auto=format\u0026n=W0WCY-b2dvTokvLn\u0026q=85\u0026s=7e70d0ec35e8816f98a512eafa2ad35b","dark":"https://mintcdn.com/entwineab/W0WCY-b2dvTokvLn/logo/dark.svg?fit=max\u0026auto=format\u0026n=W0WCY-b2dvTokvLn\u0026q=85\u0026s=bcf15f923005d67de257a74c061db962"},"favicon":"https://mintcdn.com/entwineab/OPi-j2jbIEGoK6fy/favicon.svg?fit=max\u0026auto=format\u0026n=OPi-j2jbIEGoK6fy\u0026q=85\u0026s=190facce372d84ae3de157af3da0688e","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"},{"href":"https://app-stage.twine.se","label":"Stage"}],"primary":{"type":"button","label":"App","href":"https://app.twine.se"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"twine.se","icon":"globe","href":"https://www.twine.se"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"entwineab","hasAudioNarration":false,"actualSubdomain":"entwineab","customDomains":["docs.twine.se"],"gitSource":{"type":"github","owner":"twine-se","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6acf668b4788a74327b72032","collectionId":"027bd1b7-2940-449a-bfcf-f8ccfca1f9a2","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6acf668b4788a74327b72032"},"entitlements":{},"buildId":"6acf668b4788a74327b72032","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API Reference","count":149},{"language":"default","tag":"Data Engine","count":86},{"language":"default","tag":"Integrations","count":72},{"language":"default","tag":"Flow Engine","count":41},{"language":"default","tag":"Platform","count":33},{"language":"default","tag":"Assigns","count":28},{"language":"default","tag":"Flow Control","count":19},{"language":"default","tag":"Transformation","count":19},{"language":"default","tag":"Changelog","count":18},{"language":"default","tag":"HRIS","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/employeemappings/create-employee-mapping","slug":"/api-reference/employeemappings/create-employee-mapping","pageMetadata":{"title":"Create Employee Mapping","description":"Create a new employee mapping for a given organization.\n\nA mapping is identified by the `employee_id` + `system_integration_id` pair. Creating is\nidempotent for an identical mapping: posting one that already exists returns `200` with the\nexisting mapping and writes nothing, while a genuinely new mapping returns `201`.\n\nA create is never allowed to change an existing mapping. If a mapping for the pair already\nexists but carries a different `external_id` or `status`, the request is rejected with `409`\n— use `PUT /v1/org/employees/mappings/{employee_mapping_id}` to change it.\n\nA remote record belongs to one employee per system integration, so an `external_id` already\nmapped to a different employee in the same system integration is also rejected with `409`.\n\nPermissions required: `Employee: Create`, `SystemIntegration: Get`\n","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/employees/mappings","href":"/api-reference/employeemappings/create-employee-mapping","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a new employee mapping for a given organization.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A mapping is identified by the \", _jsx(_components.code, {\n children: \"employee_id\"\n }), \" + \", _jsx(_components.code, {\n children: \"system_integration_id\"\n }), \" pair. Creating is\\nidempotent for an identical mapping: posting one that already exists returns \", _jsx(_components.code, {\n children: \"200\"\n }), \" with the\\nexisting mapping and writes nothing, while a genuinely new mapping returns \", _jsx(_components.code, {\n children: \"201\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A create is never allowed to change an existing mapping. If a mapping for the pair already\\nexists but carries a different \", _jsx(_components.code, {\n children: \"external_id\"\n }), \" or \", _jsx(_components.code, {\n children: \"status\"\n }), \", the request is rejected with \", _jsx(_components.code, {\n children: \"409\"\n }), \"\\n— use \", _jsx(_components.code, {\n children: \"PUT /v1/org/employees/mappings/{employee_mapping_id}\"\n }), \" to change it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A remote record belongs to one employee per system integration, so an \", _jsx(_components.code, {\n children: \"external_id\"\n }), \" already\\nmapped to a different employee in the same system integration is also rejected with \", _jsx(_components.code, {\n children: \"409\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Permissions required: \", _jsx(_components.code, {\n children: \"Employee: Create\"\n }), \", \", _jsx(_components.code, {\n children: \"SystemIntegration: Get\"\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Employee Mapping","description":"Create a new employee mapping for a given organization.\n\nA mapping is identified by the `employee_id` + `system_integration_id` pair. Creating is\nidempotent for an identical mapping: posting one that already exists returns `200` with the\nexisting mapping and writes nothing, while a genuinely new mapping returns `201`.\n\nA create is never allowed to change an existing mapping. If a mapping for the pair already\nexists but carries a different `external_id` or `status`, the request is rejected with `409`\n— use `PUT /v1/org/employees/mappings/{employee_mapping_id}` to change it.\n\nA remote record belongs to one employee per system integration, so an `external_id` already\nmapped to a different employee in the same system integration is also rejected with `409`.\n\nPermissions required: `Employee: Create`, `SystemIntegration: Get`\n","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/employees/mappings","href":"/api-reference/employeemappings/create-employee-mapping","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"callbacks":{},"description":"Create a new employee mapping for a given organization.\n\nA mapping is identified by the `employee_id` + `system_integration_id` pair. Creating is\nidempotent for an identical mapping: posting one that already exists returns `200` with the\nexisting mapping and writes nothing, while a genuinely new mapping returns `201`.\n\nA create is never allowed to change an existing mapping. If a mapping for the pair already\nexists but carries a different `external_id` or `status`, the request is rejected with `409`\n— use `PUT /v1/org/employees/mappings/{employee_mapping_id}` to change it.\n\nA remote record belongs to one employee per system integration, so an `external_id` already\nmapped to a different employee in the same system integration is also rejected with `409`.\n\nPermissions required: `Employee: Create`, `SystemIntegration: Get`\n","operationId":"createEmployeeMapping","parameters":[],"requestBody":"109f2584-f8df-4b6f-99a2-07fa7643d2ec","responses":{"200":"d6c7a08d-3627-4a07-b8bf-7951fcec9ac0","201":"4e61c3e7-0e95-495a-94d3-92376c94b018","400":"ef3ca1ae-7fcb-471c-8742-c29be7fe2286","403":"3639c1f2-3ea9-40a3-9d74-9b68404af7af","404":"c72dda47-32d9-4836-b2fa-558b3b494e47","409":"b4b09558-95b0-4cd0-8803-d636530024de","422":"331e8223-305f-4347-8a99-483f8dd275a2","500":"1031fea1-5c73-4405-aebc-5cb16ba646d0"},"summary":"Create Employee Mapping","tags":["EmployeeMappings"],"method":"post","type":"path","servers":["9052e5c0-34df-47d4-8603-693bab08bcc0","c9338b87-25eb-4aa8-b3fe-b99dae164f43"],"security":["48248fe8-3acb-4be1-b40f-8384723ebc05"],"path":"/v1/org/employees/mappings","baseUrlOptions":["https://api.twine.se","https://api-stage.twine.se"],"title":"Create Employee Mapping","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"description":"Request schema for creating an employee mapping","properties":{"data":{"description":"Creates an employee mapping. Once connected to an employee and system integration, the mapping can not be made to point to a different employee or system integration. Only the `external_id` and `status` can be updated, and only through `PUT` — re-posting an existing mapping with a different `external_id` or `status` is rejected with `409` rather than applied.","properties":{"employee_id":{"description":"The UUID of the employee. Specific for Twine","type":"string","isRequired":true,"uniqueKey":"data.employee_id","typeLabel":"string"},"external_id":{"description":"The ID of the employee in the remote system. Will always be a string even if the remote system uses numeric IDs","type":"string","isRequired":true,"uniqueKey":"data.external_id","typeLabel":"string"},"status":{"description":"The status of the employee mapping. `inactive` indicates that the employee has been removed from the remote system, or has filtered out by local conditions","enum":["active","inactive"],"type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"system_integration_id":{"description":"The ID of the system integration in Twine that owns this mapping","type":"string","isRequired":true,"uniqueKey":"data.system_integration_id","typeLabel":"string"}},"required":["external_id","employee_id","system_integration_id","status"],"title":"EmployeeMappingCreate","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"EmployeeMappingCreate · object"}},"required":["data"],"title":"EmployeeMappingCreateRequest","type":"object","uniqueKey":"","typeLabel":"EmployeeMappingCreateRequest · object"},"examples":{"Example":{"title":"Example","value":{"data":{"employee_id":"\u003cstring>","external_id":"\u003cstring>","system_integration_id":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Employee Mapping Create Request","required":false,"exampleType":"generated"},"responses":{"d6c7a08d-3627-4a07-b8bf-7951fcec9ac0":{"content":{"application/json":{"schema":{"description":"An employee mapping","properties":{"data":{"description":"Describes the relationship between an employee and a system to which the employee belongs. Only included if requested by submitting `relations=employee_mappings`.","properties":{"employee_id":{"description":"The UUID of the employee. Specific for Twine","type":"string","isRequired":true,"uniqueKey":"data.employee_id","typeLabel":"string"},"external_id":{"description":"The ID of the employee in the remote system. Will always be a string even if the remote system uses numeric IDs","type":"string","isRequired":true,"uniqueKey":"data.external_id","typeLabel":"string"},"id":{"description":"The UUID of the employee mapping in Twine","type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"inserted_at":{"description":"The timestamp when the mapping was created","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.inserted_at","typeLabel":"string\u003cdate-time>"},"status":{"description":"The status of the employee mapping. `inactive` indicates that the employee has been removed from the remote system, or has filtered out by local conditions","enum":["active","inactive"],"type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"status_updated_at":{"oneOf":[{"description":"The timestamp when the status was last updated","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.status_updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"The timestamp when the status was last updated","format":"date-time","type":"null","isRequired":true,"uniqueKey":"data.status_updated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.status_updated_at","typeLabel":"string\u003cdate-time> | null"},"system_integration_id":{"description":"The ID of the system integration in Twine that owns this mapping","type":"string","isRequired":true,"uniqueKey":"data.system_integration_id","typeLabel":"string"},"updated_at":{"description":"The timestamp when the mapping was last updated","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"}},"required":["id","external_id","employee_id","system_integration_id","status","status_updated_at","inserted_at","updated_at"],"title":"EmployeeMapping","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"EmployeeMapping · object"}},"required":["data"],"title":"EmployeeMappingResponse","type":"object","uniqueKey":"","typeLabel":"EmployeeMappingResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"employee_id":"\u003cstring>","external_id":"\u003cstring>","id":"\u003cstring>","inserted_at":"2023-11-07T05:31:56Z","status":"active","status_updated_at":"2023-11-07T05:31:56Z","system_integration_id":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"description":"Existing identical employee mapping, unchanged","exampleType":"generated"},"4e61c3e7-0e95-495a-94d3-92376c94b018":{"content":{"application/json":{"schema":{"description":"An employee mapping","properties":{"data":{"description":"Describes the relationship between an employee and a system to which the employee belongs. Only included if requested by submitting `relations=employee_mappings`.","properties":{"employee_id":{"description":"The UUID of the employee. Specific for Twine","type":"string","isRequired":true,"uniqueKey":"data.employee_id","typeLabel":"string"},"external_id":{"description":"The ID of the employee in the remote system. Will always be a string even if the remote system uses numeric IDs","type":"string","isRequired":true,"uniqueKey":"data.external_id","typeLabel":"string"},"id":{"description":"The UUID of the employee mapping in Twine","type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"inserted_at":{"description":"The timestamp when the mapping was created","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.inserted_at","typeLabel":"string\u003cdate-time>"},"status":{"description":"The status of the employee mapping. `inactive` indicates that the employee has been removed from the remote system, or has filtered out by local conditions","enum":["active","inactive"],"type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"status_updated_at":{"oneOf":[{"description":"The timestamp when the status was last updated","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.status_updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"The timestamp when the status was last updated","format":"date-time","type":"null","isRequired":true,"uniqueKey":"data.status_updated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.status_updated_at","typeLabel":"string\u003cdate-time> | null"},"system_integration_id":{"description":"The ID of the system integration in Twine that owns this mapping","type":"string","isRequired":true,"uniqueKey":"data.system_integration_id","typeLabel":"string"},"updated_at":{"description":"The timestamp when the mapping was last updated","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"}},"required":["id","external_id","employee_id","system_integration_id","status","status_updated_at","inserted_at","updated_at"],"title":"EmployeeMapping","type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"EmployeeMapping · object"}},"required":["data"],"title":"EmployeeMappingResponse","type":"object","uniqueKey":"","typeLabel":"EmployeeMappingResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"employee_id":"\u003cstring>","external_id":"\u003cstring>","id":"\u003cstring>","inserted_at":"2023-11-07T05:31:56Z","status":"active","status_updated_at":"2023-11-07T05:31:56Z","system_integration_id":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"description":"Employee mapping Response","exampleType":"generated"},"ef3ca1ae-7fcb-471c-8742-c29be7fe2286":{"content":{"application/json":{"schema":{"description":"Bad request error","properties":{"code":{"example":400,"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"errors":{"default":[],"items":{"description":"Singular error","properties":{"domain":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].domain","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"reason":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].reason","typeLabel":"string"}},"required":["domain","reason","message"],"title":"InnerError","type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"InnerError · object"},"type":"array","isRequired":true,"uniqueKey":"errors","typeLabel":"InnerError · object[]"},"message":{"example":"Bad Request","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message","errors"],"title":"BadRequestError","type":"object","uniqueKey":"","typeLabel":"BadRequestError · object"},"examples":{"Example":{"title":"Example","value":{"code":400,"errors":[],"message":"Bad Request"}}},"exampleType":"generated"}},"description":"Bad Request Response","exampleType":"generated"},"3639c1f2-3ea9-40a3-9d74-9b68404af7af":{"content":{"application/json":{"schema":{"description":"Forbidden error","properties":{"code":{"example":403,"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"errors":{"default":[],"items":{"description":"Singular error","properties":{"domain":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].domain","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"reason":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].reason","typeLabel":"string"}},"required":["domain","reason","message"],"title":"InnerError","type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"InnerError · object"},"type":"array","isRequired":true,"uniqueKey":"errors","typeLabel":"InnerError · object[]"},"message":{"example":"Forbidden","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message","errors"],"title":"ForbiddenError","type":"object","uniqueKey":"","typeLabel":"ForbiddenError · object"},"examples":{"Example":{"title":"Example","value":{"code":403,"errors":[],"message":"Forbidden"}}},"exampleType":"generated"}},"description":"Forbidden Response","exampleType":"generated"},"c72dda47-32d9-4836-b2fa-558b3b494e47":{"content":{"application/json":{"schema":{"description":"Resource not found error","properties":{"code":{"example":404,"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"errors":{"default":[],"items":{"description":"Singular error","properties":{"domain":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].domain","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"reason":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].reason","typeLabel":"string"}},"required":["domain","reason","message"],"title":"InnerError","type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"InnerError · object"},"type":"array","isRequired":true,"uniqueKey":"errors","typeLabel":"InnerError · object[]"},"message":{"example":"Not Found","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message","errors"],"title":"NotFoundError","type":"object","uniqueKey":"","typeLabel":"NotFoundError · object"},"examples":{"Example":{"title":"Example","value":{"code":404,"errors":[],"message":"Not Found"}}},"exampleType":"generated"}},"description":"Internal Error Response","exampleType":"generated"},"b4b09558-95b0-4cd0-8803-d636530024de":{"content":{"application/json":{"schema":{"description":"Conflict error","properties":{"code":{"example":409,"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"errors":{"default":[],"items":{"description":"Singular error","properties":{"domain":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].domain","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"reason":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].reason","typeLabel":"string"}},"required":["domain","reason","message"],"title":"InnerError","type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"InnerError · object"},"type":"array","isRequired":true,"uniqueKey":"errors","typeLabel":"InnerError · object[]"},"message":{"example":"Conflict","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message","errors"],"title":"ConflictError","type":"object","uniqueKey":"","typeLabel":"ConflictError · object"},"examples":{"Example":{"title":"Example","value":{"code":409,"errors":[],"message":"Conflict"}}},"exampleType":"generated"}},"description":"Existing employee mapping with different values, or an `external_id` already taken","exampleType":"generated"},"331e8223-305f-4347-8a99-483f8dd275a2":{"content":{"application/json":{"schema":{"description":"Unprocessable entity error","properties":{"code":{"example":422,"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"errors":{"default":[],"items":{"description":"Singular error","properties":{"domain":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].domain","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"reason":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].reason","typeLabel":"string"}},"required":["domain","reason","message"],"title":"InnerError","type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"InnerError · object"},"type":"array","isRequired":true,"uniqueKey":"errors","typeLabel":"InnerError · object[]"},"message":{"example":"Unprocessable Entity","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message","errors"],"title":"UnprocessableEntityError","type":"object","uniqueKey":"","typeLabel":"UnprocessableEntityError · object"},"examples":{"Example":{"title":"Example","value":{"code":422,"errors":[],"message":"Unprocessable Entity"}}},"exampleType":"generated"}},"description":"Unprocessable Entity Response","exampleType":"generated"},"1031fea1-5c73-4405-aebc-5cb16ba646d0":{"content":{"application/json":{"schema":{"description":"Internal server error","properties":{"code":{"example":500,"type":"integer","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"errors":{"default":[],"items":{"description":"Singular error","properties":{"domain":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].domain","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"reason":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].reason","typeLabel":"string"}},"required":["domain","reason","message"],"title":"InnerError","type":"object","uniqueKey":"errors.items.[INDEX]","typeLabel":"InnerError · object"},"type":"array","isRequired":true,"uniqueKey":"errors","typeLabel":"InnerError · object[]"},"message":{"example":"Internal Server Error","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message","errors"],"title":"InternalServerError","type":"object","uniqueKey":"","typeLabel":"InternalServerError · object"},"examples":{"Example":{"title":"Example","value":{"code":500,"errors":[],"message":"Internal Server Error"}}},"exampleType":"generated"}},"description":"Internal Error Response","exampleType":"generated"}},"security":{"48248fe8-3acb-4be1-b40f-8384723ebc05":{"BearerAuth":{"bearerFormat":"JWT","description":"Bearer token for authentication","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"9052e5c0-34df-47d4-8603-693bab08bcc0":{"description":"Twine Public Production API","url":"https://api.twine.se","variables":{}},"c9338b87-25eb-4aa8-b3fe-b99dae164f43":{"description":"Twine Public Staging API","url":"https://api-stage.twine.se","variables":{}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","description":"Bearer token for authentication","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token for authentication","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"https://api.twine.se/spec/openapi.json"},"subdomain":"entwineab","siteName":"Twine Integrations","title":"Create Employee Mapping - Twine Integrations","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-14T11:25:09.729Z","originalFileLocation":"api-reference/employeemappings/create-employee-mapping.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new employee mapping for a given organization. A mapping is identified by the employee_id + system_integration_id pair. Creating is idempotent for an identical mapping: posting one that already exists returns 200 with the existing mapping and writes nothing, while a genuinely new mapping returns 201. A create is never allowed to change an existing mapping. If a mapping for the pair already exists but carries a different external_id or status, the request is rejected with 409 — use PUT /v1/org/employees/mappings/{employee_mapping_id} to change it. A remote record belongs to one employee per system integration, so an external_id already mapped to a different employee in the same system integration is also rejected with 409. Permissions required: Employee: Create, SystemIntegration: Get\">\u003cmeta data-mint-head name=\"application-name\" content=\"Twine Integrations\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Employee Mapping - Twine Integrations\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new employee mapping for a given organization. A mapping is identified by the employee_id + system_integration_id pair. Creating is idempotent for an identical mapping: posting one that already exists returns 200 with the existing mapping and writes nothing, while a genuinely new mapping returns 201. A create is never allowed to change an existing mapping. If a mapping for the pair already exists but carries a different external_id or status, the request is rejected with 409 — use PUT /v1/org/employees/mappings/{employee_mapping_id} to change it. A remote record belongs to one employee per system integration, so an external_id already mapped to a different employee in the same system integration is also rejected with 409. Permissions required: Employee: Create, SystemIntegration: Get\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Twine Integrations\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://entwineab.mintlify.app/_mintlify/api/og/v2?division=EmployeeMappings\u0026amp;title=Create+Employee+Mapping\u0026amp;description=Create+a+new+employee+mapping+for+a+given+organization.%0A%0AA+mapping+is+identified+by+the+%60employee_id%60+%2B+%60system_integration_id%60+pair.+Creating+is%0Aidempotent+for\u0026amp;theme=30a0ce2375f0bc6afd332c94\u0026amp;signature=45885784ead162fb58d80af81a702a96e89a37ec22da4faaab0d46d03ddee76f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Employee Mapping - Twine Integrations\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new employee mapping for a given organization. A mapping is identified by the employee_id + system_integration_id pair. Creating is idempotent for an identical mapping: posting one that already exists returns 200 with the existing mapping and writes nothing, while a genuinely new mapping returns 201. A create is never allowed to change an existing mapping. If a mapping for the pair already exists but carries a different external_id or status, the request is rejected with 409 — use PUT /v1/org/employees/mappings/{employee_mapping_id} to change it. A remote record belongs to one employee per system integration, so an external_id already mapped to a different employee in the same system integration is also rejected with 409. Permissions required: Employee: Create, SystemIntegration: Get\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://entwineab.mintlify.app/_mintlify/api/og/v2?division=EmployeeMappings\u0026amp;title=Create+Employee+Mapping\u0026amp;description=Create+a+new+employee+mapping+for+a+given+organization.%0A%0AA+mapping+is+identified+by+the+%60employee_id%60+%2B+%60system_integration_id%60+pair.+Creating+is%0Aidempotent+for\u0026amp;theme=30a0ce2375f0bc6afd332c94\u0026amp;signature=45885784ead162fb58d80af81a702a96e89a37ec22da4faaab0d46d03ddee76f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/entwineab/8LV-a3cLiAT4An4I/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Twine Integrations\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7600ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/employeemappings/create-employee-mapping.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.twine.se/#organization\",\"name\":\"Twine Integrations\",\"url\":\"https://docs.twine.se\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/entwineab/W0WCY-b2dvTokvLn/logo/light.svg?fit=max\u0026auto=format\u0026n=W0WCY-b2dvTokvLn\u0026q=85\u0026s=7e70d0ec35e8816f98a512eafa2ad35b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.twine.se#website\",\"name\":\"Twine Integrations\",\"url\":\"https://docs.twine.se\",\"publisher\":{\"@id\":\"https://docs.twine.se/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping#webpage\",\"url\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping\",\"name\":\"Create Employee Mapping\",\"description\":\"Create a new employee mapping for a given organization. A mapping is identified by the employee_id + system_integration_id pair. Creating is idempotent for an identical mapping: posting one that already exists returns 200 with the existing mapping and writes nothing, while a genuinely new mapping returns 201. A create is never allowed to change an existing mapping. If a mapping for the pair already exists but carries a different external_id or status, the request is rejected with 409 — use PUT /v1/org/employees/mappings/{employee_mapping_id} to change it. A remote record belongs to one employee per system integration, so an external_id already mapped to a different employee in the same system integration is also rejected with 409. Permissions required: Employee: Create, SystemIntegration: Get\",\"dateModified\":\"2026-10-14T11:25:09.729Z\",\"isPartOf\":{\"@id\":\"https://docs.twine.se#website\"},\"breadcrumb\":{\"@id\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.twine.se/api-reference/users/get-users\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EmployeeMappings\",\"item\":\"https://docs.twine.se/api-reference/employeemappings/get-employee-mappings\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Employee Mapping\",\"item\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping#apireference\",\"headline\":\"Create Employee Mapping\",\"name\":\"Create Employee Mapping\",\"description\":\"Create a new employee mapping for a given organization. A mapping is identified by the employee_id + system_integration_id pair. Creating is idempotent for an identical mapping: posting one that already exists returns 200 with the existing mapping and writes nothing, while a genuinely new mapping returns 201. A create is never allowed to change an existing mapping. If a mapping for the pair already exists but carries a different external_id or status, the request is rejected with 409 — use PUT /v1/org/employees/mappings/{employee_mapping_id} to change it. A remote record belongs to one employee per system integration, so an external_id already mapped to a different employee in the same system integration is also rejected with 409. Permissions required: Employee: Create, SystemIntegration: Get\",\"url\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping\",\"mainEntityOfPage\":{\"@id\":\"https://docs.twine.se/api-reference/employeemappings/create-employee-mapping#webpage\"},\"dateModified\":\"2026-10-14T11:25:09.729Z\",\"publisher\":{\"@id\":\"https://docs.twine.se/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.twine.se#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Twine Integrations\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Twine Integrations","nav":{"global":{"anchors":[{"anchor":"twine.se","icon":"globe","href":"https://www.twine.se"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/platform"}]},{"tab":"Backoffice","pages":[{"title":"Backoffice","href":"/backoffice"}]},{"tab":"Flow Engine","pages":[{"title":"Flow Engine","href":"/flow-engine"}]},{"tab":"Data Engine","pages":[{"title":"Data Engine","href":"/data-engine"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Provisioning","href":"/api-reference/provisioning"},{"title":"Filtering and ordering","href":"/api-reference/filtering-and-ordering"},{"title":"Pushing data","href":"/api-reference/pushing-data"}]},{"group":"API Reference","pages":[{"group":"Users","pages":[{"title":"Get Users","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/users","href":"/api-reference/users/get-users"}]},{"group":"Competences","pages":[{"title":"Get Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/competences/{competence_id}","href":"/api-reference/competences/get-competence"},{"title":"Replace Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/competences/{competence_id}","href":"/api-reference/competences/replace-competence"},{"title":"Delete Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/competences/{competence_id}","href":"/api-reference/competences/delete-competence"},{"title":"Update Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json patch /v1/org/competences/{competence_id}","href":"/api-reference/competences/update-competence"},{"title":"Get Competences","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/competences","href":"/api-reference/competences/get-competences"},{"title":"Create Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/competences","href":"/api-reference/competences/create-competence"}]},{"group":"Organizations","pages":[{"title":"Get organizations","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org","href":"/api-reference/organizations/get-organizations"},{"title":"Create organization","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org","href":"/api-reference/organizations/create-organization"},{"title":"Get organization","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/{org_id}","href":"/api-reference/organizations/get-organization"}]},{"group":"DomainMappings","pages":[{"title":"Delete Domain Mapping Sync Trigger","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/domain-mappings/{domain_mapping_id}/sync-triggers/{sync_trigger_id}","href":"/api-reference/domainmappings/delete-domain-mapping-sync-trigger"},{"title":"Fire Domain Mapping Sync Trigger","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/domain-mappings/{domain_mapping_id}/sync-triggers/{sync_trigger_id}/fire","href":"/api-reference/domainmappings/fire-domain-mapping-sync-trigger"},{"title":"Get Domain Mapping","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/domain-mappings/{domain_mapping_id}","href":"/api-reference/domainmappings/get-domain-mapping"},{"title":"Update Domain Mapping","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/domain-mappings/{domain_mapping_id}","href":"/api-reference/domainmappings/update-domain-mapping"},{"title":"Delete Domain Mapping","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/domain-mappings/{domain_mapping_id}","href":"/api-reference/domainmappings/delete-domain-mapping"},{"title":"Get Domain Mappings","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/domain-mappings","href":"/api-reference/domainmappings/get-domain-mappings"},{"title":"Create Domain Mapping","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/domain-mappings","href":"/api-reference/domainmappings/create-domain-mapping"}]},{"group":"SystemIntegrations","pages":[{"title":"Get System Integration","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/system-integrations/{id}","href":"/api-reference/systemintegrations/get-system-integration"},{"title":"Update System Integration","deprecated":true,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/system-integrations/{id}","href":"/api-reference/systemintegrations/update-system-integration"},{"title":"Partially Update System Integration","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json patch /v1/org/system-integrations/{id}","href":"/api-reference/systemintegrations/partially-update-system-integration"},{"title":"Create Credentials Link","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/system-integrations/{id}/credentials-link","href":"/api-reference/systemintegrations/create-credentials-link"},{"title":"Get System Integration Fields","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/system-integrations/{id}/fields/{domain}","href":"/api-reference/systemintegrations/get-system-integration-fields"},{"title":"Get System Integrations","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/system-integrations","href":"/api-reference/systemintegrations/get-system-integrations"},{"title":"Create System Integration","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/system-integrations","href":"/api-reference/systemintegrations/create-system-integration"}]},{"group":"File Transfers","pages":[{"title":"Get File Transfers","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/file-transfers","href":"/api-reference/file-transfers/get-file-transfers"},{"title":"Upload File","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/file-transfers","href":"/api-reference/file-transfers/upload-file"},{"title":"Get File Transfer","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/file-transfers/{file_transfer_id}","href":"/api-reference/file-transfers/get-file-transfer"}]},{"group":"System Time Types","pages":[{"title":"Get System Time Type","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/time-reports/system-time-types/{system_integration_id}/{system_time_type_id}","href":"/api-reference/system-time-types/get-system-time-type"},{"title":"Update System Time Type","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/time-reports/system-time-types/{system_integration_id}/{system_time_type_id}","href":"/api-reference/system-time-types/update-system-time-type"},{"title":"Delete System Time Type","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/time-reports/system-time-types/{system_integration_id}/{system_time_type_id}","href":"/api-reference/system-time-types/delete-system-time-type"},{"title":"Get System Time Types","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/time-reports/system-time-types/{system_integration_id}","href":"/api-reference/system-time-types/get-system-time-types"},{"title":"Create System Time Type","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/time-reports/system-time-types/{system_integration_id}","href":"/api-reference/system-time-types/create-system-time-type"}]},{"group":"EmployeeMappings","pages":[{"title":"Get Employee Mappings","description":"Get a list of employee mappings for a given organization. Supports cursor-based pagination and filtering.\n\nPermissions required: `Employee: List`, `SystemIntegration: List`\n","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/employees/mappings","href":"/api-reference/employeemappings/get-employee-mappings"},{"title":"Create Employee Mapping","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/employees/mappings","href":"/api-reference/employeemappings/create-employee-mapping"},{"title":"Update Employee Mapping","description":"Update an existing employee mapping for a given organization.\n\nA remote record belongs to one employee per system integration, so repointing `external_id`\nat one already mapped to a different employee in the same system integration is rejected\nwith `409`.\n\nPermissions required: `Employee: Update`, `SystemIntegration: Get`\n","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/employees/mappings/{employee_mapping_id}","href":"/api-reference/employeemappings/update-employee-mapping"},{"title":"Delete Employee Mapping","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/employees/mappings/{employee_mapping_id}","href":"/api-reference/employeemappings/delete-employee-mapping"}]},{"group":"Time Reports","pages":[{"title":"Get Time Reports","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/time-reports","href":"/api-reference/time-reports/get-time-reports"},{"title":"Create Time Report","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/time-reports","href":"/api-reference/time-reports/create-time-report"},{"title":"Get Time Report","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/time-reports/{time_report_id}","href":"/api-reference/time-reports/get-time-report"},{"title":"Update Time Report","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/time-reports/{time_report_id}","href":"/api-reference/time-reports/update-time-report"},{"title":"Delete Time Report","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/time-reports/{time_report_id}","href":"/api-reference/time-reports/delete-time-report"}]},{"group":"Provisioning","pages":[{"title":"Refresh token","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /provisioning/refresh-token/refresh","href":"/api-reference/provisioning/refresh-token"},{"title":"Begin refresh token process","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /provisioning/refresh-token/begin","href":"/api-reference/provisioning/begin-refresh-token-process"}]},{"group":"Systems","pages":[{"title":"Get System Fields","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/systems/{system_id}/fields/{domain}","href":"/api-reference/systems/get-system-fields"},{"title":"Get Systems","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/systems","href":"/api-reference/systems/get-systems"}]},{"group":"Organizational Units","pages":[{"title":"Get Organizational Units","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v2/org/organizational-units","href":"/api-reference/organizational-units/get-organizational-units"},{"title":"Get Organizational Unit","deprecated":true,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/organizational-units/{id}","href":"/api-reference/organizational-units/get-organizational-unit"},{"title":"Get Organizational Units","deprecated":true,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/organizational-units","href":"/api-reference/organizational-units/get-organizational-units-1"},{"title":"Get Organizational Unit","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v2/org/organizational-units/{id}","href":"/api-reference/organizational-units/get-organizational-unit-1"}]},{"group":"Jobs","pages":[{"title":"Get Job by ID","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/jobs/{job_id}","href":"/api-reference/jobs/get-job-by-id"},{"title":"Get Jobs","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/jobs","href":"/api-reference/jobs/get-jobs"}]},{"group":"DataEngine","pages":[{"title":"Get DataEngine Node Docs","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/data-engine/docs","href":"/api-reference/dataengine/get-dataengine-node-docs"}]},{"group":"Conditions","pages":[{"title":"Get Condition by ID","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/conditions/{condition_id}","href":"/api-reference/conditions/get-condition-by-id"},{"title":"Get Conditions","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/conditions","href":"/api-reference/conditions/get-conditions"}]},{"group":"Employees","pages":[{"title":"Get Employees","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/employees","href":"/api-reference/employees/get-employees"},{"title":"Create Employee","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/employees","href":"/api-reference/employees/create-employee"},{"title":"Get Employee","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/employees/{employee_id}","href":"/api-reference/employees/get-employee"},{"title":"Put Employee","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/employees/{employee_id}","href":"/api-reference/employees/put-employee"},{"title":"Patch Employee","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json patch /v1/org/employees/{employee_id}","href":"/api-reference/employees/patch-employee"},{"title":"Shape Employees","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/employees/shape","href":"/api-reference/employees/shape-employees"}]},{"group":"Employee Competences","pages":[{"title":"Get Employee Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/employee-competences/{employee_competence_id}","href":"/api-reference/employee-competences/get-employee-competence"},{"title":"Replace Employee Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/employee-competences/{employee_competence_id}","href":"/api-reference/employee-competences/replace-employee-competence"},{"title":"Delete Employee Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/employee-competences/{employee_competence_id}","href":"/api-reference/employee-competences/delete-employee-competence"},{"title":"Update Employee Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json patch /v1/org/employee-competences/{employee_competence_id}","href":"/api-reference/employee-competences/update-employee-competence"},{"title":"Get Employee Competences","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/employee-competences","href":"/api-reference/employee-competences/get-employee-competences"},{"title":"Create Employee Competence","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/employee-competences","href":"/api-reference/employee-competences/create-employee-competence"}]},{"group":"Salary Transactions","pages":[{"title":"Get Salary Transactions","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/salary-transactions","href":"/api-reference/salary-transactions/get-salary-transactions"},{"title":"Create Salary Transaction","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json post /v1/org/salary-transactions","href":"/api-reference/salary-transactions/create-salary-transaction"},{"title":"Get Salary Transaction","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json get /v1/org/salary-transactions/{salary_transaction_id}","href":"/api-reference/salary-transactions/get-salary-transaction"},{"title":"Replace Salary Transaction","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json put /v1/org/salary-transactions/{salary_transaction_id}","href":"/api-reference/salary-transactions/replace-salary-transaction"},{"title":"Delete Salary Transaction","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json delete /v1/org/salary-transactions/{salary_transaction_id}","href":"/api-reference/salary-transactions/delete-salary-transaction"},{"title":"Update Salary Transaction","deprecated":null,"version":null,"openapi":"https://api.twine.se/spec/openapi.json patch /v1/org/salary-transactions/{salary_transaction_id}","href":"/api-reference/salary-transactions/update-salary-transaction"}]}]}]}]},"title":"Create Employee Mapping - Twine Integrations","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}