Errors
The codes the API returns and what they mean.
Errors come as { "error": { "code", "message" } }. The message says what to change.
| HTTP | Code | When |
|---|---|---|
| 401 | unauthorized | The token is missing, invalid or revoked. |
| 403 | forbidden | A read-only token tried to write. |
| 404 | not_found | The object or record doesn't exist in this workspace. |
| 400 | invalid_body | The body isn't the JSON expected. |
| 400 | unknown_attributes | An attribute doesn't exist or is read-only. |
| 400 | missing_required | A required attribute is missing. |
| 400 | unknown_operator | A filter uses an operator that doesn't exist. |
| 422 | rule_violation | The change breaks a rule of the workspace, such as a unique value. |