Skip to main content
Recently Deleted/Recently Deleted

BatchAssetLabels

Apply label changes to multiple assets of the same type in a single request.

POST/api/v1/assets/{assetType}/batch-labels

Operation ID

BatchAssetLabels

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Path Parameters

  • assetType
    StringRequired

    Type of the assets to apply labels to (e.g. vm, host, volume)

Body Fields

  • assetUuids
    ListRequired

    Asset uuids

    Example: item1,item2

  • mode
    StringRequired

    Label application mode: append adds new labels, overwrite replaces all existing labels

    Example: append

  • labels
    ObjectRequired

    Key-value labels attached to this resource

    Example: (nested object)

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • data
    Object

    The data value

    Example: (nested object)