GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Group → setGroupAdmin

AI-generated

Summary

Set a participant as an admin in a specified WhatsApp group.

Inputs

  • groupId (required) — The ID of the WhatsApp group to modify, in the format '12345678901234567890@g.us'.
  • participantChatId (required) — The chat ID of the participant to be set as an admin, in the format '79000000000@c.us'.

Output shape

no body — success/failure only

This operation does not return any data; it simply indicates success or failure of the action.

Discussion