SkipPipelineJobRun - Skip a Pipeline Task Run

Updated at:

Skips a specific task in a pipeline run.

Applicable editions

Central edition, Region edition

Endpoint and Authorization Information

  • Obtain endpoints to replace {domain} in the API request syntax.

  • Obtain a personal access token.

  • Obtain the organization ID. Required only for Central edition . Go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required Permissions

Pipeline

Pipeline run task

Read/write

Request Syntax

Central edition

PUT https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/skip

Region edition

PUT https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/skip

Request Headers

Parameter

Type

Required

Description

Example Value

x-yunxiao-token

string

Yes

Personal access token

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

Request Parameters

Parameter

Type

Location

Required

Description

Example Value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Enterprise ID

5ebbc0228123212b59xxxxx

pipelineId

string

path

Yes

Pipeline ID

123

pipelineRunId

string

path

Yes

Pipeline run ID. You can obtain this ID by calling the ListPipelineRuns operation.

1

jobId

string

path

Yes

Pipeline run task ID. You can obtain this ID by calling the GetPipelineRun operation.

1

Request Examples

Central edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/pipelineRuns/1/jobs/1/skip' \
  -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/pipelineRuns/1/jobs/1/skip' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response Parameters

Parameter

Type

Description

Example Value

-

boolean

Whether the operation was successful.

true

Response Example

true

Error Codes

For more information, see the Error Code Center.