Developer docs · Problems
Validation failed
HTTP 422 · https://impartire.com/problems/validation
What it means
The request is well-formed but a field is invalid; errors[] names each field (path) and what is accepted.
What to do
Read errors[]: each entry names a field (path) and what is accepted. Fix those fields and resend; the same Idempotency-Key may be reused, since nothing was stored.
Example
Sent as application/problem+json with status 422. detail varies with the request; branch on type.
{
"type": "https://impartire.com/problems/validation",
"title": "Validation failed",
"status": 422,
"detail": "project_id is required: an API caller always names its project (GET /api/v1/projects).",
"instance": "/api/v1/assets",
"request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M",
"errors": [
{
"path": "project_id",
"message": "Required: an API caller always names its project (GET /api/v1/projects)."
}
]
}