Validation failed
HTTP 400, problem type validation.
The request body or a parameter is not valid.
Common causes
- A required field is missing, such as cmd on an exec request.
- A value is out of range, such as idle_timeout_s below its minimum or a port above 65535.
- An image, size or region is not one the API knows.
- An egress_policy_id that does not exist in your organization.
- Restoring a snapshot with a region other than the one it was taken in. Leave region out, or pass the snapshot's.
- The body is not valid JSON.
What to do
- Read the errors array: each entry has a path to the field and a message.
- Correct the request and send it again.
Retrying
Retrying the same request will fail the same way.
Example response
The body is an RFC 9457 problem document with the content type application/problem+json.
{ "type": "https://docs.wardcase.com/errors/validation", "title": "Validation failed", "status": 400, "detail": "idle_timeout_s must be at least 30", "errors": [ { "path": "idle_timeout_s", "message": "must be at least 30" } ]}