Cancel an operation
const url = 'https://api.deploybase.eu/api/v1/api/v1/operations/example/cancel';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.deploybase.eu/api/v1/api/v1/operations/example/cancel \ --header 'Authorization: <Authorization>'Cancels a working operation: a build still queued or building is cancelled, and the operation ends cancelled with reason cancelled_by_user. A deployment that already published stays published. Cancelling a finished operation returns it unchanged. A ship whose deployment is already production answers 409 OPERATION_ALREADY_LIVE with a rollback next action; if the build cannot be cancelled the call fails and the operation keeps working.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Operation ID (UUID)
Responses
Section titled “ Responses ”OK
object
object
object
object
object
PollAfterMs is how long a client that does not long-poll should wait before reading again; absent once the operation is terminal.
object
object
object
Component is “static”, “ssr” or “function:
Error says why the component is not ok, when a status code alone does not.
Protected: the site is private and verify could not get past its access gate (DEP-967).
Example
{ "data": { "actor": { "kind": "user" }, "kind": "ship", "reason": "build_failed", "status": "working", "step": "upload", "who_acts": "agent" }}INSUFFICIENT_SCOPE when an agent connected with read or preview access cancels a production ship, with a WWW-Authenticate insufficient_scope challenge
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Operation not found, or OPERATIONS_API_DISABLED
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}OPERATION_ALREADY_LIVE
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Live 39b0b6ad built