Create a remote file and link it to an item

POST {{baseUrl}}/files/remote

Creates a new empty file in the remote location (googledrive) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file.

Request Body

[{"name"=>"file_type", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"title", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"item_type", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"item_id", "value"=>"<integer>", "datatype"=>"string"}, {"name"=>"remote_location", "value"=>"<string>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:7195,&quot;user_id&quot;:456,&quot;deal_id&quot;:36,&quot;person_id&quot;:1,&quot;org_id&quot;:15,&quot;product_id&quot;:1,&quot;activity_id&quot;:1,&quot;lead_id&quot;:&quot;adf21080-0e10-11eb-879b-05d71fb426ec&quot;,&quot;log_id&quot;:null,&quot;add_time&quot;:&quot;2020-02-21 11:52:28&quot;,&quot;update_time&quot;:&quot;2020-02-21 11:52:24&quot;,&quot;file_name&quot;:&quot;&quot;,&quot;file_type&quot;:&quot;gdoc&quot;,&quot;file_size&quot;:0,&quot;active_flag&quot;:true,&quot;inline_flag&quot;:false,&quot;remote_location&quot;:&quot;googledocs&quot;,&quot;remote_id&quot;:&quot;1gzyh6ExBxIb4RBZbAZxsrrBp45yuXhZWq3Zash5b75c&quot;,&quot;cid&quot;:&quot;&quot;,&quot;s3_bucket&quot;:&quot;&quot;,&quot;mail_message_id&quot;:&quot;&quot;,&quot;mail_template_id&quot;:&quot;&quot;,&quot;deal_name&quot;:&quot;test deal&quot;,&quot;person_name&quot;:&quot;&quot;,&quot;org_name&quot;:&quot;test org&quot;,&quot;product_name&quot;:&quot;&quot;,&quot;lead_name&quot;:&quot;Test lead name 1&quot;,&quot;url&quot;:&quot;https://app.pipedrive.com/api/v1/files/7195/download&quot;,&quot;name&quot;:&quot;Test title for remote file&quot;,&quot;description&quot;:&quot;&quot;}}