Add Member
Call Instructions:
This interface is used to batch add members to a specified group
This interface is called only by system administrators
For performance reasons, the response data has been removed after v2.4.4
Interface Information | |||
---|---|---|---|
Name | add member | ||
Address | /rest/tools/1.0/api/group/addUserToGroup | ||
Method | POST | ||
Return Type | Json | ||
Authentication | Basic,token | ||
Header Parameter | |||
Parameter name | Required | Parameter type | Description |
ContentType | Y | String | application/json |
body Parameters | |||
Parameter name | Required | Parameter type | Description |
groupName | Y | String | group name |
userNames | Y | String[] | username list |
return value format | |||
Field | Type | Description | |
code | int | ||
msg | String |
Example Postman call
Example body request parameters:
{
"groupName":"test_group",
"userNames":["aa","aabb"]
}
Example return value
{
"code": 0,
"msg": "Success"
}