Xsolla-logo

Update user groupsServer-side

patch/projects/{project_id}/users/{user_id}/user_groups

Updates user's groups.

Notice
  • Pass IDs of all groups where the users should be, other groups will be automatically deactivated for this user.
  • This method automatically updates user tags in Mailchimp if you have connected it.

SecurityServer
Request
path Parameters
user_id
required
string <uuid>

Benutzer-ID. Diese finden Sie unter Kundenportal > Login-Einstellungen > Nutzer > Benutzername/ID.

project_id
required
string <uuid>

Login-Projekt-ID aus dem Kundenportal.

Request Body schema: application/json
user_groups
required
Array of integers

List of user groups ID.

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

422

Unprocessable Entity

Request samples
application/json
{
  • "user_groups": [
    ]
}
Response samples
application/json
[
  • {
    }
]