updateAgentPushRuntimeService

Drain or resume a runtime service.

Arguments

  • inputUpdateAgentPushRuntimeServiceInput!required

  • input.projectReferenceString!required

    Project that owns the service, by ID or slug. Only a project service of this project is found; a global service answers not_found. For a managed source connection, project.runtime.manage in the source project is also accepted when setting drained.

  • input.serviceIdID!required

    Runtime service to change. Draining stops selection for new work and, for managed source connections, revokes queued and child dispatch; either project may revoke. Resuming re-enables selection; managed source connections require project.runtime.manage in both projects.

  • input.availabilityString!required

    active makes the runtime service available for selection; drained stops selecting it for new work. For a managed source connection, drained also revokes queued and child dispatch.

Responses

mutation UpdateAgentPushRuntimeService($input: UpdateAgentPushRuntimeServiceInput!) {  updateAgentPushRuntimeService(input: $input) {    id    serviceId    projectId    serviceName    serviceKey    agentId    status    connectionStatus    invokeUrl    lastHeartbeatAt    updatedAt    scopeKind    availability    runtime    region    lastSeenAt  }}
{  "data": {    "updateAgentPushRuntimeService": {      "id": "string",      "serviceId": "string",      "projectId": "string",      "serviceName": "string",      "serviceKey": "string",      "agentId": "string",      "status": "string",      "connectionStatus": "string",      "invokeUrl": "https://example.com",      "lastHeartbeatAt": "string",      "updatedAt": "string",      "scopeKind": "string",      "availability": "string",      "runtime": "string",      "region": "string",      "lastSeenAt": "2026-01-01T00:00:00Z"    }  }}

The AgentPushRuntimeService! in data.updateAgentPushRuntimeService.