PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Grupo → Atualizar Configurações

AI-generated

Summary

Update settings of a specific WhatsApp group within a given instance, modifying attributes such as the group's subject, description, and admin permissions for sending and editing messages.

Inputs

  • instanceId (required) — ID of the WhatsApp instance where the group exists.
  • groupId (required) — JID identifier of the group to update.
  • groupSettings — Collection of group settings to update, including subject (name/topic), description, announce (restrict messages to admins), and restrict (restrict edits to admins).

Output shape

a single JSON object representing the API response from updating the group's settings

The output contains the JSON response from the PAPI WhatsApp API reflecting the result of the update operation. Errors related to authorization or resource existence may be raised.

Examples

Example 1: Update a group's subject and enable message sending only by admins

Provide instanceId, groupId, and set groupSettings with subject and announce=true.

Discussion