Upload file from URL
Downloads the file at url and attaches it to a company, fund, funding round, investment, valuation or proceed. The URL has to serve the file itself: a link that answers with a web page is rejected, and nothing is stored for it. entity_id is always the id of the record named by entity_type – for companies that means the company_id, not a portfolio_company_id. Uploading a file that is already attached to the same record returns the existing file with a 200 instead of storing a second copy.
Request Body
application/jsonOptionalurlRequiredstringDirect link to the file. It must return the file itself – links to a web page or a preview are rejected.
"uri"entity_typeRequiredstringType of record to attach the file to
"companies" | "funds" | "funding_rounds" | "investments" | "valuations" | "proceeds" | "portfolio_fund_events"entity_idRequiredstringID of the record to attach the file to, of the type given in entity_type. For companies this is the company_id – the company is shared across funds, so a portfolio_company_id is not accepted here and will not be found.
"^\\d+$"namestringFile name to store it under. Defaults to the name the source server gives, or the last segment of the URL.
1tagsarray<string>Tags to attach. Fundra tags the file automatically as well, so this is only needed to force a particular tag.
headersobjectOptional headers object needed to retrieve the file from the URL
Credentials
The same file is already attached to this record; the existing file is returned