Skip to main content
PUT
/
v1
/
org
/
employees
/
mappings
/
{employee_mapping_id}
Update Employee Mapping
curl --request PUT \
  --url https://api.twine.se/v1/org/employees/mappings/{employee_mapping_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "external_id": "<string>",
    "status": "active"
  }
}
'
{
  "data": {
    "employee_id": "<string>",
    "external_id": "<string>",
    "id": "<string>",
    "inserted_at": "2023-11-07T05:31:56Z",
    "status": "active",
    "status_updated_at": "2023-11-07T05:31:56Z",
    "system_integration_id": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Path Parameters

employee_mapping_id
string
required

The ID of the employee mapping to update

Body

application/json

Employee Mapping Update Request

Request schema for updating an employee mapping

data
EmployeeMappingUpdate · object
required

Updates an employee mapping

Response

Employee mapping Response

An employee mapping

data
EmployeeMapping · object
required

Describes the relationship between an employee and a system to which the employee belongs. Only included if requested by submitting relations=employee_mappings.