Skip to main content
POST
/
v1
/
incidents
Upload incident for AI training
curl --request POST \
  --url https://api1.irisagent.com/v1/incidents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "incident": {
    "id": "<string>",
    "name": "<string>",
    "status": "<string>",
    "started_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "shortlink": "<string>"
  },
  "components": [
    {
      "id": "<string>",
      "name": "<string>",
      "status": "<string>",
      "last_updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "updates": [
    {
      "impact": "<string>",
      "status": "<string>",
      "body": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "affected_components": [
        {
          "name": "<string>",
          "old_status": "<string>",
          "new_status": "<string>"
        }
      ]
    }
  ],
  "postmortem": {}
}
'

Authorizations

Authorization
string
header
required

The Authorization header is required to authenticate API requests. It should contain a bearer token obtained through the IrisAgent portal.

Body

application/json
incident
object
required
components
object[]
required
updates
object[]
required
postmortem
object

Response

Incident has been uploaded successfully