Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Overview

This node integrates with the Press Ticket® API to manage various communication-related resources, including WhatsApp sessions. Specifically, for the "Sessão WhatsApp" (WhatsApp Session) resource and the "Atualizar" (Update) operation, it updates an existing WhatsApp session by changing its associated WhatsApp connection ID.

Use cases include maintaining or modifying active WhatsApp sessions linked to specific WhatsApp connections within your customer support or communication workflows. For example, if a WhatsApp session needs to be reassigned to a different WhatsApp connection due to infrastructure changes or load balancing, this node operation facilitates that update seamlessly.

Properties

Name Meaning
ID do WhatsApp The identifier of the WhatsApp connection to associate with the WhatsApp session.
ID da Sessão WhatsApp The unique identifier of the WhatsApp session to be updated.

These properties are required inputs when updating a WhatsApp session.

Output

The node outputs a JSON array containing the response from the Press Ticket® API after attempting to update the WhatsApp session. The structure typically includes details about the updated session or confirmation of the update action.

Example output JSON structure (simplified):

{
  "id": 123,
  "whatsappId": 456,
  "status": "updated",
  "message": "WhatsApp session updated successfully"
}

The exact fields depend on the API response but generally confirm the update status.

Dependencies

  • Requires an API key credential for authenticating with the Press Ticket® API.
  • The node uses the base URL and token from these credentials to make HTTP requests.
  • No additional external dependencies beyond the configured API access.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp session ID or WhatsApp connection ID will cause the API request to fail.
    • Network connectivity problems or incorrect API credentials can lead to authentication errors.
    • If the session ID does not exist or is already deleted, the API may return a not found error.
  • Error messages:

    • Errors returned from the API will be propagated as node execution errors unless "Continue On Fail" is enabled.
    • Typical error messages might include "Session not found", "Invalid WhatsApp ID", or authentication failures.
  • Resolution tips:

    • Verify that the WhatsApp session ID and WhatsApp connection ID are correct and exist in the system.
    • Ensure the API key credential is valid and has sufficient permissions.
    • Check network connectivity and API endpoint accessibility.

Links and References

Discussion