All Products
Search
Document Center

Drive and Photo Service:AddGroupMember

Last Updated:Aug 04, 2025

Adds a member to a group.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/group/add_member HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request parameters.

group_idstringYes

The ID of the destination group to which the member is added.

3e5***2c2
member_typestringYes

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.

  • user

Note: A group can be added to only one group. A user can be added to multiple groups.

user
member_idstringYes

The member ID. If member_type is set to user, set this parameter to a user ID.

2e4***1b1

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.