UpdatePipelineRun - Stop a pipeline run

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization information

Product

Resource

Required permission

Pipeline

Pipeline running instance

Read and write

Request syntax

Central edition

PUT https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/runs/{pipelineRunId}

Region edition

PUT https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/runs/{pipelineRunId}

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Position

Required

Description

Example

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

pipelineId

string

path

Yes

The pipeline ID.

123

pipelineRunId

string

path

Yes

The ID of the pipeline running instance.

1

Request examples

Central edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/runs/1' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/flow/pipelines/123/runs/1' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

boolean

Whether the request was successful.

true

Response example

true

Error codes

For API error codes, see Error Code Center.