REST2.0 Attachments

Can anyone share experience with using REST2.0 and adding attachments to tickets?
The documentation seems pretty limited for that functionality, so anything more would help at this point.
Basic ticket creation is working fine.
Thanks for the help!

1 Like

Unfortunately, you cannot add attachments with the REST2 API yet. But I’ve just posted some pull requests to do this when replying to or commenting a ticket, and also when creating a ticket. I’ve provided two ways to add attachments: either by encoding the file in Base64 and fill the JSON payload with this Base64 encoded string, or by sending a multipart/form-data request. See pull requests #15, #16, #17 and #18 on Pull requests · bestpractical/rt-extension-rest2 · GitHub.

2 Likes

Thanks for response @Gerald_Sedrati-Dinet. I will definitely try out that PR.