Query Group Properties

Last Updated on : 2024-04-15 03:44:15download

Query the properties that can be sent by the specified group.

API address

GET: /v2.0/cloud/thing/group/{group_id}/properties

Request parameter

Parameter name Type IN Required Description
group_id Long path true The ID of the specified group.

Return parameter

Parameter name Type Description
result List The list of returned data.
success Boolean Indicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
t Long The timestamp.
tid String The link ID.

Description of result

Parameter name Type Description
code String The code of the specified instruction.
value String The value of the specified instruction.
g_id Long The ID of the specified group.

Request example

GET: /v2.0/cloud/thing/group/12856***/properties

Return example

{
    "tid": "44e4561bb32011edaa2fba12a1143bd9",
    "result": [
        {
            "code": "switch_1",
            "g_id": 1285****7,
            "value": "false"
        },
        {
            "code": "countdown_1",
            "g_id": 128****,
            "value": "0"
        }
    ],
    "t": 1677118669636,
    "success": true
}

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.