Update agent label

updateAgentLabel(input: UpdateProjectAgentLabelInput!): AgentLabel!

Requires project.agents.write.

Arguments

ArgumentTypeRequired
inputUpdateProjectAgentLabelInput!Yes

Input fields

input

UpdateProjectAgentLabelInput

FieldTypeRequiredDescription
projectReferenceStringNo
agentIdID!Yes
sourceTargetKindStringNoSource target: project, main_branch, or preview_branch. Null and omission select project.
targetBranchIdIDNo
labelIdID!Yes
labelProjectAgentLabelFields!Yes

Response

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

FieldType
idID!
resourceKindString!
projectIdID!
sourceTargetKindString
sourceAgentIdString
namespaceString!
keyString!
valueString

All fields of AgentLabel.

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

Example

query.graphql
mutation UpdateAgentLabel($input: UpdateProjectAgentLabelInput!) {  updateAgentLabel(input: $input) {    id    projectId    createdAt    updatedAt    color  }}
variables.json
{  "input": {    "projectReference": "00000000-0000-4000-8000-000000000001",    "agentId": "00000000-0000-4000-8000-000000000001",    "labelId": "00000000-0000-4000-8000-000000000001",    "label": {      "key": "example"    }  }}