Creating tickets with attachments | Community
Skip to main content

Creating tickets with attachments

  • February 18, 2021
  • 2 replies
  • 0 views

Hi All

We are looking to understand if anyone has a way of creating tickets in bulk with an attachment (different one each time)? Had a look around and can see that you can create tickets with an API - however I'm limited with coding skills and each time the attachment will not be the same.

 

2 replies

  • February 22, 2021

Hey there Dawn!

Fantastic question, and absolutely possible. You're already on the right track by using our API for bulk ticket creation, and it turns out you can also upload files in bulk using our Upload Files API endpoint shown here.

With each uploaded file, a token is created that can be used in your Create Many Tickets requests like this. With these tokens, you can use each unique token in every ticket that you plan on creating, which means you get exactly what you're aiming for: Bulk creation of tickets but each ticket will have its own unique attachment that can't be shared with any other tickets, awesome.

Let us know if there's anything else we can help out with!


  • March 10, 2021

Thanks a lot for sharing the bulk uploading tool's link https://developer.zendesk.com/rest_api/docs/support/attachments#upload-files,,

I was going to create a similar question but this link saved me time.

Regards