Upload Attachments
Create Attachments using REST API
It is possible to upload attachments using REST API:
POST /UploadFile.ashx
Content-Type: multipart/form-data
Content: File
Parameters: generalId
Upload Attachments via cURL
You can upload attachments for the entity (entity ID = 42) via the following cURL request
curl -u username:password --url "https://youraccount.tpondemand.com/UploadFile.ashx" -i -X POST -H "Content-Type: multipart/form-data" -F "generalid=42" -F "file=@C:\Users\PCuser\Downloads\image.png" -F "file=@C:\Users\PCuser\Downloads\image2.png"
Note: The file path may differ depending on the Operation system you use.