Create Opportunity File (from URL)
Upload a file to an opportunity by providing its URL
Note: The /requests path is an alias for /opportunities and will continue to work until users are individually notified and migrated.
Authentication
x-api-keystring
API Key authentication via header
Path parameters
opportunityId
Opportunity identifier
Request
This endpoint expects an object.
url
URL of the file to upload
name
Name of the file
isArchived
Whether the file is archived
phaseInstanceId
Optional. The ID of the phase instance to use. If provided, the phase does not need to be started to upload a file. You can gather phase instance ids from the get opportunity endpoint.
Response
Successful response
id
File identifier
name
File name
downloadUrl
URL to download the file
type
File type
updatedAt
Last update timestamp
createdAt
Creation timestamp
metaData
source
File source (e.g., INTERNAL)
createdByUser
isArchived
Whether the file is archived
