Showing results for 
Search instead for 
Do you mean 

how to add a file to a contact ?

New Member
Posts: 4
Country: France

how to add a file to a contact ?

Hello , 

is there any possibility to add a File For a CONTACT( on the Document Tab ) using The Web API please ?

thanks !

Posts: 1,379
Country: United_Kingdom

Re: how to add a file to a contact ?

You certainly can, you'll need to first POST the documents entry to the /api/documents endpoint.

Then you can POST the file to /api/attachments/history/{id of the above entry} as multipart form data.

For more information check out the swagger documentation at {Your API URL}/swagger/index.htm - check out the supplemental files and documents categories.

Let me know if you have any issues! Good luck.
Copper Super Contributor
Posts: 195
Country: Netherlands

Re: how to add a file to a contact ?

I tried this but a POST to api/documents does not upload the file, only the history is created.
Do you have an example, please?
Inge van Gemert
ACT! Certified Consultant
The Netherlands