Update runtime service

updateAgentPushRuntimeService(input: UpdateAgentPushRuntimeServiceInput!): AgentPushRuntimeService!

Arguments

ArgumentTypeRequired
inputUpdateAgentPushRuntimeServiceInput!Yes

Input fields

input

UpdateAgentPushRuntimeServiceInput

FieldTypeRequiredDescription
projectReferenceString!YesProject 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.
serviceIdID!YesRuntime 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.
availabilityString!Yesactive 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.

Response

Returns AgentPushRuntimeService!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
serviceIdID!Same as id.
projectIdID
serviceNameString!
serviceKeyString!
agentIdString
statusString!
connectionStatusString!

All fields of AgentPushRuntimeService.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateAgentPushRuntimeService($input: UpdateAgentPushRuntimeServiceInput!) {
  updateAgentPushRuntimeService(input: $input) {
    id
    projectId
    agentId
    status
    updatedAt
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "serviceId": "00000000-0000-4000-8000-000000000001",
    "availability": "drained"
  }
}