Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Overview

This node integrates with the Press Ticket® API to manage various resources such as messages, contacts, tickets, queues (sectors), tags, WhatsApp connections, and WhatsApp sessions. Specifically for the Setor (Queue) resource with the Excluir (Delete) operation, it allows users to delete a queue (sector) by its ID.

Common scenarios where this node is beneficial include automating customer support workflows, managing contact lists, handling support tickets, and administrating communication channels like WhatsApp. For example, a user can automate the deletion of an obsolete or incorrect sector in their support system by providing the sector's ID.

Properties

Name Meaning
ID do Setor The unique identifier of the sector (queue) to be deleted

Output

The output is a JSON array containing the response from the Press Ticket® API after attempting to delete the specified sector. Typically, this will include confirmation of deletion or details about any error encountered.

Example output structure:

[
  {
    "success": true,
    "message": "Queue deleted successfully",
    // ... other possible response fields
  }
]

If the deletion fails, the output will contain an error message describing the issue.

Dependencies

  • Requires an active connection to the Press Ticket® API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The node uses HTTP methods (DELETE) to interact with the API endpoint /v1/queue/{queueId}.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent queueId will result in an error from the API.
    • Missing or incorrect API authentication token will cause authorization failures.
    • Network connectivity problems may prevent successful API calls.
  • Error messages:

    • "Formato de resposta inválido ao listar setores" (Invalid response format when listing queues): Indicates unexpected API response; check API availability.
    • Errors returned from the API during deletion typically include messages about missing permissions or invalid IDs.
  • Resolution tips:

    • Verify that the queueId is correct and exists in the Press Ticket® system.
    • Ensure the API token credential is valid and has sufficient permissions.
    • Check network connectivity and API service status.

Links and References

Discussion