Cancel an invocation
PATCH/invocations/:invocation_id/cancel
Cancel the given invocation. Canceling an invocation allows it to free any resources it is holding and roll back any changes it has made so far, running compensation code. For more details, checkout https://docs.restate.dev/guides/sagas
Request
Responses
- 200
- 202
- 404 Not Found
- 503 Service Unavailable
- 400 Bad Request
- 409 Conflict
The invocation has been cancelled.
The cancellation signal was appended to the journal and will be processed by the SDK.
Error when routing the request within restate.
The invocation was already completed, so it cannot be cancelled nor killed. You can instead purge the invocation, in order for restate to forget it.