Erfordert Manager oder höher (Admin). Berechtigungen

createIncidentRole(
  organizationUUID: ID!
  incidentRoleSpec: IncidentRoleSpec!
): IncidentRole!

Argumente

Feld

Typ

Rückgabe

IncidentRole!

Feld

Typ

Beispiel

mutation CreateIncidentRole($organizationUUID: ID!, $incidentRoleSpec: IncidentRoleSpec!) {
  createIncidentRole(organizationUUID: $organizationUUID, incidentRoleSpec: $incidentRoleSpec) {
    id
    name
    description
    createdAt
    updatedAt
  }
}

Beispielantwort

{
  "data": {
    "createIncidentRole": {
      "id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
      "name": "Example name",
      "description": "Example description",
      "createdAt": "2026-01-01T12:00:00Z",
      "updatedAt": "2026-01-01T12:00:00Z"
    }
  }
}

Auf dieser Seite