Skip to Content
API ReferenceEmployees

Update employment item

PUT
/api/v1/employees/{employee_id}/employments/{id}

Requires manage_employee_employment=edit for the row owner. employee_id in the path must match the owner, otherwise 422 compensation_employee_mismatch is returned

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

employee_id*Employee Id
id*Id

Request Body

application/json
  1. body
date_effective_from*Date Effective From
Formatdate
employment_type_id?integer|null
employment_contract_id?integer|null
work_pattern_id?integer|null
date_probation_ends?|null
legal_entity_id?integer|null
comment?string|null
contractual_fte_override?|string|null
custom_fields?|null

Response Body

Successful Response

application/json
  1. response
success?Success
Defaulttrue
Example Request
curl -X PUT 'https://api.skailer.com/api/v1/employees/0/employments/0' \  -H 'Content-Type: application/json' \  -d '{  "date_effective_from": "2019-08-24"}'
Example Response
{  "success": true}