English
English
简体中文
Contact Us
Register
Log In

Go Online

Last Updated on : 2022-09-06 03:36:31

The partner synchronizes the online 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}/online

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****/online

Return example

{
    "result": true,
    "t": 1649993753725,
    "success": true
}

Error code

For more information, see error code.