Skip to main content

Reboot a device

POST 

/api/v1/devices/{deviceId}/commands:reboot

Requests a remote reboot. Side effect: the device goes offline while it restarts and is briefly unreachable before it reconnects. 202 returns a command-result object; then GET commands/results and match the returned reqSeqId in the items to follow the outcome.

Request​

Responses​

Accepted. Track the command in GET commands/results by its reqSeqId until phase is result. For a reboot, status=0 means the device accepted the command and is restarting; status=1 means it failed, and error.code gives the reason (timedOut if the device did not respond within timeoutSeconds; notSupported, permissionDenied or executionFailed if the device rejected the command).