Merge incidents into this one.
const url = 'https://api.siteqwality.com/incident/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/merge';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"source_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/incident/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/merge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "source_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'All or nothing. Each source is resolved as merged (no resolved
notification), keeps its updates, and hands its monitors, participants and
status pages to this incident; a published source gets one public “Merged
into” update. This incident takes the highest severity, and if a source was
paging and this one was not, its escalation starts. The sources’
escalations are canceled. Returns this incident.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The incident to merge into
Request Body required
Section titled “Request Body required ”object
The incidents to merge into the one in the path (1 to 20).
Example generated
{ "source_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “ Responses ”The merged incident
object
Deprecated: the first page it was created on. status_page_ids lists every page.
Every status page the incident is published on.
The title status pages show; null shows title.
First recorded successful page; absent when no page_sent event exists. Detail endpoints only.
First transition to public monitoring status. Detail endpoints only.
True while nobody acknowledged it and its escalation policy ran out, so nobody owns it. Detail endpoints only.
Who resolved it; null for automatic and API-key resolves.
True when the incident was opened automatically by a monitor state change; false for incidents created manually.
object
The public status when it was posted.
public updates show on status pages; internal ones only here.
Who posted it; null for the system, API keys and older updates.
Deprecated: the http entries of monitors, for one release.
The incident this one was merged into; it is then resolved.
merged for a merged incident, else null.
Every monitor of the incident. Empty on list endpoints.
object
Null when the monitor was deleted.
auto when a failure joined it, manual when someone added it.
Who works it, the lead first. Empty on list endpoints.
object
Who added them; the acknowledger for an automatic lead.
When they were paged on being added; null when they were not.
The incidents merged into this one, each with its own updates. Empty on list endpoints.
An incident merged into this one; its updates stay on it.
object
object
The public status when it was posted.
public updates show on status pages; internal ones only here.
Who posted it; null for the system, API keys and older updates.
Example
{ "severity": "minor", "status": "investigating", "responder_status": "triggered", "updates": [ { "status": "investigating", "visibility": "public" } ], "monitors": [ { "monitor_type": "http", "impact": "degraded", "source": "auto" } ], "participants": [ { "role": "lead" } ], "merged_from": [ { "updates": [ { "status": "investigating", "visibility": "public" } ] } ]}No source_ids, or more than 20
Missing or invalid authentication
This incident or a source not found
A source is this incident, already merged or resolved, or this incident is resolved or merged; data holds the refused incident’s state
Internal server error