curl --request POST \
--url https://api.example.com/api/projects/{projectId}/runs/{runId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "in_progress",
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"runVersion": "v2",
"release": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"completedAt": "<string>",
"cancelledById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancelledBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"cancelledComment": "<string>",
"jobs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "not_started",
"order": 123,
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deploymentWorkflowRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"environment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>"
},
"reviewedAt": "<string>",
"reviewedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"reviewedComment": "<string>",
"reviewedConclusion": "approved",
"previousRelease": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"previousReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<string>",
"data": "<unknown>"
}
]
}Cancel an in-progress or waiting deployment workflow run.
curl --request POST \
--url https://api.example.com/api/projects/{projectId}/runs/{runId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "in_progress",
"releaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"runVersion": "v2",
"release": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"completedAt": "<string>",
"cancelledById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancelledBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"cancelledComment": "<string>",
"jobs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "not_started",
"order": 123,
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deploymentWorkflowRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"environment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>"
},
"reviewedAt": "<string>",
"reviewedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"firstName": "<string>",
"lastName": "<string>"
},
"reviewedComment": "<string>",
"reviewedConclusion": "approved",
"previousRelease": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>"
},
"previousReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "<string>",
"data": "<unknown>"
}
]
}Personal access token is obtained through your profile
Project unique identifier
Deployment workflow run unique identifier
Reason for cancelling the workflow run
1Cancelled deployment workflow run
Cancelled deployment workflow run
Workflow run unique identifier
Workflow run name
Current status of the workflow run
in_progress, completed, cancelled, waiting, failure Associated release ID
Project ID
ID of user who created the run
Timestamp when the run was created
Workflow run version
v2, Associated release
Show child attributes
User who created the run
Show child attributes
Timestamp when the run was completed
ID of user who cancelled the run
User who cancelled the run
Show child attributes
Cancellation reason
List of jobs in the workflow run
Show child attributes
Was this page helpful?