Green API icon

Green API

Send WhatsApp messages via Green API

Group → Set Group Admin

AI-generated

Overview

This node operation sets a participant as an admin in a specified WhatsApp group using the Green API. It is useful for managing group roles programmatically, such as promoting a member to admin status in a group chat. For example, an admin can automate the process of assigning admin rights to trusted members in a community or team group.

Use Case Examples

  1. Promote a participant to admin in a project management group to allow them to manage group settings.
  2. Automatically assign admin rights to new members who meet certain criteria in a social group.

Properties

Name Meaning
Group ID The unique identifier of the WhatsApp group where the admin rights will be set.
Participant Chat ID The chat ID of the participant who will be granted admin rights in the group.
Override Credentials Optional credentials override for this specific operation, allowing to specify a different instance ID and API token than the default credentials.

Output

JSON

  • success - Indicates if the operation to set the group admin was successful.
  • message - Response message from the API regarding the operation.

Dependencies

  • Green API service requiring instance ID and API token credentials

Troubleshooting

  • Ensure the Group ID and Participant Chat ID are correctly formatted and valid WhatsApp identifiers.
  • Check that the API credentials (instance ID and API token) are correct and have the necessary permissions.
  • Common errors include failure to set admin due to invalid group or participant IDs, or network/API request failures. Verify the data sent matches the expected format.

Links

Discussion