v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
community

[BETA] create a community

Create a new Community (parent group containing subgroups). When createGeneralChat is true (default), the service also provisions a default 'General' announcement subgroup. Note: This endpoint is currently in beta and may change without notice.

post/instances/{id}/client/action/create-community

Path parameters

idinteger required

Instance ID

Request body

titlestring required
descriptionstring
closedboolean

If true, joining subgroups requires admin approval

allowNonAdminSubGroupCreationboolean

If true, non-admin members can create subgroups

createGeneralChatboolean

If true, provision the default 'General' announcement subgroup

existingGroupIdsstring[]

IDs of existing standalone groups to link as subgroups immediately after creation

Example request

{
  "title": "My Community",
  "description": "A community for customers of our store",
  "closed": true,
  "allowNonAdminSubGroupCreation": true,
  "createGeneralChat": true,
  "existingGroupIds": [
    "12345678901234@g.us"
  ]
}

Response

status'success' | 'error'
dataobject

Example response

{
  "status": "success"
}