Update agent label. Requires project.agents.write.
Arguments
inputUpdateProjectAgentLabelInput!requiredinput.projectReferenceStringinput.agentIdID!requiredinput.sourceTargetKindStringSource target: project, main_branch, or preview_branch. Null and omission select project.
input.targetBranchIdIDinput.labelIdID!requiredinput.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.