POST/v3/incidents

Create an incident

Creates a new incident.

Request

Bodyapplication/json
titleobjectrequired
Localized title of the incident. Use language keys (en, fr, de, ru, nl, pl, se).
typeenum<string>required
Type of the incident
Available options:
outageincident
affectedComponentsarray<string>optional
Array of component UUIDs affected by the incident
Example:["comp_123"]
statuspagesarray<string>optional
Array of status page UUIDs the incident should be reported on
Example:["sp_123"]
updatesarray<object>optional
Array of initial updates. Each update should have date (ISO 8601), text (localized object), and type.
notifySubscribersbooleanoptional
Whether to notify the status pages' subscribers of the last update in updates. Set to false to publish the incident without notifying them. A status page with subscriber notifications turned off never notifies anyone, whatever this field says.
Default: true
💡Update Types

Available update types: investigating, identified, update, monitoring, resolved

Response

Returns the full incident object including updates.

RequestcURL
curl -X POST https://api.hyperping.io/v3/incidents \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "title": {
      "en": "We are investigating the issue",
      "fr": "Nous enquêtons sur le problème"
    },
    "type": "outage",
    "affectedComponents": ["comp_123"],
    "statuspages": ["sp_123"],
    "updates": [
      {
        "date": "2023-10-01T13:00:00Z",
        "text": {
          "en": "We are investigating the issue",
          "fr": "Nous enquêtons sur le problème"
        },
        "type": "investigating"
      }
    ]
  }'
201 CreatedJSON
{
  "uuid": "inci_cDAqydvnNnyc8D",
  "date": "2023-10-01T13:00:00.000Z",
  "title": {
    "en": "We are investigating the issue",
    "fr": "Nous enquêtons sur le problème"
  },
  "type": "outage",
  "affectedComponents": ["comp_123"],
  "statuspages": ["sp_123"],
  "updates": [
    {
      "uuid": "upd_abc123",
      "date": "2023-10-01T13:00:00.000Z",
      "text": {
        "en": "We are investigating the issue",
        "fr": "Nous enquêtons sur le problème"
      },
      "type": "investigating"
    }
  ]
}