To connect a group to a community, you will need to know the Community ID, as well as the ID of the group you want to connect.
You can get the community ID using endpoint GET https://gate.whapi.cloud/communities:
GET https://gate.whapi.cloud/communities
To get the group identifier, use endpoint GET https://gate.whapi.cloud/groups:
GET https://gate.whapi.cloud/groups
To add a group to the community, use endpoint
PUT https://gate.whapi.cloud/communities/{CommunityID}/{GroupID}:
PUT https://gate.whapi.cloud/communities/{CommunityID}/{GroupID}
To exclude a group from the community, you need endpoint
DELETE https://gate.whapi.cloud/communities/{CommunityID}/{GroupID}:
DELETE https://gate.whapi.cloud/communities/{CommunityID}/{GroupID}
To get a list of groups already connected to the community use the “Get community subgroups” endpoint:
Last updated 1 year ago