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>

用户ID。可以在发布商帐户 > 登录管理器设置 > 用户 > 用户名/ID 中找到它。

project_id
required
string <uuid>

发布商帐户中的登录管理器项目ID。

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

List of user groups ID.

Responses
200

确定

400

错误的请求

401

未授权

404

未找到

422

无法处理的实体

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