Last Updated on: 2024-09-10 07:19:13
Create a Wi-Fi group. The group shall be a collection of devices in the same category and the same space.
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
space_id | String | body | true | The ID of the specified space. |
name | String | body | true | The name of the specified group. |
product_id | String | body | true | The product ID (PID). |
device_ids | String | body | true | The list of up to 20 device IDs, separated with commas (,). |
Parameter name | Type | Description |
---|---|---|
result | DeviceGroupCloudDTO | The returned result of the specified group. |
success | Boolean | Indicates whether the operation is successful. Valid values:
|
t | Boolean | The timestamp. |
tid | Boolean | The link ID. |
Description of result
Parameter name | Type | Description |
---|---|---|
id | Long | The ID of the specified group. |
name | String | The name of the specified group. |
pv | String | The version number of the specified MQTT protocol. |
time | Long | The time when a group is created. |
type | Integer | The type of the specified group. Valid values:
|
uid | String | The ID of a user in the specified group. |
group_type | Integer | The protocol type applicable to the specified group. Valid values:
|
icon_url | String | The picture of the specified group. A product picture is used by default. Currently, you cannot change the product picture. |
local_key | String | The localKey used for the MQTT connection. |
owner_id | String | The ID of the space to which the specified group belongs. |
product_id | String | The ID of a product in the group. |
{
"tid": "38cced10b32111edaa2fba12a1143bd9",
"result": true,
"t": 1677119078865,
"success": true
}
For more information, see error code.
For more information, see Limits on API Request Frequency.