Skip to content
Error codes · Status pages & incidents

RU-5001: Invalid incident request

An incident create or update was refused: the body was not JSON, failed validation, or carried neither a title and body nor a templateId. The `error` field gives the first problem.

Where it is raised

  • GET /api/v1/incidents
  • POST /api/v1/incidents
  • POST /api/v1/incidents/{id}/updates

What triggers it

The incident routes validate the JSON body first, then this rule: a title and body must be given unless a templateId supplies them. The incident updates route and the incident list route (limit) use the same code for their own fields.

Example response

POST /api/v1/incidents
HTTP 400

{
  "error": "title and body are required unless templateId is given.",
  "code": "RU-5001"
}

Common causes

  • A missing required field (statusPageId, checkId, region, title, body).
  • A body sent as form data or plain text instead of JSON.

How to fix it

  1. Add a title and a body, or a templateId, and send the request again.
  2. Check the payload against the Incidents section of the API docs.

Related codes