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)

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.