Create a new enrolment intent
Creates a new enrolment_intent to manage the enrolment of an employee into a group. An enrolment intent represents the intention to enrol an employee into a specific group, and tracks the status and progress of that enrolment process.
Headers
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
The target platform id. Required only when calling with a dashboard (WorkOS AuthKit) access token instead of a platform API key — the token carries no platform claim, so the caller must say which platform it means. Ignored for platform API key / embed session token callers.
Request body
Example request
{
"employee_id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"policy_configuration": {
"desired_policy_start_date": "2024-12-01",
"enrolment_date": "2024-12-01"
},
"force_confirmation": true,
"coverage_selections": [
{
"configuration_id": "pc_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"options": [
{
"option_id": "pco_3b1333d87d9d4fd6ad83ba7f6b0e951a"
}
]
}
]
}Response
OK
Changes
Changed in 2 of the 9 revisions of this API.12
- ●
added the new
rejectedenum value to thestatus/allOf[EnrolmentIntentStatus]/response property for the response status200response-property-enum-value-added
- ○
added the non-success response with the status
409response-non-success-status-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional
headerrequest parameterX-Platform-Idnew-optional-request-parameter
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○