files

Create Project File (from URL)

Upload a file to a project by providing its URL

post/projects/{project_id}/files

Request

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

Path parameters

project_idinteger required

Project 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 project 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.