Last Updated on : 2023-06-21 07:12:55download
Modify a custom group, including the group information and devices in the group.
PUT: /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. |
groupPackageId | String | body | true | The ID of a specified custom group. |
deviceIds | String[] | body | true | The list of device IDs that need to be changed. The device IDs that are already in the group will be deleted, and those not in the group will be added. |
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 ID of a specified device group. |
PUT: /v1.0/iot-02/lighting/groups/package
{
"spaceId": "146886924268113****",
"name": "Custom Group 123456",
"deviceIds": [
"vdevo16400687183****"
],
"ownerId": "4536****",
"groupPackageId": "147564952996027****",
"groupConfigs": "test-update"
}
{
"result": {
"expiredSeconds": 10,
"groupPackageId": "147564952996027****",
"taskId": "147565544970447****"
},
"t": 1640658650274,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback