Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Delaying the Execution for One Hour
Updated on 2025-03-25 GMT+08:00

Delaying the Execution for One Hour

Function

This API is used to delay the execution for one hour.

Calling Method

For details, see Calling APIs.

URI

POST /v5/{project_id}/api/pipelines/{pipeline_id}/pipeline-runs/{pipelineRunId}/jobs/{jobRunId}/steps/{stepRunId}/delay

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

CodeArts project ID.

Constraints:

N/A.

Value Range:

The value contains 32 characters.

Default value:

N/A.

pipeline_id

Yes

String

Parameter description:

Pipeline ID.

Constraints:

N/A.

Value Range:

The value contains 32 characters.

Default value:

N/A.

pipelineRunId

Yes

String

Pipeline run ID.

jobRunId

Yes

String

Pipeline job ID.

stepRunId

Yes

String

Pipeline step ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

body

Yes

Object

Request body.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

success

Boolean

Parameter description:

Whether the operation is successful.

Value range:

None.

Example Requests

POST https://{endpoint}/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipelines/dc73b5ed58a64ab7a469b9480e5f6632/pipeline-runs/07bca108a47e42309eedc0c2be895f06/jobs/8bb8e58a736d40ce9854c7af95f9e053/steps/83f85157d1e343d69fb024654f8ad4d8/delay

{ }

Example Responses

Status code: 200

Response body.

{
  "success" : true
}

Status Codes

Status Code

Description

200

Response body.

Error Codes

See Error Codes.