Ze da API icon

Ze da API

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

Actions137

Group → Remove Admin

AI-generated

Summary

Remove admin(s) from a WhatsApp group by sending destroy requests for specified phone numbers.

Inputs

  • groupId (required) — The WhatsApp group ID
  • phones (required) — Comma‑separated list of phone numbers to demote from admin
  • requestOptions — Additional request configuration (e.g., batching, SSL settings, proxy, timeout)
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation fails
  • proxy — HTTP proxy to use, with optional username:password for authentication
  • timeout — Request timeout in milliseconds

Output shape

A response object indicating success or failure of the admin removal

The operation does not return the modified group; it returns a status response that may be empty on success.

Examples

Example 1: Remove multiple admins from a group

Group ID: 5511999999999-1234567890@g.us; Phones: 5511999999999,5511888888888; Request Options: default batching; Proxy: (none); Timeout: 10000

Example 2: Remove a single admin using default settings

Group ID: 5511999999999-1234567890@g.us; Phones: 5511888888888; Request Options: default; Proxy: (none); Timeout: 10000

Example 3: Remove admins with custom batch and proxy settings

Group ID: 5511999999999-9876543210@g.us; Phones: 5511777777777,5511666666666; Request Options: batchSize=100,batchInterval=500; Proxy: http://myuser:mypass@proxy.example.com:3128; Timeout: 15000; AllowUnauthorizedCerts: false

Links

Discussion