Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Ticket → Alternar Estado

AI-generated

Overview

This node interacts with the Press Ticket® API to toggle a boolean state field on a ticket. It is useful for scenarios where you need to programmatically change the state of a ticket's boolean attributes such as pinning/unpinning, muting/unmuting, or favoriting/unfavoriting a chat associated with the ticket. For example, you can use this node to toggle the 'pinnedChat' state of a ticket to highlight or remove highlight from a chat in a customer support system.

Use Case Examples

  1. Toggle the 'pinnedChat' state of a ticket to pin or unpin a chat.
  2. Toggle the 'mutedChat' state to mute or unmute notifications for a ticket's chat.
  3. Toggle the 'favoritedChat' state to mark a chat as favorite or remove it from favorites.

Properties

Name Meaning
ID do Ticket The unique identifier of the ticket whose boolean state field is to be toggled.
Campo The specific boolean field on the ticket to toggle, such as pinning, muting, or favoriting the chat.

Output

JSON

  • field - The boolean field that was toggled on the ticket.
  • ticketId - The ID of the ticket on which the state was toggled.
  • response - The API response confirming the toggle action and the new state of the field.

Dependencies

  • Press Ticket® API with API token authentication

Troubleshooting

  • Ensure the ticket ID provided is valid and exists in the system to avoid 'not found' errors.
  • Verify that the API token credential is correctly configured and has the necessary permissions to update tickets.
  • Check that the field to toggle is one of the supported boolean fields ('pinnedChat', 'mutedChat', 'favoritedChat').
  • If the API returns an error, inspect the error message for details such as invalid parameters or authentication issues.

Discussion