Last Updated on : 2023-06-21 07:12:57download
Create a custom group, which belongs to the home group of the space by default.
POST: /v1.0/iot-02/lighting/groups/package
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
spaceId | String | body | true | The ID of a specified space. |
name | String | body | true | The name of a specified group. |
deviceIds | String[] | body | true | The list of device IDs. |
ownerId | String | body | false | The ID of a specified home group. |
groupConfigs | String | body | false | The extension parameter. |
Parameter name | Type | Description |
---|---|---|
groupPackageId | String | The ID of a specified custom group. |
taskId | String | The number of device status. If the value of null is returned, the task is completed without showing the time-consuming operation. |
expiredSeconds | long | The remaining seconds before the task expires. If the value of null is returned, the task is completed without showing the time-consuming operation. |
groupIds | long[] | The list of device group IDs. |
POST: /v1.0/iot-02/lighting/groups/package
{
"spaceId": "146886924268113****",
"name": "Custom Group 123467",
"deviceIds": [
"vdevo16393774893****",
"vdevo16393775054****"
],
"ownerId": "45360622",
"groupConfigs": "test"
}
{
"result": {
"groupIds": [
12089569,
12089570
],
"expiredSeconds": 14,
"groupPackageId": "147566148209509****",
"taskId": "147566148214961****"
},
"t": 1640660088966,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback