Add devices to a group
POST {{protocol}}://{{service}}.{{region}}.{{base_url}}/api/v1/groups/:groupId/devices/add
Add a list of devices to a group. Once the request is accepted, no matter the deviceId
exists or already belongs to the group or another group, will always return 200 and the group information after the operation.
Request Body
{"deviceIds"=>["{{deviceId}}", "{{deviceId2}}"]}
RESPONSES
status: OK
{"id":"a2582d78-4be0-4cef-a4ab-6d37c432a1c1","name":"BranchA","deviceIds":["c9027ceb-eb64-4165-9e7c-a6035a565e97","0d2a4141-082d-4103-b9ca-4201a6d3c4a3"],"createdAt":"2022-07-04T00:00:00Z","updatedAt":"2022-07-07T00:00:00Z"}