Adds a File Attachment to a Lead API

Hi there,

Below is the reference for add a File Attachment to a Lead API :

https://api.insight.ly/v2.1/Help/Api/POST-Leads-c_id-FileAttachments-filename

 

While attaching a file to lead object there is provision only to provide  file name and lead id parameter.  There is no provision to provide the path from where the file is to be uploaded.

Can you please explain how to upload a file attachment via Rest API?

 

Thanks

Vandana.

 

0

Comments

3 comments
  • Hi Vandana - Thank you for your question! 

    I'm going to move this over to our API thread so it can be seen by the right folks!

    Thank you!

    0
    Comment actions Permalink
  • what happened with this? 

    Can files not be added to insightly via the API?

    0
    Comment actions Permalink
  • Files can be POST'ed to the API using a multipart body.  This is true of everything that supports a FileAttachment (Comments, Tasks, etc).  Our documentation could definitely be better for these POSTs.

     To upload the file, send it as mutlipart along with the normal restful parameters when POST'ing the file attachment.

    Hope this helps.

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.