RetryPipelineJobRun - Retry a pipeline job run
Retries a specific job within a pipeline run.
|
Applicable editions |
Central edition, Region edition |
Endpoints and authorization information
-
Obtain an endpoint: Replace {domain} in the API request syntax.
-
Obtain the organizationId: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to retrieve the organization ID.
|
Product |
Resource |
Required permissions |
|
Pipeline |
Pipeline run job |
Read and write |
Request syntax
Central edition
PUT https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/retry
Region edition
PUT https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/retry
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 |
|
The organization ID. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
The pipeline ID. |
123 |
|
pipelineRunId |
string |
path |
Yes |
The pipeline run ID. Obtain it by calling the ListPipelineRuns API. |
1 |
|
jobId |
string |
path |
Yes |
The pipeline run job ID. Obtain it by calling the GetPipelineRun API. |
1 |
Request examples
Central edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/pipelineRuns/1/jobs/1/retry' \
-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/retry' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example |
|
- |
boolean |
Whether the retry request was successful. |
true |
Response example
true
Error codes
For more information about error codes, see Error Code Center.