Skip to content

Add a monitor to an incident.

POST
/incident/{incident_id}/monitors
curl --request POST \
--url https://api.siteqwality.com/incident/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/monitors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "monitor_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "monitor_type": "http", "impact": "degraded" }'

A monitor already on the incident is left as it is. Returns every monitor of the incident.

incident_id
required
string format: uuid

Incident identifier

Media type application/json

A monitor to list on an incident.

object
monitor_id
required
string format: uuid
monitor_type
required
string
Allowed values: http cron browser tls dns dns_record page_speed alert_rule
impact
One of:
string
Allowed values: degraded partial_outage major_outage

The incident’s monitors

Media type application/json
Array<object>
object
monitor_id
required
string format: uuid
monitor_type
required
string
Allowed values: http cron browser tls dns dns_record page_speed alert_rule
name

Null when the monitor was deleted.

string | null
impact
One of:

What status pages show for it; null derives it from the incident’s severity.

string
Allowed values: degraded partial_outage major_outage
source
required

auto when a failure joined it, manual when someone added it.

string
Allowed values: auto manual
joined_at
required
string format: date-time
recovered_at
string | null format: date-time
Example
[
{
"monitor_type": "http",
"impact": "degraded",
"source": "auto"
}
]

Malformed JSON body

Missing or invalid authentication

Incident or monitor not found

The incident was merged into another; data holds its current state

Unknown monitor_type or impact

Internal server error