Help Center/ ServiceStage/ API Reference/ Historical APIs/ Managing Pipelines/ Performing Operations on a Specified Pipeline
Updated on 2026-04-10 GMT+08:00

Performing Operations on a Specified Pipeline

Function

This API is used to perform operations on a specified pipeline.

URI

POST /cpepipeline/v2/pipelines/{pipeline_id}/action

Table 1 Path parameter

Parameter

Mandatory

Type

Description

pipeline_id

Yes

String

Pipeline ID. See Querying the Pipeline List.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format). Default value: application/json;charset=utf8.

X-Auth-Token

Yes

String

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain the token, see Obtaining a User Token Through Password Authentication.

Table 3 Query parameter

Parameter

Mandatory

Type

Description

actionId

Yes

String

Operation type. The options are as follows:

  • accept
  • reject
  • retry
  • start
  • stop
Table 4 Request body parameter

Parameter

Mandatory

Type

Description

name

Yes

String

Pipeline name.

Response

Table 5 Response parameters

Parameter

Type

Description

id

Integer

Execution ID.

pipelineId

String

Pipeline ID.

status

Integer

Pipeline status.

version

Integer

Pipeline version.

Example Request

To start a pipeline, call /cpepipeline/v2/pipelines/c4f1a0cb-49d7-4e62-b4d0-a922f638c867/action?actionId=start.

{
    "name": "vvasd"
}

Example Response

{
    "id": 288508,
    "pipelineId": "c4f1a0cb-49d7-4e62-b4d0-a922f638c867",
    "version": 0,
    "status": 4
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

Error Codes

See ServiceStage Error Codes.