Go Offline

Last Updated on : 2022-05-05 10:00:52

The partner synchronizes the offline status of a specified device to Tuya based on the network connection of the device.

API address

PUT: /v1.0/iot-03/3rdcloud/devices/{device_id}/offline

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.
codeBooleanThe response code. It is empty when the operation succeeded.
msgStringThe error message if the API call fails. It is empty if the operation succeeded.
successBooleanIndicates whether the operation is successful. Valid values:
  • true: success.
  • false: failure.
tLongThe 13-digit timestamp of a response.

Request example

PUT: /v1.0/iot-03/3rdcloud/devices/6cf4171005d11e2ca7****/offline

Return example

    "result": true,
    "t": 1649993779377,
    "success": true

Error code

For more information, see error code.