Adds a member to a group.
Try it now
Test
RAM authorization
Request syntax
POST /v2/group/add_member HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| domain_id |
string |
Yes |
The domain ID. |
|
| body |
object |
No |
The request body. |
|
| group_id |
string |
Yes |
The ID of the group to add a member to. |
3e5***2c2 |
| member_type |
string |
Yes |
The type of member to add. For this operation, the only valid value is
Note: A group can belong to only one parent group, but a user can belong to multiple groups. |
user |
| member_id |
string |
Yes |
The user ID of the member to add. |
2e4***1b1 |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.