Link a remote file to an item
POST {{baseUrl}}/files/remoteLink
Links an existing remote file (googledrive
) to the item you supply. For more information, see the tutorial for adding a remote file.
Request Body
[{"name"=>"item_type", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"item_id", "value"=>"<integer>", "datatype"=>"string"}, {"name"=>"remote_id", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"remote_location", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":7196,"user_id":456,"deal_id":35,"person_id":1,"org_id":1,"product_id":1,"activity_id":1,"lead_id":"adf21080-0e10-11eb-879b-05d71fb426ec","log_id":null,"add_time":"2020-02-21 12:02:37","update_time":"2020-02-21 12:02:37","file_name":"Test title to remote file","file_type":"gdoc","file_size":0,"active_flag":true,"inline_flag":false,"remote_location":"googledocs","remote_id":"1gzyh6ExBxIb4RBZbAZxsrrBp45yuXhZWq3Zash5b75c","cid":"","s3_bucket":"","mail_message_id":"","mail_template_id":"","deal_name":"Test deal name","person_name":"Test person name","org_name":"","product_name":"","lead_name":"Test lead name","url":"https://app.pipedrive.com/api/v1/files/7196/download","name":"Test title for remote file","description":""}}