How can I explicitly disable the priority and the asignee when creating a ticket via the API? | Community
Skip to main content

How can I explicitly disable the priority and the asignee when creating a ticket via the API?

  • February 18, 2024
  • 1 reply
  • 0 views

Álvaro12

Hi
I would like to know if there is an option to unset the priority and the asignee when creating a ticket.
I'm trying to create tickets using the API, and they are being automatically assigned to a group, while their priority is being automatically set as urgent without me having set anything in these fields when creating the ticket. 
My idea was to create these tickets, so that these fields appear unsetted to the agent.
Is there a way to do this using the API?
Thank you very much in advance

1 reply

  • February 18, 2024

To create a ticket without setting the priority or assignee, you should ensure that the priority and assignee_id fields are not included in the JSON payload of your API request. Here's an example of how you might create a ticket without setting these fields:

{
  "ticket": {
    "subject": "My new ticket",
    "comment": {
      "body": "The smoke is very colorful."
    }
    // Do not include "priority" or "assignee_id" here
  }
}

However, if after doing this, the tickets are still being assigned or the priority is being set, then you should check the following within your Zendesk instance:

  1. Triggers: Look for any active triggers that automatically set the priority or assign tickets to a group when a ticket is created. You may need to adjust or deactivate these triggers.

  2. Automations: Similar to triggers, automations can change ticket properties after a ticket is created based on certain conditions. Review any automations that might be affecting your tickets.