Erfordert Manager oder höher (Admin). Berechtigungen

createStatuspage(
  organizationUUID: ID!
  createSpec: CreateStatuspageSpec!
): Statuspage!

Argumente

Feld

Typ

Rückgabe

Statuspage!

Feld

Typ

Beispiel

mutation CreateStatuspage($organizationUUID: ID!, $createSpec: CreateStatuspageSpec!) {
  createStatuspage(organizationUUID: $organizationUUID, createSpec: $createSpec) {
    id
    staticId
    name
    slug
    visibility
    authentication
    hasPassword
    offerSignIn
    subdomain
    customDomain
    domain
    canEdit
    viewAlertThreshold
    createdAt
    updatedAt
    health {
      name
      color
      icon
    }
    components {
      id
      position
      type
      description
      createdAt
      updatedAt
    }
    incidents {
      active {
        paginationMetadata {
          totalCount
        }
      }
    }
    whitelabelConfig {
      logoUrl
      showPoweredBy
    }
    layout {
      version
    }
  }
}

Beispielantwort

{
  "data": {
    "createStatuspage": {
      "id": 1,
      "staticId": "01JB3X7T9QK2M4N6P8R0S2T4V6",
      "name": "Example name",
      "slug": "Example slug",
      "visibility": "PUBLIC",
      "authentication": "NONE",
      "hasPassword": true,
      "offerSignIn": true,
      "subdomain": "status.example.com",
      "customDomain": "status.example.com",
      "domain": "status.example.com",
      "canEdit": true,
      "viewAlertThreshold": 1,
      "createdAt": "2026-01-01T12:00:00Z",
      "updatedAt": "2026-01-01T12:00:00Z",
      "health": {
        "name": "Example name",
        "color": "#666bff",
        "icon": "Example icon"
      },
      "components": [
        {
          "id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
          "position": 1,
          "type": "SERVICE",
          "description": "Example description",
          "createdAt": "2026-01-01T12:00:00Z",
          "updatedAt": "2026-01-01T12:00:00Z"
        }
      ],
      "incidents": {
        "active": {
          "paginationMetadata": {
            "totalCount": 1
          }
        }
      },
      "whitelabelConfig": {
        "logoUrl": "status.example.com",
        "showPoweredBy": true
      },
      "layout": {
        "version": 1
      }
    }
  }
}

Auf dieser Seite