Validation failed
We could read the request, but some of its fields break the rules.
- Status
- Type
https://docs.digitospace.com/problems/validation-failed
What it means
One or more fields have values we do not accept. issues lists every one of them at once, so you can fix them all before you send the request again.
{
"type": "https://docs.digitospace.com/problems/validation-failed",
"title": "Validation failed",
"status": 422,
"code": "validation_failed",
"detail": "2 field(s) are invalid",
"instance": "/v1/projects/01k5ztq3jb9y2a1m9v2xw8e0ha/jobs",
"requestId": "01m3c081dbf3j55x7hsa7wc1yj",
"retryable": false,
"issues": [
{ "field": "name", "code": "required", "message": "Enter a name" },
{
"field": "target.url",
"code": "required",
"message": "Enter the URL to call"
}
]
}Each issue has:
fieldstringThe field, as a path into the body, such as
target.url.codestringWhat is wrong:
required,too_long,out_of_range, orinvalid. Branch on this.messagestringA sentence for a person, which you can show next to the field. It may be reworded at any time.
How to fix it
Fix every field in issues, then send the request again. If you show a form, put each message next to its field.
Codes
| Code | Retryable | When |
|---|---|---|
validation_failed | No | Fields are wrong. See issues |
Last updated