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.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
operation_idrequired | string | Operation identifier |
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
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 409 | Operation already completed or failed — cannot cancel |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |