v1
latestOpenAPI 3.1.12026-08-063445179.6 KBrevisions
Update revision
Update mutable revision properties. The only mutable property is retention, the revision's garbage-collection policy: auto follows the normal inactivity-based cleanup, while indefinite exempts the revision from automatic deletion so it keeps serving on its preview and pinned-production domains. Explicitly deleting the revision, or deleting its app, is always permitted regardless of retention.
indefinite is only available to enterprise organizations that have opted in — contact Deno support to enable it. For organizations without the feature, requests that set indefinite fail with 403 REVISION_RETENTION_NOT_AVAILABLE.
patch/v2/revisions/{revision}
Path parameters
revisionstring required
Revision ID (globally unique)
Request body
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"
]
}
]
}