Purpose

The API is used to add members to the group and also define their roles in the group. 

 Request URL

https://mail.zoho.com/api/organization/<zoid>/groups/<groupId>

Scope

organization.groups

 Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode*StringaddMailGroupMemberTo add member to a group. along with their role details. 
mailGroupMemberList*Object MemberListVO with all individual parameters.
zuidInteger ZUID of the user, incase the user is from the same organization
memberEmailId*StringEmail AddressEmail address of the member to be added. 
role*Stringmember
moderator
The role of the member who is to be added. 

* - Mandatory parameter

 Response Codes

Please refer Response Codes.

Sample Request

Copied{
    "mailGroupMemberList": [{
"zuid":123456
        "memberEmailId": "mark.francis@zylkernew.com",
        "role": "moderator"
    },
   {
        "memberEmailId": "tina.francis@zylkerother.com",
        "role": "member"
    }],
    "mode": "addMailGroupMember"
}