Skip to main content
POST
/
community
/
editgroups
Manage groups in a community
curl --request POST \
  --url https://api.wppfy.com/community/editgroups \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '
{
  "community": "120363153742561022@g.us",
  "action": "add",
  "groupjids": [
    "120363324255083289@g.us",
    "120363308883996631@g.us"
  ]
}
'
{
  "message": "community updated",
  "success": [
    "<string>"
  ],
  "failed": [
    "<string>"
  ]
}

Authorizations

token
string
header
required

Body

application/json
community
string
required

Community JID (unique identifier)

Example:

"120363153742561022@g.us"

action
enum<string>
required

Type of operation to be performed:

  • add - Adds groups to the community
  • remove - Removes groups from the community
Available options:
add,
remove
groupjids
string[]
required

List of group JIDs to add or remove

Minimum array length: 1
Example:
[
"120363324255083289@g.us",
"120363308883996631@g.us"
]

Response

Operation performed successfully

message
string
Example:

"community updated"

success
string[]

List of group JIDs processed successfully

failed
string[]

List of group JIDs that failed processing