Beta
Idempotent
Create task
Enqueue a one-off registry task. Find available actions with the registry-actions endpoint.
Headers
- Type: stringx
-corma -idempotency -key min length:1Optional client-generated key. Reusing the same key with an identical request replays the original response instead of enqueueing a duplicate task.
Body·
required
application/json
- Type: stringaction
Identifier requiredThe identifier of the registry action to execute. Query the registry-actions endpoint to get the list of available actions.
- Type: objectpayloadrequired
The payload of the registry action to execute. Must conform to the
payloadSchemareturned by registry-actions for the chosen action.Empty object
Responses
- Type: object ·202
OK
- Type: stringaction
Identifier required - Type: string Format: date-timecreated
At requiredThe timestamp of when this resource was created. ISO 8601 format.
- Type: string nullableerror
Message required - Type: integeridmin:-9007199254740991max:9007199254740991required
Integer numbers.
- Type: objectpayloadrequiredEmpty object
- Type: string · enumstatusrequiredvalues
- draft
- todo
- ongoing
- completed
- declined
- errored
- Type: object · nullabletriggered
By required - Type: string Format: date-timeupdated
At requiredThe timestamp of the last update to this resource. ISO 8601 format.
application/json
post/tasks
{
"id": -9007199254740991,
"status": "draft",
"actionIdentifier": "string",
"payload": {},
"errorMessage": "string",
"triggeredBy": {
"id": "string",
"type": "employee",
"email": "string",
"personalEmail": "string",
"name": "string",
"idpStatus": "active",
"hrStatus": "active",
"jobKey": "string",
"countryCode": "string",
"teamKey": "string",
"startDate": "2026-07-23T16:23:32.922Z",
"terminationDate": "2026-07-23T16:23:32.922Z"
},
"createdAt": "2026-07-23T16:23:32.922Z",
"updatedAt": "2026-07-23T16:23:32.922Z"
}