Adds a member to a group.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/group/add_member HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request parameters. | |
| group_id | string | Yes | The ID of the destination group to which the member is added. | 3e5***2c2 |
| member_type | string | Yes | The type of the member. Set the value to user. When you create a group, you can directly add the group to a parent group.
Note: A group can be added to only one group. A user can be added to multiple groups. | user |
| member_id | string | Yes | The member ID. If member_type is set to user, set this parameter to a user ID. | 2e4***1b1 |
Response parameters
Examples
Sample success responses
JSONformat
{}Error codes
For a list of error codes, visit the Service error codes.
