Last modified on October 21, 2020

Add a device to a device group

Note: The resource accepts deviceIds[] for adding multiple devices with a single API call.

curl -X POST -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/devices -d "deviceId=DEVICE_ID"

Delete a device from a device group

curl -X DELETE -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/devices/DEVICE_ID

List all device groups

curl -u <api-key>: https://cloud.bitbar.com/api/me/device-groups

Add a selector to a device group

Note: The resource accepts multiple selectors to add them with a single API call.

curl -X POST -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/selectors -d "selectorIds[]=SELECTOR_ID"

Delete a selector from a device group

curl -X DELETE -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/selectors/SELECTOR_ID

Get device group devices

There are several types of device group devices:

  • STATIC – All devices were added statically.

  • DYNAMIC – All devices were added dynamically, that is, devices are on the list because they have selectors which were added to the group.

  • HYBRID – Devices in a device group are both STATIC and DYNAMIC, that is, they are on the list because they have selectors, and the device IDs were added to the group.

curl -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/devices

See Also

Managing devices and device groups
Authentication

Highlight search results