Last Updated on : 2023-07-06 07:55:17download
Create a device group based on the device ID set and group name. Then, call the API operation of querying the group task information to check whether the task is successful based on the task ID.
POST: /v1.0/iot-03/device-groups
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
group_name | String | false | The name of a specified group. | |
asset_id | String | false | The ID of a specified asset. | |
device_ids | List | false | The device ID. |
Parameter name | Type | Description |
---|---|---|
result | GroupPackageTaskVO | The task information about creating a group. |
Description of result
Parameter name | Type | Description |
---|---|---|
group_id | String | The ID of a specified group. |
task_id | String | The ID of a specified task. |
expire_time | Long | The expiration time in seconds. |
POST: /v1.0/iot-03/device-groups
{
"group_name": "bulu-13n-test",
"asset_id": "145248249804602****",
"device_ids": [
"6c9680b7****"
]
}
{
"result": {
"expired_seconds": 10,
"task_id": "14057567104****",
"group_id": "140511714560****"
},
"t": 1623846099825,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback