v1

latestOpenAPI 3.0.1Apache 2.02026-08-063494581.6 MB
device_Operations

Update the operation (Support status update as of now)

Updates the status of an existing Dispatch operation. Supports CANCEL only.

Use this endpoint to manually override an operation's state, most commonly to cancel an operation that has not yet dispatched or to force a stuck operation into a terminal state. This does not change the state of the individual devices within the operation.

About Update Operation

This endpoint currently supports status updates only, as noted in its own description. It is most useful for cancelling an operation that is still queued or resolving, since operations already in Dispatching or Dispatched may have already reached some devices before a cancellation can take effect. Because this updates the operation-level record, individual DeviceOperation states are not automatically changed and may need to be reconciled separately.

Key Fields / Request Body

state — the new operation state, CANCELLED

reason — free text explaining the state change

Common Use Cases

Cancelling an operation that was created in error before it reaches the dispatch stage

Forcing an operation that has been stuck in Dispatched or Processing for an extended period into a terminal state

Best Practices

Check the operation's current state with GET /v0/operations/{operationId}/ before attempting to cancel it, since only operations that have not yet dispatched can be reliably cancelled

Always include a reason so the override is auditable alongside the operation's activity history

Workflow

Call GET /v0/operations/{operationId}/ to confirm the operation is still in a cancellable state

PUT the new state and reason to this endpoint

Re-check the operation to confirm the update took effect

put/v0/operations/{operationId}/

Path parameters

operationIdstring required
Example:5743470f-7dcc-4a92-8a4b-f41b1cea69ed

The ID of the operation to update (Put created operationId here)

Request body

state'FAILED' | 'CANCELLED' | 'TIMEOUT' | 'SCHEDULED'

The new status of the operation

Response

Operation status updated successfully

operationIdstring

The ID of the updated operation

statusstring

The updated status of the operation