Browse the api reference

Cancel Operation

delete/v1/operations/{operation_id}

Part of Operations.

Cancels a pending or running operation. Emits a cancellation event to any active SSE connections. Cannot cancel completed or failed operations, or a running operation that cannot be stopped (graph creation, tier changes, materialization, period close), which returns 409.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
operation_idrequiredstringOperation identifier

Constraints: matches ^(op_[0-9A-Z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$

Example request

curl
curl -X DELETE "https://api.robosystems.ai/v1/operations/{operation_id}" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY"

Responses

200 Successful Response

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
409Operation already completed or failed — cannot cancel
422Validation Error
429Rate limit exceeded
500Internal server error