Menu

CreateDeviceGroup

Jim

Create new Device Group

Creates a new device groups in the domain of the owner identified by the apikey. A device my be part of several groups and it is possible to add not yet existing devices to a group.

Path: cs-ws/resources/admin/devicegroup Method: POST

Parameters

  • apikey
  • overwrite true|false ... allows to overwrite existing groups

Data

<devicegroup name="...">
    <device_name>...</device_name>
    <device_name>...</device_name>
</devicegroup>

Errors:

  • 401 UNAUTHORIZED if key is invalid or not admin key
  • 409 CONFLICT if devicegroup already exists

Example

POST http://localhost/cs-ws/resources/admin/devicegroup?apikey=1234 HTTP/1.1
<devicegroups>
    <devicegroup name="DevGroup1">
        <device_name>D1</device_name>
        <device_name>D3</device_name>
    </devicegroup>
</devicegroups>

HTTP/1.1 200 OK

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.