Groupes

Change the group picture

PUT
/groups/{gid}/picture

The picture must be JPEG (preferably square, up to 640×640). Sent via url (downloaded by the Wappfy server) or base64. With info_admin_only turned on, only admins can change it.

Autorisation

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).

Paramètres de chemin

gid*string

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

Paramètres d'en-tête

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.

Corps de la requête

application/json
  1. body
url*string

Public http(s) address of the file. The Wappfy server downloads it (up to 50 MB, 30 s, up to 3 redirects); internal addresses are rejected. Provide url or base64, never both. The photo must be JPEG: the file is not converted.

Longueurlength <= 2048
base64?string

The file in base64, raw or as a data URL (data:image/png;base64,...). Counts toward the request body limit; for large files, prefer url. The photo must be JPEG.

Longueur1 <= length

Corps de la réponse

Picture changed.

application/json
  1. response
data*
curl -X PUT 'https://app.wappfy.io/api/v1/groups/120363000000000000@g.us/picture' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://exemplo.com/logo.jpg"}'
{  "data": {    "id": "string",    "picture_updated": true  }}