PUT
/
incident
/
:id
curl --request PUT \
  --url https://api.openstatus.dev/v1/incident/:id \
  --header 'Content-Type: application/json' \
  --data '{
  "acknowledgedAt": "<string>",
  "resolvedAt": "<string>"
}'
{
  "acknowledgedAt": "<string>",
  "acknowledgedBy": 123,
  "id": 1,
  "monitorId": 1,
  "resolvedAt": "<string>",
  "resolvedBy": 123,
  "startedAt": "<string>"
}

This endpoint allows you to update an incident. You can acknowledge or resolve an incident using this endpoint.

Path Parameters

id
string
required

The id of the Incident

Body

application/json
acknowledgedAt
string | null
resolvedAt
string | null

Response

200 - application/json
acknowledgedAt
string | null

The date the incident was acknowledged

acknowledgedBy
number | null
required

The user who acknowledged the incident

id
number
required

The id of the incident

monitorId
number | null
required

The id of the monitor associated with the incident

resolvedAt
string | null

The date the incident was resolved

resolvedBy
number | null
required

The user who resolved the incident

startedAt
string | null
required

The date the incident started