Groups
Add an employee to a group
Changed onAdds an existing employee to a group. The employee must belong to the same employer as the group. If there is a group_policy associated with the group, a corresponding enrolment_intent will be created for the employee.
post/groups/{group_id}/employees
Request
- Base URLhttps://test.api.kota.io
- URLhttps://test.api.kota.io/groups/{group_id}/employees
- AuthHTTP bearer
Path parameters
group_idstring required
Example:gr_3b1333d87d9d4fd6ad83ba7f6b0e951a
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
{
"employee_id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"policy_configuration": {
"desired_policy_start_date": "2024-12-01",
"enrolment_date": "2024-12-01"
}
}Response
OK
Example response
{
"id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"policies": [
{
"id": "p_3b1333d87d9d4fd6ad83ba7f6b0e951a"
}
],
"enrolments": [
{
"id": "ei_3b1333d87d9d4fd6ad83ba7f6b0e951a"
}
],
"desired_policy_start_date": "2024-12-01",
"enrolment_date": "2024-12-01",
"scheduled_group_transitions": [
{
"new_group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"scheduled_date": "2024-12-01"
}
]
}Changes
- warning
deleted the
headerrequest parameterX-Platform-Id
- warning
- warning
added the new
rejectedenum value to the////response property for the response status
- warning