Cancel a pending scheduled action
POST /admin/scheduled-actions/{id}/cancel
Cancels a scheduled action before it fires (ADR 0020). Only a
pending action can be cancelled; a done / failed / already-
cancelled one is terminal and returns 409. This is the reason
scheduled actions are a durable table rather than raw enqueued
jobs: a subscription-expiry action must be cancellable if the
subscription renews.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”The action after cancellation.
One row of the scheduled_actions table (ADR 0020) — a declarative future action executed by the reaper through the jobs queue.
object
The target’s id as text. A UUID for asset/post/collection, a user ref for user — the column is polymorphic across both.
Per-action parameters. For change_sensitivity, a to field naming the target tier; for change_state, a to_state code; for delete, an optional reason.
object
Failure message when state is failed; null otherwise.
User who scheduled it; null for system-scheduled actions.
When the reaper ran it; null while pending or cancelled.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completedResource not found
object
Human-readable error summary
Example
the request could not be completedThe action is not pending and cannot be cancelled.
object
Human-readable error summary
Example
the request could not be completed