Employees
Create an employee
Changed onCreates an employee with the linked employer. If the employer has an active health insurance scheme that automatically provides insurance to employees the employee will be enrolled.
post/employees
Request
- Base URLhttps://test.api.kota.io
- URLhttps://test.api.kota.io/employees
- AuthHTTP bearer
Headers
Idempotency-Keystring
Unique key to ensure idempotent requests. If the same key is used for multiple identical & successful requests, the same response will be returned. Read more here
Request body
Example request
{
"employer_id": "er_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"date_of_birth": "2024-12-01",
"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 - info
the request property
////became nullable - info
the request property
////became optional
- breaking