API-Referenz · Services
Update service
Mutation
updateServiceUpdates a service and returns it.
updateService(
organizationUUID: ID!
serviceId: Int!
updateServiceSpec: UpdateServiceSpec!
): Service!Argumente
Feld
Typ
Rückgabe
Feld
Typ
Beispiel
mutation UpdateService($organizationUUID: ID!, $serviceId: Int!, $updateServiceSpec: UpdateServiceSpec!) {
updateService(organizationUUID: $organizationUUID, serviceId: $serviceId, updateServiceSpec: $updateServiceSpec) {
id
name
description
isDeleted
deletedAt
owner {
id
name
createdAt
updatedAt
}
health {
name
color
icon
}
setup {
monitorSkippedAt
statuspageSkippedAt
}
}
}Beispielantwort
{
"data": {
"updateService": {
"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"
}
}
}
}