Add an employee to a group

Adds 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.

Authentication

AuthorizationBearer
Authorization header using the Bearer scheme

Path Parameters

group_idstringRequiredformat: "gr_.+"

Headers

Idempotency-KeystringOptional

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

This endpoint expects an object.
employee_idstringRequiredformat: "ee_.+"
Employee Id
policy_configurationobject or nullOptional

Policy configuration for the employee in this group. Leave null to use group defaults.

Response

OK
idstringformat: "ee_.+"
Unique identifier for the employee.
policieslist of objects
List of policies associated with the employee in this group.
enrolmentslist of objects
List of enrolments associated with the employee in this group.
desired_policy_start_datestring or nullformat: "date"

Errors