https://<domain>/cloudkey/custom-actions
Authorization
- API Key : Authorization: <API_KEY>
- OAuth 2.0 : Authorization: Bearer <access_token>
-
EndpointID: The unique identifier for the endpoint. -
EmployeeID: The identifier for the employee in the HRIS system. -
Firstname: The first name of the employee. -
Lastname: The last name of the employee. -
Status: Must be set toTERMINATEDto indicate the user’s termination status.
curl:
curl --location 'https://<domain>/cloudkey/custom-actions' \
--header 'Authorization: <API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"EndpointID": "<ENDPOINT_ID>",
"EmployeeID": "A123",
"Firstname": "Test",
"Lastname": "User 1",
"Status": "TERMINATED"
}'
curl --location 'https://<domain>/cloudkey/custom-actions' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"EndpointID": "<ENDPOINT_ID>",
"EmployeeID": "A123",
"Firstname": "Test",
"Lastname": "User 1",
"Status": "TERMINATED"
}'
Workflow Integration
- Upon successful API invocation, an event is created that downstream systems can subscribe to via the Oloid workflow.
- This ensures terminated user information is propagated efficiently to all necessary systems, maintaining synchronization and compliance.
-
Make sure to replace
<API_KEY>and<ENDPOINT_ID>with the actual values provided to you. - The API expects a JSON payload, so ensure your request body is formatted correctly.