Docs

Add File Format

POST /drives/{eventId}/files/{fileId}/versions/{versionId}/formats

POST/drives/{eventId}/files/{fileId}/versions/{versionId}/formats

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.

Uploads an additional format (file representation) to an existing version. A version can hold multiple formats — for example, the same document in PDF, Word, and image form.

Returns a SAS URI for uploading the binary. After receiving the response, upload the file to the sasUri using an HTTP PUT request.

Path Parameters

FieldTypeRequiredDescription
driveIdGuidRequiredThe event ID.
fileIdGuidRequiredThe file ID.
versionIdGuidRequiredThe version ID.

Request Body

FieldTypeRequiredDescription
fileFormatstringRequiredMIME type of the format being uploaded (e.g., `"application/pdf"`, `"image/jpeg"`).
fileSizeintRequiredSize of the file in bytes. Must be greater than zero.

Example Response

{
  "sasUri": "https://storage.blob.core.windows.net/..."
}

Response Fields

FieldTypeDescription
sasUristringTime-limited write SAS URI. Upload the file binary to this URI via `PUT`.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token.
NOT_FOUND404File or version not found.
BAD_REQUEST400Invalid file format or file size.