Skip to main content
POST
/
api
/
projects
/
{projectId}
/
runs
/
{runId}
/
cancel
Cancel 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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Personal access token is obtained through your profile

Path Parameters

projectId
string<uuid>
required

Project unique identifier

runId
string<uuid>
required

Deployment workflow run unique identifier

Body

application/json
comment
string
required

Reason for cancelling the workflow run

Minimum string length: 1

Response

200 - application/json

Cancelled deployment workflow run

Cancelled deployment workflow run

id
string<uuid>
required

Workflow run unique identifier

name
string | null
required

Workflow run name

status
enum<string>
required

Current status of the workflow run

Available options:
in_progress,
completed,
cancelled,
waiting,
failure
releaseId
string<uuid>
required

Associated release ID

projectId
string<uuid>
required

Project ID

createdById
string<uuid>
required

ID of user who created the run

createdAt
string
required

Timestamp when the run was created

runVersion
enum<string> | null

Workflow run version

Available options:
v2,
release
object

Associated release

createdBy
object

User who created the run

completedAt
string | null

Timestamp when the run was completed

cancelledById
string<uuid> | null

ID of user who cancelled the run

cancelledBy
object

User who cancelled the run

cancelledComment
string | null

Cancellation reason

jobs
object[]

List of jobs in the workflow run