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

Disabling a Pipeline

Function

This API is used to disable a pipeline.

Calling Method

For details, see Calling APIs.

URI

PUT /v5/{project_id}/api/pipelines/{pipeline_id}/ban

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.

pipeline_id

Yes

String

Parameter description:

Pipeline 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

body

Yes

Object

Request body for disabling a pipeline.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

-

Boolean

Whether the disabling is successful.

Example Requests

PUT https://{endpoint}}/v5/db8d07265e24426598b3eb03a7818972/api/pipelines/a9278e7a9f394dacb07ab2529df7c201/ban

Example Responses

Status code: 200

Response body for disabling a pipeline.

true

Status Codes

Status Code

Description

200

Response body for disabling a pipeline.

Error Codes

See Error Codes.