Wazend API icon

Wazend API

Interact with Wazend API

Overview

The node "Wazend API" allows interaction with the Wazend API, specifically supporting operations on various resources. For the resource Grupo and operation Actualizar Configuraciones, it updates group settings such as who can send messages or edit configurations within a group. This is useful for managing group permissions dynamically, for example, setting a group to announcement-only mode where only admins can send messages, or unlocking the group so all members can edit settings.

Practical scenarios include:

  • Moderating group chats by restricting message sending to admins during important announcements.
  • Allowing all members to participate freely by enabling everyone to send messages.
  • Controlling who can change group settings to prevent unauthorized modifications.

Properties

Name Meaning
Nombre De La Instancia The name of the instance where the group exists; used to identify the target environment.
ID Del Grupo The unique identifier (JID) of the group whose settings will be updated.
Acción The configuration action to apply to the group. Options:
- Solo Admins Envían Mensajes (announcement): Only admins can send messages.
- Todos Envían Mensajes (not_announcement): Everyone can send messages.
- Solo Admins Editan La Configuración (locked): Only admins can edit group settings.
- Todos Editan La Configuración (unlocked): Everyone can edit group settings.

Output

The node outputs a JSON array containing the result of the update operation. The exact structure depends on the API response but typically includes confirmation of the applied settings or error details if the update failed.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the Wazend API.
  • The base URL for requests is https://docs.wazend.net/wazend.
  • Proper network access to the Wazend API endpoint is necessary.

Troubleshooting

  • Unsupported Operation Error: If the operation or resource is not supported, the node throws an error stating the function is not supported. Ensure that the resource is set to "groups-api" and operation to "update-settings".
  • Invalid or Missing Parameters: Required fields like instance name and group ID must be provided; missing these will cause errors.
  • API Authentication Failures: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Network Issues: Connectivity problems to the Wazend API endpoint may cause timeouts or failures.

Links and References

Discussion