Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

WhatsApp → Desligar

AI-generated

Overview

This node interacts with the Press Ticket API to manage WhatsApp connections. Specifically, for the 'WhatsApp' resource and 'Desligar' (shutdown) operation, it sends a POST request to the API endpoint to shut down a specified WhatsApp connection by its ID. This is useful for scenarios where you need to programmatically disconnect or turn off a WhatsApp connection managed by the Press Ticket system.

Use Case Examples

  1. Shutting down a WhatsApp connection by providing its ID to stop the connection safely.
  2. Automating the shutdown of WhatsApp connections during maintenance or system updates.

Properties

Name Meaning
ID do WhatsApp The ID of the WhatsApp connection to be shut down. This is a required string input used to identify which WhatsApp connection to disconnect.

Output

JSON

  • success - Indicates if the shutdown operation was successful
  • message - Response message from the API regarding the shutdown operation

Dependencies

  • Press Ticket API with an API token credential

Troubleshooting

  • Ensure the WhatsApp ID provided is correct and corresponds to an active connection.
  • Verify that the API token credential is valid and has the necessary permissions to perform shutdown operations.
  • Check network connectivity to the Press Ticket API endpoint to avoid request failures.
  • If the API returns an error, review the error message for details such as invalid ID or insufficient permissions and adjust accordingly.

Links

Discussion