Create a ticket and specify a brand | Community
Skip to main content

Create a ticket and specify a brand

  • February 7, 2023
  • 3 replies
  • 0 views

Kirill13

I want to create a ticket via post reqyest "api/v2/tickets.json" and specify a brand (we have two of them). What field to json I shall add? I've tried to add "brand_id", but looks like this field is only suitable for get, not post request

3 replies

Amie11
  • February 8, 2023

Hey @kirill13,

I ran a quick test for you and "brand_id" does work in the POST ticket creation API call. My test was successful. 

{

"ticket": {

"comment": {

"value": "test creation via API"

},

"brand_id": "7132987"

}

}

Above is the basic JSON I used in my test and it created the ticket aligned to the brand ID I input in the JSON

 

Let us know how you go. :)


Kirill13
  • Author
  • February 8, 2023

Hi. Unfortunately, it does not work. Ticket still go to the default brand instead of new one (tried to change url as well)


Amie11
  • February 8, 2023

Heya, I think you should reach out to Zendesk Support directly from here so they can help you further with this one. :)