Recent searches
No recent searches
Can't solve the ticket using zendesk api
Posted Mar 07, 2022
Hello,
I have successfully tested the Zendesk API a few weeks ago (specifically adding the public and/or internal comment as well as solving the ticket).
An example of a request payload will be
{'ticket': {'comment': {'body': '<comment string>', 'public': True}, 'status': 'solved'}}
Note that this worked perfectly a few weeks ago. Now that I am testing it again - the API works when 'status' element is not passed in (ie. I was able to add a comment but can't solve the ticket regardless of whether there's an assignee or not -- I also tried to solve the ticket without adding a comment and that also failed).
Looking at the request status logs, I am getting a 422 which is weird because this worked flawlessly a few weeks ago. Any idea what could be the issue?
Thanks!
0
5 comments
Greg Katechis
Hi Mario Wijaya! If you're receiving a 422, it means that there is likely a ticket field that needs to be updated before solve. Since you already mentioned that the tickets had assignees, I won't recommend that, but that would be another reason that you would receive a 422. Is it possible that you added any tickets fields that needed to be filled out before solving since you last checked?
1
Mario Wijaya
Hi Greg,
Thanks for the information. You are right - I was able to resolve by looking at the required fields to be filled.
Thanks,
Mario
0
Greg Katechis
1
Raphaël Péguet - Officers.fr
Greg Katechis Hi Greg!
Is there a way using api/json to pass-by the custom fields requirements?
Like a custom syntax?
Triggers do pass-by the custom fields requirements..
Best regards,
Raphaël
0
Greg Katechis
0