Skip to main content
PUT
/
api
/
{session}
/
groups
/
{id}
/
picture
Set group picture
curl --request PUT \
  --url https://{host}/api/{session}/groups/{id}/picture \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "file": {
    "mimetype": "image/jpeg",
    "filename": "filename.jpg",
    "url": "https://github.com/devlikeapro/waha/raw/core/examples/waha.jpg"
  }
}'
{
  "success": true,
  "message": "Picture of the group updated successfully"
}

Description

This endpoint allows you to set or update the profile picture of a group. The image must be sent in base64 format.

URL Parameters

session
string
required
WhatsApp unique session ID
id
string
required
Group ID in format 120363XXXXX@g.us

Body

{
  "picture": "value"
}

Body Parameters

PropertyTypeRequiredDescription
picturestring✅ YesImage in base64 format to be set as the group picture

Response

{
  "success": true,
  "message": "Picture of the group updated successfully"
}

Status Codes

  • 200 - Picture updated successfully
  • 400 - Invalid parameters or image in incorrect format
  • 401 - Unauthorized
  • 404 - Group not found

Usage Example

curl -X PUT https://api.wappfy.com.br/api/my-session/groups/120363XXXXX@g.us/picture \
  -H "Content-Type: application/json" \
  -d '{
    "picture": "iVBORw0KGgoAAAANSUhEUgAAAAUA..."
  }'

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

id
string
required

ID do Grupo

Body

application/json
file
object
required
  • Option 1
  • Option 2

Response

200 - application/json
success
boolean
default:true
required
I