422 unprocessable entity when uploading a file via zendesk api | Community
Skip to main content

422 unprocessable entity when uploading a file via zendesk api

  • December 27, 2023
  • 2 replies
  • 0 views

Julius11

hi all. i am encountering the error in the subject when trying to do an "uploads?filename=<filename>" api call. i need to create a ticket via api with a file attachment to it. please let me know if any data is required to assist me with this error mesage.

2 replies

Julius11
  • Author
  • December 28, 2023

update:

i am able to successfully upload a plaintext file but for some reason pdf, png, jpeg, and other else are all throwing an error - 422 unprocessable entity.


Greg29
  • December 28, 2023

Hi Julius! Without additional context or specific API calls, it's impossible to say what might be causing the 422. However, we do have a very clear article that explains how to successfully add images to a ticket via the ticket comments API, so I would recommend reading through that and make sure that you're doing everything correctly. If you still experience issues after going through that article, I would recommend reaching out to our Advocacy team so that they can check the logs in your specific instance to see what is causing the problem.