v1
latestOpenAPI 3.1.12026-08-063445179.6 KBrevisions
Cancel revision build
Request cancellation of a build in progress. Cancellation is asynchronous — this endpoint returns immediately with the current revision state. The cancellation_requested_at field will be set, but the revision may still be in building status. Poll the revision or use the /progress endpoint to wait for the build to reach the failed state with failure_reason: "cancelled".
post/v2/revisions/{revision}/cancel
Path parameters
revisionstring required
Revision ID (globally unique)
Response
OK
Example response
{
"id": "r2ysnrrhr352",
"status": "succeeded",
"failure_reason": null,
"failure_detail": null,
"labels": {
"custom.branch": "main",
"custom.sha": "abc123def456"
},
"layers": [
{
"id": "lyr_abc123",
"slug": "deployment-secrets"
}
],
"env_vars": [
{
"key": "BUILD_ID",
"value": "abc123"
}
],
"config": {
"framework": "fresh",
"install": "deno cache main.ts"
},
"created_at": "2024-01-15T10:30:00Z",
"cancellation_requested_at": null,
"build_finished_at": "2024-01-15T10:31:50Z",
"deleted_at": null,
"timelines": [
{
"name": "Production",
"context": "Production",
"hostnames": [
"my-app.my-org.deno.net"
]
}
]
}