Updated on 2026-01-13 GMT+08:00

Binding Assets to a Group by Label

Function

This API is used to bind an asset to a specified asset group by label. You can bind assets to a group by asset ID list and label ID.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/metadata/asset-domain-labels/bind

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

asset_ids

No

Array of strings

Asset ID list.

label_id

No

String

Label ID.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

id

String

Task ID.

msg

String

Operation status message.

status

String

Operation status.

Status code: 201

Resource being created.

Example Requests

POST /v1/{project_id}/metadata/asset-domain-labels/bind

{
  "asset_ids" : [ "string" ],
  "label_id" : "string"
}

Example Responses

None

Status Codes

Status Code

Description

200

Bound.

201

Resource being created.

401

Unauthorized. The user is not logged in or the token is invalid.

403

Unauthorized to access the resource.

404

The specified project does not exist.

Error Codes

See Error Codes.