Skip to main content
PUT
/
v1
/
incidents
/
{id}
Update an incident
curl --request PUT \
  --url https://api.checklyhq.com/v1/incidents/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Service outage",
  "impact": "MINOR",
  "startedAt": "2022-11-25 12:34:56",
  "stoppedAt": "2022-11-25 13:34:56"
}'
{
  "name": "Service outage",
  "impact": "MINOR",
  "startedAt": "2022-11-25 12:34:56",
  "stoppedAt": "2022-11-25 13:34:56",
  "dashboardId": 1234,
  "id": "e50ad839-1b90-4955-b716-1c6edbda57cb",
  "created_at": "2022-09-08T19:41:28.658Z",
  "updated_at": "2022-09-08T20:41:28.658Z",
  "incidentUpdates": "<string>"
}

Authorizations

Authorization
string
header
required

The Checkly Public API uses API keys to authenticate requests. You can get the API Key here. Your API key is like a password: keep it secure! Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID. For example, set Authorization header while using cURL: curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"

Headers

x-checkly-account
string

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Path Parameters

id
string
required

Query Parameters

probe
boolean

Body

application/json
name
string
required

A name used to describe the incident.

Example:

"Service outage"

impact
enum<string>
default:MINOR
required

Used to indicate the impact or severity.

Available options:
MAINTENANCE,
MAJOR,
MINOR
Example:

"MINOR"

startedAt
string<date-time>

Used to indicate when incident starts to be active.

Example:

"2022-11-25 12:34:56"

stoppedAt
string<date-time>

Used to indicate when incident turns to inactive.

Example:

"2022-11-25 13:34:56"

Response

Successful

name
string
required

A name used to describe the incident.

Example:

"Service outage"

impact
enum<string>
default:MINOR
required

Used to indicate the impact or severity.

Available options:
MAINTENANCE,
MAJOR,
MINOR
Example:

"MINOR"

dashboardId
number
required

The dashboard ID where the incident will be shown.

Example:

1234

id
string
required

The incident universal and unique identificator.

Example:

"e50ad839-1b90-4955-b716-1c6edbda57cb"

created_at
string<date>
required

The timestamp when the incident was created.

Example:

"2022-09-08T19:41:28.658Z"

updated_at
string<date>
required

The timestamp when last the incident update.

Example:

"2022-09-08T20:41:28.658Z"

startedAt
string<date-time>

Used to indicate when incident starts to be active.

Example:

"2022-11-25 12:34:56"

stoppedAt
string<date-time>

Used to indicate when incident turns to inactive.

Example:

"2022-11-25 13:34:56"

incidentUpdates
string
I