Ploi API

Create status page incident

Creates a new incident in your status page

POST api/status-pages/{statusPage}/incidents

Parameters

Parameter Type Status Description
title string required A title for your incident
description string optional A description for your incident
severity string optional The severity for this incident, can be of values: normal, high, maintenance, resolved

Example request:

curl -X POST "https://ploi.io/api/status-pages/{statusPage}/incidents" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
  --data '{"title":"New incident", "description":"An error has occured!", "severity": "high"}'

Example response:

HTTP/1.1 201 CREATED
Content-Type: application/json

{
    "data": {
        "id": 3,
        "title": "New incident",
        "description": "An error has occured!",
        "severity": "normal"
    }
}