Docs

Add File

POST /Drives/{driveId}/files

POST/Drives/{driveId}/files

Creates a file of type File (provide fileFormat and fileSize) or Deliverable (provide assignedTo collaborator and dueDate, starts with no content and tracks approval status) and returns its ID. For a File it also returns a time-limited sasUri; upload the binary there with an HTTP PUT and no Authorization header. Paths are ID-based ("/" is the root, a folder's fullPath places the file inside it), partitionKey comes from Drives_GetDrivePartition, and File.* or File.Edit is required on the target path.

Path Parameters

FieldTypeRequiredDescription
driveIduuidRequired

Request Body

FieldTypeRequiredDescription
partitionKeyuuidOptional
typestringOptional
namestringOptional
descriptionstringOptional
pathstringOptional
fileFormatstringOptional
fileSizeintegerOptional
assignedTouuidOptional
dueDatedate-timeOptional
urlstringOptional

Response

FieldTypeDescription
iduuid
sasUriuri| null