Gruppi

Change group settings

PATCH
/groups/{gid}/settings

Changes only the settings included in the body, one at a time. This number must be an admin; otherwise WhatsApp rejects it (403 sem_permissao). If one fails, the previous ones have already taken effect: repeating the same request is safe.

Autorizzazione

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Parametri di percorso

gid*string

Group id (120363000000000000@g.us, or just the digits).

Parametri header

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Corpo della richiesta

application/json
  1. body

Only the fields sent are changed; send at least one.

info_admin_only?boolean

true: only admins change the group's name, description and photo.

messages_admin_only?boolean

true: only admins send messages in the group.

member_add_mode?string

all_member_add: any member can add people; admin_add: admins only.

Valori possibili"admin_add""all_member_add"
membership_approval?boolean

true: people joining via the link wait for an admin's approval (see GET /groups/{gid}/join-requests).

Corpo della risposta

The changed settings.

application/json
  1. response
data*

Only the settings that were changed, with the new value.

curl -X PATCH 'https://app.wappfy.io/api/v1/groups/120363000000000000@g.us/settings' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "messages_admin_only": true,  "member_add_mode": "admin_add"}'
{  "data": {    "id": "string",    "info_admin_only": true,    "messages_admin_only": true,    "member_add_mode": "admin_add",    "membership_approval": true  }}