Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

WhatsApp → Reiniciar

AI-generated

Overview

This node interacts with the Press Ticket® API to manage WhatsApp connections. Specifically, for the 'WhatsApp' resource and 'Reiniciar' (Restart) operation, it sends a POST request to restart a specified WhatsApp connection by its ID. This is useful for scenarios where a WhatsApp connection needs to be programmatically restarted, such as recovering from connection issues or applying configuration changes without manual intervention.

Use Case Examples

  1. Restart a WhatsApp connection by providing its WhatsApp ID to ensure the connection is refreshed and operational.
  2. Automate the restart of WhatsApp connections as part of a maintenance workflow to minimize downtime.

Properties

Name Meaning
ID do WhatsApp The ID of the WhatsApp connection to be restarted. This is required to identify which connection to restart.

Output

JSON

  • qrcode - QR code string when fetching QR code (not applicable for restart operation)
  • qrcodeImage - Base64 encoded QR code image (not applicable for restart operation)
  • whatsappId - The WhatsApp connection ID related to the QR code (not applicable for restart operation)
  • success - Indicates if the restart operation was successful
  • error - Error message if the restart operation failed

Dependencies

  • Press Ticket® API with an API token credential

Troubleshooting

  • Ensure the provided WhatsApp ID is correct and corresponds to an existing WhatsApp connection.
  • Check that the API token credential is valid and has the necessary permissions to restart WhatsApp connections.
  • If the restart operation fails, verify the API endpoint and network connectivity to the Press Ticket® API service.
  • Review error messages returned by the API for specific issues such as invalid ID or insufficient permissions.

Links

Discussion