curl --request POST \
--url https://api.example.com/v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns:batchCancel \
--header 'Content-Type: application/json' \
--data '
{
"parent": "<string>",
"taskRuns": [
"<string>"
],
"reason": "<string>"
}
'{}Cancels multiple running task executions. Permissions required: bb.taskRuns.create (or issue creator for data export issues, or user with rollout policy role for the environment)
curl --request POST \
--url https://api.example.com/v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns:batchCancel \
--header 'Content-Type: application/json' \
--data '
{
"parent": "<string>",
"taskRuns": [
"<string>"
],
"reason": "<string>"
}
'{}The project id.
The rollout id.
The stage id.
The task id.
The name of the parent of the taskRuns.
Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
Use projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/- to cancel task runs under the same stage.
The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
The reason for canceling the task runs.
OK
The response is of type object.
Was this page helpful?