Docs

Add File

POST /drives/{eventId}/files

POST/drives/{eventId}/files

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Creates a new file in the drive. Returns the file ID and a time-limited SAS URI for uploading the file binary directly to Azure Blob Storage.

Two file types are supported:

  • File — a standard document or media file. Provide fileFormat and fileSize.
  • Deliverable — an approval-workflow file assigned to a collaborator. Provide assignedTo and dueDate instead of fileFormat/fileSize. Deliverables start with no uploaded content and track approval status.

After receiving the response, upload the file binary to the sasUri using an HTTP PUT request with the file content as the body and no Authorization header.

Paths are ID-based. Use / for the drive root. To place a file inside a folder, pass the folder's fullPath (e.g., /{folderId}).

Path Parameters

FieldTypeRequiredDescription
driveIdGuidRequiredThe event ID.

Request Body

FieldTypeRequiredDescription
partitionKeyGuidRequiredThe partition to create the file in. Pass the event ID, collaborator ID, or area ID from **Get Partitions**.
typestringRequired`"File"` or `"Deliverable"`.
namestringRequiredDisplay name for the file.
descriptionstringOptionalOptional description.
pathstringRequiredParent path where the file is created (e.g., `/` or `/{folderId}`).
fileFormatstringOptionalMIME type of the file being uploaded (e.g., `"application/pdf"`, `"video/mp4"`). Required for `File` type.
fileSizeintOptionalSize of the file in bytes. Required for `File` type.
assignedToGuidOptionalID of the collaborator assigned to deliver this file. Required for `Deliverable` type.
dueDateDateTimeOptionalDue date for the deliverable (UTC). Required for `Deliverable` type.

Example Response

{
  "id": "019700aa-0001-7000-0000-000000000001",
  "sasUri": "https://storage.blob.core.windows.net/..."
}

Response Fields

FieldTypeDescription
idGuidThe newly created file's ID.
sasUristringTime-limited write SAS URI. Upload the file binary to this URI via `PUT`. Only returned for `File` type.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token, or insufficient permissions (File.* or File.Edit required on the target path).
NOT_FOUND404The specified assignedTo collaborator does not exist on this event.
BAD_REQUEST400Invalid arguments — empty name, invalid type, or missing required fields for the file type.