updateAgentLabel

Update agent label. Requires project.agents.write.

Arguments

  • inputUpdateProjectAgentLabelInput!required

  • input.projectReferenceString

  • input.agentIdID!required

  • input.sourceTargetKindString

    Source target: project, main_branch, or preview_branch. Null and omission select project.

  • input.targetBranchIdID

  • input.labelIdID!required

  • input.labelProjectAgentLabelFields!required

Responses

mutation UpdateAgentLabel($input: UpdateProjectAgentLabelInput!) {  updateAgentLabel(input: $input) {    id    resourceKind    projectId    sourceTargetKind    sourceAgentId    namespace    key    value    color    createdAt    updatedAt  }}
{  "data": {    "updateAgentLabel": {      "id": "string",      "resourceKind": "string",      "projectId": "string",      "sourceTargetKind": "string",      "sourceAgentId": "string",      "namespace": "string",      "key": "string",      "value": "string",      "color": "string",      "createdAt": "2026-01-01T00:00:00Z",      "updatedAt": "2026-01-01T00:00:00Z"    }  }}

The AgentLabel! in data.updateAgentLabel.