Unbind Device

Last Updated on : 2023-06-15 05:35:11

Based on the ID of a Tuya-enabled device, the partner cloud unbinds the specified device from a user.

API address

POST: /v1.0/cloud/thing/devices/{device_id}/unbind

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of the specified Tuya-enabled device.

Return parameter

Parameter nameTypeDescription
resultFusionResultThe response result.

Description of result

Parameter nameTypeDescription
resultObjectThe returned result.
codeStringThe response code. It is empty when the request succeeded.
msgStringThe message that is returned if the request fails. It is empty if the request is successful.
successBooleanIndicates whether the request is successful. Valid values:
  • true: success.
  • false: failure.
tLongThe 13-digit timestamp of a response.

Request example

POST: /v1.0/cloud/thing/devices/6cf4171005d11e2ca7****/unbind

Return example

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

Error code

For more information, see error code.