API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

Create incident

POST/v1/incidents

Create a new incident in the active tenant.

Datenmodell

Diese Operation arbeitet auf der Entität Incident (incident). Alle 32 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

  • Pflichtfelder: _id, tenantId, fingerprint, status, severity, title, source, openedAt
  • Server-verwaltet: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, fingerprint, sourceRefs, openedAt, acknowledgedAt, acknowledgedBy, resolvedAt, resolvedBy, resolution, suppressedBy, escalationStateRef, notificationsSent — diese Felder vergibt die Plattform; im Request werden sie verworfen.

Beispiel

curl -X POST https://api.codemeta-os.de/v1/incidents \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.incidents.post();

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche