Updated on 2025-03-25 GMT+08:00

Creating a Pipeline Tag

Function

This API is used to create a pipeline tag.

Calling Method

For details, see Calling APIs.

URI

POST /v5/{project_id}/api/pipeline-tag/create

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

CodeArts project ID.

Constraints:

N/A.

Value Range:

The value contains 32 characters.

Default value:

N/A.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

name

Yes

String

Tag name.

color

Yes

String

Tag color.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

success

Boolean

Parameter description:

Whether the operation is successful.

Value range:

None.

Example Requests

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

{
  "name" : "2323",
  "color" : "#0b81f6"
}

Example Responses

Status code: 200

Response body.

{
  "success" : true
}

Status Codes

Status Code

Description

200

Response body.

Error Codes

See Error Codes.