Get Status Set

Last Updated on : 2023-06-15 04:48:34

Get the status set based on the standard category.

API address

GET: /v1.0/iot-03/categories/{category}/status

Request parameter

Parameter name Type IN Required Description
category String uri true The product category.

Return parameter

Parameter name Type Description
result StatusRes The returned result.

Description of result

Parameter name Type Description
category String The product category.
status_list List The status set.

Description of status_list

Parameter name Type Description
name String The name of status.
code String The code of status.
type String The type.
values String The input parameter range.

Request example

GET: /v1.0/iot-03/categories/kg/status

Return example

{ "result": { "statusList": [ { "code": "relay_status", "values": "{\"range\":[\"off\",\"on\",\"memory\"]}", "type": "Enum", "name": "Power status setting" } ], "category": "tgkg" }, "t": 1571293457435, "success": "true" }

Error code

For more information, see error code.