Infrastructure/Assets
POSTInfrastructureSince 1.0SynchronousAuth Required
BatchAssetLabels
Apply label changes to multiple assets of the same type in a single request.
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
assetTypeStringRequiredType of the assets to apply labels to (e.g. vm, host, volume)
Body Fields
assetUuidsListRequiredAsset uuids
Example: item1,item2
modeStringRequiredLabel application mode: append adds new labels, overwrite replaces all existing labels
Example: append
labelsObjectRequiredKey-value labels attached to this resource
Example: (nested object)
Responses
Endpoint
POST/api/v1/assets/{assetType}/batch-labels
/api/v1/assets/{assetType}/batch-labels
Request Example
curl -X POST '{host}/api/v1/assets/{assetType}/batch-labels' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"assetUuids":"item1,item2","mode":"append","labels":"(nested object)"}'
Response Example
200{
"data": null
}Change History
This API has no change history records yet.
