Employees
Update an employee
Changed onUpdates the specified employee by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the email parameter only the email value will be changed.
Note that the home_address field is treated as single object that is updated entirely. If you provide this field, the entire address object will be replaced with the new data, not just the individual sub-fields you include in the request, potentially removing any sub-fields you didn't include in the request.
This request accepts mostly the same arguments as the employee creation call.
put/employees/{employee_id}
Request
- Base URLhttps://test.api.kota.io
- URLhttps://test.api.kota.io/employees/{employee_id}
- AuthHTTP bearer
Path parameters
employee_idstring required
Example:ee_3b1333d87d9d4fd6ad83ba7f6b0e951a
Request body
Example request
{
"start_on": "2024-12-01",
"earliest_benefits_start_date": "2024-12-01"
}Response
OK
Example response
{
"platform_id": "pt_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"employer_id": "er_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"date_of_birth": "2024-12-01",
"start_on": "2024-12-01",
"earliest_benefits_start_date": "2024-12-01",
"offboard_on": "2024-12-01T00:00:00Z"
}Changes
- warning
deleted the
headerrequest parameterX-Platform-Id
- warning
- breaking
the response property
became nullable for the status
- breaking