Create a new device group and optionally add devices to the group. Device groups can make it easier to manage similar devices and to get reports on their usage.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
A request to create a new device group.
TypeScript Definitions
Use the request body type in TypeScript.
Create request for a new device group and optionally add devices to the group.
application/json
application/json
curl -X POST "https://example.com/m2m/v1/groups" \ -H "Content-Type: application/json" \ -d '{ "accountName": "0000123456-00001", "groupName": "group name", "groupDescription": "descriptive string", "devicesToAdd": [ { "kind": "imei", "id": "15-digit IMEI" } ] }'{ "success": true}{ "errorCode": "error code string", "errorMessage": "error message string"}The Verizon billing account that the device group will belong to. An account name is usually numeric, and must include any leading zeros.
A description for the device group.
The name for the new device group. This name must be unique within the specified account.
Zero or more devices to add to the device group. You can use POST /devices/actions/list to get a list of all devices in the account.