Please update to the latest patch version to use it.
Basics
POST /api/v2/user/update
Description: update information of members, including account email, user group, identity, authorized groups, profile limit, remark, etc.
Request Parameters
Optional Body parameters can be omitted, and the parameter format is JSON.
Name | Type | Necessary | Default | Example | Description |
---|---|---|---|---|---|
user_id | text | Yes | - | "user_xxxx" | User id of the member |
user_group_id | text | No | - | 2 | User group id |
name | text | No | - | name | Name of the member account |
text | No | - | 123@123.com | Account email of the member | |
identity | text | No | - | 2 | Identity of the member 2:Administrator 3:Manager 4:Member |
manager | text | No | - | user_xxx |
Set the manager of the member, only valid when identity=4. Please fill in the user id of the manager. |
member | list | No | - | ["user_xxx","user_xxx"] |
Set the members managed by the manager, only valid when identity=3. Up to 300 user id can be filled in. Update will overwrite the previous content. |
authorized_group | list | No | - | ["all"] | Group id of the authorized groups. "all" means all groups. Up to 1500 group id can be passed at once, and up to 3000 id can be filled. Cannot pass "all" and group id at the same time. |
group_update_type | text | No | 1 | 1 | How to update the authorized group. 1 (default): Replace - overwrite the current authorized groups, preserving only the new settings. 2: Increase - adding the new authorized groups to the current groups, preserving the old settings. |
profile_limit | text | No | - | 100 |
Limit the number of profiles that the member can create. Pass "-1" for updating to no limit. |
remark | text | No | - | remark | Remark |
Return Data
// operation successed
{
"code": 0,
"data": {},
"msg": "Success"
}
// operation failed
{
"code":-1,
"data":{},
"msg":"failed"
}