Recent searches


No recent searches

Unable to set ticket_form_id via REST API

Answered


Posted Mar 23, 2021

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]}}}


0

8

8 comments

Hi @...,

 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

0


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

0


@...

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

0


@...

Yes it's enabled for end user 

0


@...

This is strange,

I am not sure what else preventing it.



0


Hi @...,

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!

1


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

0


image avatar

Nara

Zendesk Customer Care

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.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post