Update agent label

http
PUT /projects/{project_reference}/agents/{agent_id}/labels/{label_id}

Update agent label. Requires project.agents.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject UUID or slug.
agent_idpathYes
label_idpathYesLabel UUID within the selected resource.
source_target_kindquery
target_branch_idquery

Request body

FieldTypeRequiredDescription
keystringYesRequired label key. Trimmed and lowercased; starts with a letter or number and allows letters, numbers, dot, underscore and dash.
valuestring,nullLabel value. Trimmed; a supplied blank value is invalid. Omit or use null for a key-only label, including on replacement.
colorstring,nullDisplay color. Omit, use null or supply a blank string to clear it, including on replacement.

Responses

StatusDescription
200Updated label.
400Bad request
401Unauthorized
403Requires project.agents.write.
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.