Docs
Add File
POST /Drives/{driveId}/files
POST
/Drives/{driveId}/filesCreates 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
| Field | Type | Required | Description |
|---|---|---|---|
| driveId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| partitionKey | uuid | Optional | |
| type | string | Optional | |
| name | string | Optional | |
| description | string | Optional | |
| path | string | Optional | |
| fileFormat | string | Optional | |
| fileSize | integer | Optional | |
| assignedTo | uuid | Optional | |
| dueDate | date-time | Optional | |
| url | string | Optional |
Response
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| sasUri | uri| null |