Skip to main content
Cancel a command that hasn’t started yet. Only commands in scheduled state can be cancelled. A window’s stop follows its command and cannot be cancelled separately.

Cancel by ID

The API returns 202 with the cancelled action. It won’t run, and no webhook is sent for it. If it was windowed, nothing happens at its end.

What can be cancelled

These states apply to commands. Stop action IDs are not accepted by this route. Anything other than scheduled returns 409 ACTION_NOT_CANCELLABLE.
To end a command that has already run, or a window that is still running, push a new one, such as idle, with onConflict: "cancel_and_replace". A running window is stopped first. See Replace a running window.

Cancel and replace in one request

If you’re cancelling to send something else, push the new action with onConflict: "cancel_and_replace". This cancels every conflicting scheduled action and accepts the new one in one request, so none of them can start in between. See Conflicts.

Find actions to cancel

The list also includes window stops (command: "stop"). Offer cancellation for scheduled commands only.

Next steps

Conflicts

Replace or queue behind an active action.

Push

Action states and how to track them.