TNEENWH icon

TNEENWH

Use TNEENWH API operations

Group Set Messages Admins Only

AI-generated

Summary

Set the messages policy of a WhatsApp group to restrict sending messages to admins only or allow all participants to send messages.

Inputs

  • Group JID (required) — The unique identifier of the WhatsApp group to configure.
  • Enabled (required) — Boolean to enable (true) or disable (false) the policy that only admins can send messages.
  • Session ID Override — Optional session ID to override the default session used for the API call.
  • Channel Secret Override — Optional channel secret to override the default used for authentication.

Output shape

a single JSON object indicating the success or failure of the update operation

The output contains the API response confirming the policy has been set; errors will be reported if the operation fails.

Links

Discussion