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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":7195,"user_id":456,"deal_id":36,"person_id":1,"org_id":15,"product_id":1,"activity_id":1,"lead_id":"adf21080-0e10-11eb-879b-05d71fb426ec","log_id":null,"add_time":"2020-02-21 11:52:28","update_time":"2020-02-21 11:52:24","file_name":"","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","person_name":"","org_name":"test org","product_name":"","lead_name":"Test lead name 1","url":"https://app.pipedrive.com/api/v1/files/7195/download","name":"Test title for remote file","description":""}}