PassPipelineValidate - Pass Manual Gate

Updated at:

Passes a manual gate using OpenAPI.

Applicable editions

Central edition, Region edition

Service Endpoints and Authorization Information

  • Obtain service endpoints: Replace {domain} in the API request syntax.

  • Obtain a personal access token.

  • Obtain the organization ID: This is required only for the 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

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

Region edition

POST https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/pass

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. Obtain this ID by calling ListPipelineRuns.

1

jobId

string

path

Yes

Pipeline run task ID. Obtain this ID by calling GetPipelineRun.

1

Request Examples

Central edition

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

Region edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/flow/pipelines/123/pipelineRuns/1/jobs/1/pass' \
  -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 succeeded.

true

Response Example

true

Error Codes

For more information, see the Error Code Center.