Creates a community (parent group with an automatic Announcements group). Optionally accepts a description, picture, and a list of existing groups to link during creation. Each link has a 1s delay between calls to avoid throttling from the WhatsApp server.
If the WhatsApp server rejects the creation as a parent (400), the service performs an automatic fallback to a regular group. The response comes back with isCommunity: false and a notice in message.
Creates the community “XYZ Company” with description, picture, and links 2 existing groups (groupJid) as subgroups, plus sets membershipApprovalMode: request_required so joins require approval.
Returns the freshly created community in group, where group.jid is the community’s JID (use it as communityJid in subsequent calls) and isCommunity: true confirms WhatsApp accepted the creation as a parent group. Groups passed in groupJid are processed in order and split into linkedGroups (success) and failedGroups (failure). If an image was sent but failed to apply, the reason appears in imageError without aborting the creation.
The community is born with no participants, members join via each subgroup.
The Announcements group is created automatically by WhatsApp. You do not control its name / description here, use PUT /api/group/update afterwards to adjust it.
Limit of 50 subgroups per community (extras land in failedGroups).
imageError is populated when the picture fails but the community is still created normally.
Silent fallback to regular group: monitor isCommunity on the client side to alert the user.