Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

WhatsApp → Atualizar

AI-generated

Overview

This node interacts with the Press Ticket API to update an existing WhatsApp connection. It allows users to modify the name, status, and default connection flag of a specified WhatsApp connection by its ID. This is useful for managing WhatsApp connections within a communication system, such as changing connection states or updating connection details.

Use Case Examples

  1. Updating the name and status of a WhatsApp connection to 'CONNECTED' and setting it as the default connection.
  2. Changing the status of a WhatsApp connection to 'DISCONNECTED' without altering other properties.

Properties

Name Meaning
ID do WhatsApp The unique identifier of the WhatsApp connection to update.
Nome The new name for the WhatsApp connection.
Status The new status of the WhatsApp connection, such as CONNECTED, DISCONNECTED, QRCODE, OPENING, PAIRING, or TIMEOUT.
Padrão Indicates if this WhatsApp connection is the default one.

Output

JSON

  • id - The ID of the updated WhatsApp connection.
  • name - The updated name of the WhatsApp connection.
  • status - The updated status of the WhatsApp connection.
  • isDefault - Boolean indicating if the connection is the default.

Dependencies

  • Press Ticket API with an API token for authentication

Troubleshooting

  • Ensure the WhatsApp ID provided exists and is correct to avoid 'not found' errors.
  • Verify the API token is valid and has the necessary permissions to update WhatsApp connections.
  • Check that all required fields (ID, name, status) are provided and correctly formatted.

Discussion