Operations
Cancel operation
Ask a queued or running operation to stop.
POST
Asks the work behind an operation to stop, and returns the operation. Cancellation is best-effort: a running operation stops at its next safe point, so the response can still read
running for a few seconds before status becomes cancelled.
Reviews, redlines, document actions, drafts, report runs, report imports and playbook generations can be cancelled. Stopping a review needs edit access to it, and stopping a playbook generation needs edit access to the playbook, as the web app’s Stop does. Work already done is kept, such as computed report cells. A cancelled report import adds no more rows, but cells of rows it already added that are computing finish, and use credits. A cancelled playbook generation keeps the playbook and the checks drafted so far.
A question, a report export and repository indexing cannot be cancelled. Once started they run to the end, so cancelling one returns 409 operation_not_cancellable; the work finishes on its own. Get operation lists every type.
Authentication
Send an API key, or an OAuth access token, as a bearer token in theAuthorization header. A token needs the write scope of the operation’s type, such as reviews:write for a review or reports:write for a report run. A write scope also grants its read scope, except files:write: a document action or a draft needs files:read and files:write. Without them the call returns 403 with "error": "insufficient_scope", naming every scope the token lacks.
Path parameters
Response
Returns200 with the operation. Its status is running while the work stops, then cancelled.