Community
Showing results for 
Search instead for 
Do you mean 
Reply

how to add a file to a contact ?

New Member
Posts: 3
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 !

Administrator
Posts: 1,372
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: 157
Country: USA

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?
Thanks,
Inge van Gemert
ACT! Certified Consultant
The Netherlands
inge@inkey.net