Add devices to group

Add devices to a group. Only devices that belong to the associated organization can be added to a group. If the device belongs to a different group, it is removed from that group and added to the new group.

Request
Security:
path Parameters
orgId
required
string

The ID of the organization. Obtain this from GET /organizations.

Example: 62
groupId
required
string

The ID of the group. Obtain this from GET /organizations/{orgId}/devices. If a groupId of -1 is selected, the device will be added without being assigned to any group.

Example: 62
Request Body schema: application/json
Array
string (IMEI)

The IMEI number of the device. The IMEI number can be found on a sticker on the device itself or on the back of the device box.

Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

404

Not found error

500

Internal server error

post/organizations/{orgId}/groups/{groupId}/devices
Request samples
application/json
[
  • "357660101000198"
]
Response samples
application/json
{
  • "requestId": "df5fg-45fgfdsg-45fg-45454"
}