Requires Manager or higher (Admin). Permissions

createService(
  organizationUUID: ID!
  newServiceSpec: NewServiceSpec!
): Service!

Arguments

Field

Type

Returns

Service!

Field

Type

Example

mutation CreateService($organizationUUID: ID!, $newServiceSpec: NewServiceSpec!) {
  createService(organizationUUID: $organizationUUID, newServiceSpec: $newServiceSpec) {
    id
    name
    description
    isDeleted
    deletedAt
    owner {
      id
      name
      createdAt
      updatedAt
    }
    health {
      name
      color
      icon
    }
    setup {
      monitorSkippedAt
      statuspageSkippedAt
    }
  }
}

Example response

{
  "data": {
    "createService": {
      "id": 1,
      "name": "Example name",
      "description": "Example description",
      "isDeleted": true,
      "deletedAt": "2026-01-01T12:00:00Z",
      "owner": {
        "id": 1,
        "name": "Example name",
        "createdAt": "2026-01-01T12:00:00Z",
        "updatedAt": "2026-01-01T12:00:00Z"
      },
      "health": {
        "name": "Example name",
        "color": "#666bff",
        "icon": "Example icon"
      },
      "setup": {
        "monitorSkippedAt": "2026-01-01T12:00:00Z",
        "statuspageSkippedAt": "2026-01-01T12:00:00Z"
      }
    }
  }
}

On this page