Skip to main content
DELETE
Cancel a pending command. Only commands with pending status can be cancelled.

Authentication

Requires an API key with devices:write scope.

Path Parameters

id
string
required
The device’s unique identifier (e.g., dev_abc123).
commandId
string
required
The command’s unique identifier (e.g., cmd_xyz789).

Response

Returns the command object with status set to cancelled.

Response Fields

Notes

  • Only commands in pending status can be cancelled
  • Commands that have been delivered, executed, failed, or expired cannot be cancelled
  • Cancellation is immediate and the command will not be delivered to the device