Unable to set ticket_form_id via REST API | Community
Skip to main content

Unable to set ticket_form_id via REST API

  • March 23, 2021
  • 8 replies
  • 0 views

Hey there, I am trying to create request via REST API; the request is created but the ticket_form_id is not set.
here's request example:
{"request": {"subject": "[subject]","comment": {"body": "comment", "ticket_form_id":[int_ticket_form_id]}}}

8 replies

Integriq
  • March 23, 2021

Hi @Mohamed T. Ibrahim,

 ticket_form_id should be part of the request object rather than the comment object.

Please try with this restructured code.

{
"request": {
"subject": "[subject]",
"comment": {
"body": "comment"
},
"ticket_form_id": [int_ticket_form_id]
}
}

 

 

Hope this helps!!!

-sushant


  • Author
  • March 23, 2021

Hey @Sushant Awalekar  I followed the structure you suggested but still not set.


Integriq
  • March 23, 2021

@Mohamed T. Ibrahim

Can you confirm if the form is enabled for end-users?


  • Author
  • March 23, 2021

27097112367

Yes it's enabled for end user 


Integriq
  • March 23, 2021

@Mohamed T. Ibrahim

This is strange,

I am not sure what else preventing it.




  • April 2, 2021

Hi @Mohamed T. Ibrahim,

Please note that setting the ticket_form_id is only applicable for enterprise accounts, and I have checked your account and you are unfortunately not on Enterprise, that is why it is not working.

For more info:

Requests API.

Have a great day and stay safe!


Ryan91
  • November 23, 2022

Hello everyone,

I have same issue here; I try to input below but I'm getting an error

// not working - request error
"ticket_form_id": [int_ticket_form_id]

I not sure if mine is an enterprise acc. but the company gave me admin access to gcash1590118273.zendesk.com sandbox acc. 

// not working - request success but not set
"ticket_form_id": int_ticket_form_id

Nara
  • January 22, 2023
Hi Ryan, similar to the previous comment, please ensure you are sending the ticket_form_id within the request body, rather than the comment body. For reference, an example of a request with the ticket_form_id can be found on the Request API Doc page here.
 
If you are still having trouble, I would recommend reaching out to our support directly so that we can more specifically assist in your API request.