Create major_incident
POST/v1/major_incidents
Creates a major incident. Unlike a normal ticket, this operation triggers three additional effects in the same transaction:
- Customer tenants affected within the customer group receive a broadcast message (visible in their self-service portal).
- The configured escalation workflow starts (phone chain, Slack webhook, possibly a status page update).
- A webhook event
incident.major.createdis placed in the outbound queue.
You should not use this route for ordinary disruptions — the audit class is different, and the customer tenants see it immediately.
Data model
This operation works on the entity Major Incident (major_incident). All 13 fields — type, validation, required status, relationships — are listed in the schema reference.
-
Required fields:
title,severity,status -
Server-managed:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy,childTicketIds— the platform assigns these fields; they are discarded in the request.
Example
curl -X POST https://api.codemeta-os.de/v1/major_incidents \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.major_incidents.post();Best practice
Have the escalation workflow created in advance
(POST /v1/incidents/escalation-policies) and reference it
here only via escalationPolicyId. This keeps creation fast and
deterministic — the difficult part (contact chains, fallback paths)
is modeled once, not per incident.
Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |