Skip to main content
POST
Cancel Operation
Endpoint: POST https://api.rebelfi.io/v1/operations/:id/cancel
Cancel a pending operation. Only operations with no transaction submitted to the blockchain can be cancelled. RebelFi records which API key cancelled it. You can cancel any operation of your organization by ID, including one planned by another API key or a dashboard user that is holding the wallet (see Planning on a busy wallet). Cancelling an operation that has already ended (CANCELLED, EXPIRED or FAILED) changes nothing: the reply is 200 with its current status.

Path Parameters

Example Request

Example Response

Errors

You don’t need to cancel your own plan before planning again: a new plan by the same API key replaces that key’s plan that is still awaiting signature, unless a transaction was submitted or reported for it. Another key’s or user’s plan is not replaced; cancel it here first, or wait for it to expire (usually shortly after its expiresAt).
Don’t sign or broadcast a cancelled operation’s transaction. If one was broadcast anyway and lands, RebelFi records it and the operation becomes CONFIRMED; report its hash with Submit Hash.