v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
community

[BETA] unlink community subgroup

Unlink one or more subgroups from a Community. They become standalone groups again. Note: This endpoint is currently in beta and may change without notice.

post/instances/{id}/client/action/unlink-community-subgroup

Path parameters

idinteger required

Instance ID

Request body

communityIdstring required
groupIdsstring[] required
removeOrphanMembersboolean

If true, members who were only in the community via these subgroups are also removed

Example request

{
  "communityId": "12345678901234@g.us",
  "groupIds": [
    "98765432109876@g.us"
  ]
}

Response

status'success' | 'error'

Example response

{
  "status": "success"
}