Z-API WhatsApp icon

Z-API WhatsApp

Integration with Z-API (WhatsApp) organized by resources (messages, groups, chats, contacts, products, queue, instance, status, etc.).

Group → Update Group Photo

AI-generated

Summary

Update an existing WhatsApp group's photo.

Inputs

  • groupPhoto (required) — URL or base64 data of the new group photo.
  • groupId (required) — Group identifier (e.g., 120363019502650977-group) obtained from group metadata/list groups API.

Output shape

object containing the Z-API response (typically includes success status or error details)

Response mirrors the raw API output; success may include fields such as 'result' or 'status', while errors are propagated as node errors.

Examples

Example 1: Replace the group's picture with a hosted image URL

groupId: 120363019502650977-group, groupPhoto: https://example.com/photo.jpg

Example 2: Set the group photo using Base64 data

groupId: 9876543210-group, groupPhoto: data:image/png;base64,iVBORw0KG...

Example 3: Combine with other group updates in a single workflow

operation: updateGroupPhoto, groupId: 120363019502650977-group, groupPhoto: https://example.com/newphoto.png

Links

Discussion