Import external file

http
POST /projects/{project_reference}/external-files/{provider}/{file_id}/import

Import external file.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
providerpathYes
file_idpathYes
idempotency-keyheader

Request body

FieldTypeRequiredDescription
folder_pathstringDestination folder inside project Uploads, relative (no leading /). The Uploads root when omitted.
timestamp_prefixbooleanPrefix the stored name with a timestamp to avoid a name conflict. Defaults to false.
visibilitystringVisibility of the new upload: project, public or private. Omitted, the upload inherits the destination's visibility. Setting it needs upload admin access on the destination, and public a paid plan; a refusal imports nothing.

Responses

StatusDescription
200The created upload and its source.
400Bad request
401Unauthorized
402Payment required
403Forbidden
404Not found
409Conflict
413Payload too large
428Precondition required
429Rate limit exceeded
500Server error
503Service unavailable