validation_failed
HTTP 422 · The data did not pass validation.
Why it happens
A required field left empty when publishing, a number that is not a number, a duplicate slug, an invalid API ID, a reference to a type the field does not accept, or an image with no alt text.
How to fix it
details.fields says which field and why. Fix it and retry; with dry_run=true you can test without saving.
Example
{
"error": {
"code": "validation_failed",
"message": "The data did not pass validation.",
"fix": "details.fields says which field and why. Fix it and retry; with dry_run=true you can test without saving.",
"doc_url": "https://pluma.so/docs/errors/validation_failed"
}
}