Example: Using the Dovetail API to Upload a file attachment to a case.
Method: POST
URL: /api/v1/cases/{CaseID}/attachments
Description: Log an attachment to a case. Uploads a file attachment to a case. This endpoint expects a multipart/form-data encoded POST request from the client similar to how web browsers upload files from an input type=file form element.
References:
Example: using curl
curl -X POST -u "username:password" --form file=@"C:/temp/file.ext" https://myTenant.dovetailnow.com/api/v1/cases/CASE_ID/attachments
Example: using curl
curl --location 'https://mytenant.dovetailnow.com/api/v1/cases/1393/attachments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ZG99999haWwtYXB99999dG1laW4=' \
--form 'employee="21110"' \
--form 'file=@"/C:/temp/file.docx"' \
--form 'createEvents="false"' \
--form 'userName="msmith"'
Example: Using Postman
See attached postman collection
