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"
curl -X DELETE -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/devices/DEVICE_ID
curl -u <api-key>: https://cloud.bitbar.com/api/me/device-groups
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"
curl -X DELETE -u <api-key>: https://cloud.bitbar.com/api/me/device-groups/ID/selectors/SELECTOR_ID
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 bothSTATIC
andDYNAMIC
, 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