Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Setting Pipeline Tags in Batches
Updated on 2025-09-08 GMT+08:00

Setting Pipeline Tags in Batches

Function

This API is used to set pipeline tags in batches.

Calling Method

For details, see Calling APIs.

URI

POST /v5/{project_id}/api/pipeline-tag/set-tags

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details, see Obtaining a Project ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

pipelineList

Yes

Array of strings

Pipeline ID list.

tagList

Yes

Array of strings

List of tag IDs.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

success

Boolean

Definition:

Whether the operation is successful.

Value range:

  • true: The operation is successful.

  • false: The operation fails.

Example Requests

POST https://{endpoint}}/v5/db8d07265e24426598b3eb03a7818972/api/pipeline-tag/set-tags

{
  "pipelineList" : [ "d7013d2402ff4cc88489ee5af324e049", "e94ac0c9c3a2429e97534cb2416b28ec", "2c6a457c3f804e8faae7c6f2d125e1fd" ],
  "tagList" : [ "707b6711d3484578a1d848d889a7fa60" ]
}

Example Responses

Status code: 200

Response body.

{
  "success" : true
}

Status Codes

Status Code

Description

200

Response body.

Error Codes

See Error Codes.