Infrastructure/Agents
POSTAgentSince 1.0SynchronousAuth Required
BatchUpdateLabels
Apply batch label add, remove, or replace operations across a set of selected agents
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
selectorObjectRequiredSelector for this resource
uuidsListUuids for this resource
Example: item1,item2
typeStringFilter agents by type
Example: log
regionStringFilter agents by deployment region
Example: us-east-1
labelMatchLinkedHashMapLabel matching criteria for agent selection
Example: (nested object)
operationStringRequiredLabel operation to perform: add, remove, or replace
Example: add
labelsLinkedHashMapRequiredKey-value labels attached to this resource
Example: (nested object)
dryRunBooleanRequiredIf true, simulate the operation without applying changes
Example: false
Responses
Endpoint
POST/api/v1/agent/labels/batch
/api/v1/agent/labels/batch
Request Example
curl -X POST '{host}/api/v1/agent/labels/batch' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"selector":{"uuids":"item1,item2","type":"log","region":"us-east-1","labelMatch":"(nested object)"},"operation":"add","labels":"(nested object)","dryRun":false}'
Response Example
200{
"affectedCount": 42,
"affectedUuids": [],
"dryRun": false,
"errors": [
{}
]
}Change History
This API has no change history records yet.
