Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Group → Update Settings

AI-generated

Summary

Update a group's settings.

Inputs

  • phone (required) — The WhatsApp group ID
  • adminOnlyMessage — Whether only admins can send messages
  • adminOnlySettings — Whether only admins can change group settings
  • requireAdminApproval — Whether new members require admin approval
  • adminOnlyAddMember — Whether only admins can add new members
  • requestOptions — Options for request handling, such as batching and SSL options
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use
  • timeout — Time in ms to wait for the server to send response headers

Output shape

JSON object representing the updated group with the applied settings

On success the updated group object is returned; on failure an error object is returned.

Examples

Example 1: Enable admin-only messaging for a group

phone: "5511999999999-1234567890@g.us", adminOnlyMessage: true

Example 2: Configure batch processing

requestOptions.batchSize: 100, requestOptions.batchInterval: 2000

Example 3: Set proxy and increase timeout while allowing insecure certs

proxy: "http://myproxy:3128", timeout: 15000, allowUnauthorizedCerts: true

Links

Discussion