Get Device Function Pool

Last Updated on : 2023-06-20 14:54:10

Query the function pool supported by a specified device based on the device ID.

API address

GET: /v1.0/expand/devices/{device_id}/function-pool

Request parameter

Parameter name Type IN Required Description
device_id String uri true The ID of a Tuya device.

Return parameter

Parameter name Type Description
result List The returned result.

Description of result

Parameter name Type Description
function_code String The data point.
function_name String The name of a data point.

Request example

GET: /v1.0/expand/devices/6ce****/function-pool

Return example

{ "result": [ { "function_code": "tyabinmc7h", "function_name": "Face recognition" }, { "function_code": "tyabirdc5c", "function_name": "QR code" } ], "t": 1551851043862, "success": true }

Error code

For more information, see error code.