Skip to main content
POST

Overview

Creates a file entry in the Drime database after successfully uploading a file to S3/R2. This is the final step in both simple and multipart upload flows.

Request Body

string
required
The UUID filename from the S3 key (last segment)
integer
required
File size in bytes
string
required
Original filename to display to users
string
MIME type of the file
string
File extension without dot
integer
Workspace ID. Use 0 for personal workspace.
integer
Parent folder ID. Use null for root.
string
Folder path for auto-creation (overrides parentId)
integer
Original modification time of the file as a Unix epoch in milliseconds. Stored in the entry’s client_last_modified field so the original mtime survives the upload.
string
SHA-256 hex digest of the file content. Stored in the entry’s file_hash field and used for deduplication via Check File Hash.
string
EXIF metadata as base64-encoded JSON (or a raw JSON string) to attach to the entry

Response

object
The created file entry object
string
Request status (success)
If you provide relativePath, folders will be automatically created and the file placed in the correct location.