Errors
Successful calls return 200, or 201 when a job or worker profile is created. The body is JSON. A single record is wrapped in data. A list is a data array. Worker lists also include meta.
Failed calls return JSON as well. Branch on the HTTP status. Where errors is present, it maps each field to a list of strings.
Status codes
| Status | When it happens |
|---|---|
401 | The token is missing, malformed, unknown or revoked. The body is {"message":"Unauthenticated."}. |
403 | The token lacks the ability, the client has no integration, or the organisation cannot accept a write. |
404 | The job is outside the token's organisation, or the worker profile is outside the token's integration. Use the status code. The message text is not a stable contract. |
409 | A conflict on source_version, external_id, roles or Idempotency-Key. |
422 | A field is missing, the wrong type, or not accepted. |
A write while the organisation cannot accept changes returns:
{
"message": "This workspace is temporarily unavailable for changes. You can still view what is already there.",
"code": "workspace_unavailable"
}
Reads still succeed in that state. Ability failures do not include code.
A validation failure looks like this. message summarises the problem. errors is the field list to show or log.
{
"message": "The title field is required.",
"errors": {
"title": ["The title field is required."]
}
}
Unknown JSON fields are rejected with This field is not accepted. Sending password, user_id or organisation_id on a worker upsert is rejected that way. The integration id and the organisation always come from the token.
Conflict responses use the same message and errors shape with status 409. For example, an older source_version returns that field in errors.
Request id
You may send X-Request-ID. The value must be 1 to 80 characters from letters, digits and _ . : -. AssignPoint echoes it on the response. Any other value is ignored and replaced with a generated id. The response always includes X-Request-ID.