files

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.

post/opportunities/{opportunity_id}/files

Request

  • Base URL: https://api.coperniq.io/v1
  • URL: https://api.coperniq.io/v1/opportunities/{opportunity_id}/files
  • Auth: API key in header x-api-key

Path parameters

opportunity_idinteger required

Opportunity identifier

Request body

urlstring uri required

URL of the file to upload

namestring

Name of the file

isArchivedboolean

Whether the file is archived

phaseInstanceIdinteger

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

idinteger required

File identifier

namestring required

File name

downloadUrlstring required

URL to download the file

typestring required

File type

updatedAtstring date-time required

Last update timestamp

createdAtstring date-time required

Creation timestamp

isArchivedboolean

Whether the file is archived

sourcestring required

File source (e.g., INTERNAL)

Changes

No recorded changes to this operation across all 1 revision of this API.