ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Sessão → Alterar Foto do Grupo

AI-generated

Summary

Uploads a new profile picture for a specific WhatsApp group.

Inputs

  • jid (required) — The JID of the group (e.g., 120363123456789012@g.us).
  • mediaSource (required) — Source of the image: 'url' (remote URL), 'base64' (text or data URL), or 'binary' (field from previous item).
  • url — Remote URL of the image (used when mediaSource is 'url').
  • base64 — Base64 string or data URL of the image (used when mediaSource is 'base64').
  • binaryPropertyName — Name of the binary field containing the image (default: 'data').
  • mimetype — MIME type of the image (e.g., 'image/jpeg'). Required if not deriving from binary data.
  • filename — Filename for the image (e.g., 'group-banner.png').

Output shape

A single record containing the API response (e.g., success status).

Returns no body on success; the operation updates the group photo on the WhatsApp server. Requires Instance authentication.

Examples

Example 1: Update group photo from a URL

JID: 120363123456789012@g.us; Media Source: URL; URL: https://example.com/banner.png

Example 2: Update group photo from a Base64 string

JID: 120363123456789012@g.us; Media Source: Base64; Base64: (base64 string of image)

Example 3: Update group photo from a binary field

JID: 120363123456789012@g.us; Media Source: Binary; Binary Property: data

Links

Discussion