Docs

Add File

POST /Drives/{driveId}/files

POST/Drives/{driveId}/files

Creates a file record in a partition and returns its id, plus an upload address for the content of a regular file; a caller who is a crew member is added to the file with admin access. Use Drives_AddFileVersion to upload a new version of an existing file. The partition key comes from Drives_GetDrivePartition. Needs edit or admin access to the target location.

Path Parameters

FieldTypeRequiredDescription
driveIduuidRequired

Request Body

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

Response

FieldTypeDescription
iduuid
sasUriuri| null