# Send group invitations / Add members to the group This method is used to send invitations to loyalty members if invites are required. If invitations are not required, this method is used to directly add members to a group. Endpoint: POST /group/invite - HM Version: 3.0.0 Security: ## Request fields (application/json): - `id` (string) Enter the ID of the group owner. Example: "b.sa35@gmail.com" - `groupId` (string, required) Enter the group ID generated during group creation. Example: "91" - `addMemberDetails` (object, required) Enter the following details of the member you want to add to the group. - `addMemberDetails.memberId` (string) Enter the unique ID of the loyalty member. Example: "b.sa24@gmail.com" - `addMemberDetails.userRole` (string) Enter the role which you want to assign to the loyalty member. There are two roles- Owner and Member. Example: "Owner" ## Response 201 fields (application/json): - `id` (string) Displays the ID of the group owner who invited loyalty members to join the group. Example: "b.sa35@gmail.com" - `groupId` (string) Displays the unique group ID generated during group creation. Example: "91" - `addedMembers` (object) Displays the following details of the loyalty member to whom an invitation was sent. - `addedMembers.memberId` (string) Displays the ID of the loyalty member. Example: "b.sa41@gmail.com" - `addedMembers.userRole` (string) Displays the group member's role as defined by the group owner. There are two roles- Owner and Member. Example: "Owner" - `addedMembers.status` (string) Displays as Success if the group joining invitation is sent successfully to the loyalty member otherwise Failed. Example: "Success" - `addedMembers.message` (string) Displays whether the invitation was successfully sent to the loyalty member or not. The group owner can customize the details when sending a request. Example: "Invitation to join the group sent successfully."