Pluma
Docs index
docs/errors/invalid_body.md View markdown →

invalid_body

HTTP 400 · The request body is not valid JSON.

Why it happens

The JSON is malformed, or an object the endpoint expects is missing (for example fields).

How to fix it

Check your quotes and commas, and send the header Content-Type: application/json.

Example

{
  "error": {
    "code": "invalid_body",
    "message": "The request body is not valid JSON.",
    "fix": "Check your quotes and commas, and send the header Content-Type: application/json.",
    "doc_url": "https://pluma.so/docs/errors/invalid_body"
  }
}