Add User to Device Group

Restriction: This API endpoint is not supported in the Free Trial cloud.

Adds a user to a device group.

Important: To be able to run this API endpoint, you need to be an Admin user.

URL

Copy
http://<your-cloud>.app.perfectomobile.com/api/v1/users/device-groups

Method

PUT

Header parameters

Name

Description

Perfecto-Authorization

Security Token

Data parameters (body)

Parameter Type Default Description
username* string

The name of the user being added to the device group.

groupsNames* array of strings

The name of the device group or groups to which the user is being added. At least one group is required.

* Mandatory parameter

Success response

Code: 200

Error response

Status and a generic error message

Example

Copy
JSON request
{
    "username":"<username>", 
    "groupsNames":["<groupName1>", "<groupName2>"]
}