Cancel Job Invocation
/v2/apps/{app_id}/job-invocations/{job_invocation_id}/cancel
Cancel a specific job invocation for an app.
Path Parameters
app_id: string
job_invocation_id: string
Query Parameters
job_name: optional string
The job name to list job invocations for.
Returns
id: optional string
completed_at: optional string
formatdate-time
created_at: optional string
formatdate-time
deployment_id: optional string
job_name: optional string
started_at: optional string
formatdate-time
Cancel Job Invocation
curl https://api.digitalocean.com/v2/apps/$APP_ID/job-invocations/$JOB_INVOCATION_ID/cancel \
-X POST \
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
"job_invocation": [
{
"id": "ba32b134-569c-4c0c-ba02-8ffdb0492ece",
"job_name": "good-job",
"deployment_id": "c020763f-ddb7-4112-a0df-7f01c69fc00b",
"phase": "SUCCEEDED",
"created_at": "2025-09-11T11:04:05Z",
"started_at": "2025-09-11T11:04:10Z",
"completed_at": "2025-09-11T11:04:40Z",
"trigger": [
{
"type": "SCHEDULED",
"scheduled": [
{
"schedule": {
"cron": "*/2 * * * *",
"time_zone": "UTC"
}
}
]
}
]
}
]
}Returns Examples
{
"job_invocation": [
{
"id": "ba32b134-569c-4c0c-ba02-8ffdb0492ece",
"job_name": "good-job",
"deployment_id": "c020763f-ddb7-4112-a0df-7f01c69fc00b",
"phase": "SUCCEEDED",
"created_at": "2025-09-11T11:04:05Z",
"started_at": "2025-09-11T11:04:10Z",
"completed_at": "2025-09-11T11:04:40Z",
"trigger": [
{
"type": "SCHEDULED",
"scheduled": [
{
"schedule": {
"cron": "*/2 * * * *",
"time_zone": "UTC"
}
}
]
}
]
}
]
}