How to Adding files via RESTfull API?
Here is an example to upload an attachment to an incident by curl restful call:
curl -XPOST -H "Content-Type: text/plain" -H "Authorization: Basic ZmFsY29uOjE=" -H "Content-Disposition: attachment; filename=test.txt" -d "this is an text attachment" "">localhost:13941/.../attachments"
And you need to enable the attachment like described in the help document:
Let me know if it helps,