REST2.0 Attachments


#1

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!


#2

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 https://github.com/bestpractical/rt-extension-rest2/pulls.


#3

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