Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

WhatsApp → Criar

AI-generated

Overview

This node interacts with the Press Ticket API to manage WhatsApp connections. Specifically, for the 'WhatsApp' resource and 'Criar' (Create) operation, it creates a new WhatsApp connection by sending the connection name, status, and default flag to the API. This is useful for automating the setup of WhatsApp connections within the Press Ticket system, enabling integration and management of WhatsApp messaging through the API.

Use Case Examples

  1. Creating a new WhatsApp connection with a specified name, status (e.g., CONNECTED, DISCONNECTED), and whether it is the default connection.
  2. Automating the creation of multiple WhatsApp connections for different departments or purposes within an organization.

Properties

Name Meaning
Nome Name of the WhatsApp connection to be created.
Status Status of the WhatsApp connection (e.g., CONNECTED, DISCONNECTED, QRCODE, OPENING, PAIRING, TIMEOUT).
Padrão Indicates if this WhatsApp connection is the default one.

Output

JSON

  • name - Name of the created WhatsApp connection.
  • status - Status of the created WhatsApp connection.
  • isDefault - Boolean indicating if the connection is the default one.
  • id - Identifier of the created WhatsApp connection.

Dependencies

  • Press Ticket API with an API token for authentication

Troubleshooting

  • Ensure the API token credential is correctly configured and has the necessary permissions to create WhatsApp connections.
  • Verify that the 'name' property is provided and is not empty, as it is required.
  • Check the API endpoint URL and network connectivity to the Press Ticket API server.
  • If the API returns errors, review the error message for details such as invalid status values or duplicate connection names.

Discussion