Create external file

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

Create external file.

Parameters

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

Request body

FieldTypeRequiredDescription
folder_idstringYesFolder item ID, or root. SharePoint uses sp-site:{siteId} for a site and {siteId}|{itemId} inside one.
namestringYesFile name, 1-255 characters without a slash. Creates a new file without replacing an existing one. OneDrive and SharePoint return conflict for an existing name; Google Drive creates a new item with the same name.
contentstringYesFile content, at most 10000000 characters as sent.
content_encodingstringEncoding of content: utf8 (default) or base64.
mime_typestringMIME type. Defaults from the name, else text/plain (utf8) or application/octet-stream (base64).

Responses

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