POST groups/{groupId}/devices
Adds a device to the specified group.
Remarks
C4M Error Code returned:
null The device has been added to the group successfully.
GroupNotFound The requested group does not exist.
DeviceNotFound The requested device does not exist.
403 - Forbidden The authenticated user doesn't have permission to access the resource.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
groupId | The group's identifier. |
Define this parameter in the request URI. |
deviceDto | The identifier of the device that should be added to the group. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "id": 1 }Sample:
{ "versionId": 1, "installType": 0, "id": 1 }
Response Information
The operation result.
Response body formats
application/json, text/json
Sample:
{ "error": null }