Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Overview

This node integrates with the Press Ticket® API to manage contacts and their tags among other resources. Specifically, the "Atualizar Tags" (Update Tags) operation for the "Contato" (Contact) resource allows users to update the tags associated with a given contact by specifying the contact's ID and a list of tag IDs.

Common scenarios where this node is beneficial include:

  • Organizing contacts by updating their tags dynamically based on interactions or status changes.
  • Automating contact management workflows where tags represent categories, priorities, or statuses.
  • Synchronizing contact tags from external systems into Press Ticket® via n8n workflows.

For example, you might use this node to assign multiple tags like "VIP", "Newsletter Subscriber", and "Support Needed" to a contact after a certain event occurs in your workflow.

Properties

Name Meaning
ID do Contato The unique identifier of the contact whose tags you want to update.
IDs das Tags Comma-separated list of tag IDs (e.g., "1,2,3") to associate with the contact.

Output

The output is a JSON object representing the response from the Press Ticket® API after updating the contact's tags. This typically includes confirmation of the updated tags or details about the contact with the new tag associations.

Example output structure (simplified):

{
  "id": "123",
  "name": "Contact Name",
  "tags": [
    { "id": 1, "name": "Tag1" },
    { "id": 2, "name": "Tag2" }
  ],
  ...
}

No binary data output is produced by this operation.

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 requests to communicate with the Press Ticket® API endpoints.

Troubleshooting

  • Error: Missing required parameters
    Ensure that both "ID do Contato" and "IDs das Tags" are provided and correctly formatted. The tag IDs must be comma-separated integers.

  • Error: Invalid tag IDs or contact ID
    Verify that the contact ID exists and the tag IDs correspond to valid tags in the Press Ticket® system.

  • API Authentication errors
    Confirm that the API token credential is valid and has sufficient permissions to update contact tags.

  • Network or API endpoint issues
    Check network connectivity and that the Press Ticket® API URL is reachable and correct in the credentials configuration.

Links and References

Discussion