For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

The request body could not be read, either because it is not valid JSON or because it does not map onto the shape the endpoint expects.

  • HTTP status422 Unprocessable Content
  • typehttps://kestra.io/docs/api-reference/problems/invalid-json

When you get it

  • The body is syntactically broken, such as an unclosed brace, a trailing comma, or an unquoted key.
  • The body parses, but a member has the wrong shape, such as an object where a string is expected.

Example response

A response reporting this problem:

{
"type": "https://kestra.io/docs/api-reference/problems/invalid-json",
"title": "Invalid JSON",
"status": 422,
"detail": "Invalid JSON",
"instance": "/api/v1/main/triggers/backfill/delete",
"errors": [
{
"path": "namespace"
}
]
}

How to handle it

Fix the payload and resend. The detail is the fixed title rather than the parser’s own message, because that message names internal Java classes. When the parser knew where the problem was, a single errors entry carries the path to it, and no entry is reported when it did not.

For the members every problem document carries, see Problem Details.

Was this page helpful?