Evolution API icon

Evolution API

Interact with Evolution API

Overview

The node "Evolution API" allows interaction with the Evolution API service. Specifically, for the Resource "Grupo" and Operation "Atualizar Configurações" (Update Settings), it updates group settings such as who can send messages or edit configurations within a specified group instance. This is useful in scenarios where administrators want to control group permissions dynamically, for example, restricting message sending to admins only during announcements or allowing all members to edit group settings.

Properties

Name Meaning
Nome Da Instância The name of the instance where the group exists; identifies the target environment.
ID Do Grupo The unique identifier of the group whose settings will be updated.
Ação The setting action to apply on the group. Options:
- Somente Admins Enviam Mensagens (announcement): Only admins can send messages.
- Todos Enviam Mensagens (not_announcement): All members can send messages.
- Somente Admins Editam Configurações (locked): Only admins can edit group settings.
- Todos Editam Configurações (unlocked): All members can edit group settings.

Output

The node outputs a JSON array containing the result of the update operation. Each item in the output array corresponds to the response from the Evolution API after applying the requested group setting changes. The exact structure depends on the API response but generally includes confirmation of the updated settings or error details if the update failed.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Evolution API.
  • The base URL for requests is https://doc.evolution-api.com/api-reference.
  • Proper configuration of the API credential in n8n is necessary for successful execution.

Troubleshooting

  • Unsupported Operation Error: If the node throws an error stating the operation is not supported, verify that the resource and operation names are correctly set to "groups-api" and "update-settings" respectively.
  • Authentication Failures: Ensure the API key credential is valid and has sufficient permissions.
  • Invalid Group ID or Instance Name: Confirm that the provided group ID and instance name exist and are correct.
  • API Response Errors: Check the API response for detailed error messages, which might indicate issues like rate limits, invalid parameters, or server errors.

Links and References

Discussion