Files
Upload File
Upload a file to a drive.
POST
Request Body
string
required
The ID of the drive to upload the file to.
string
required
The name of the file.
string
The path where the file should be stored. Defaults to the filename if not specified.
string
required
The file content encoded as a base64 string.
string
The MIME type of the file. Auto-detected from the filename if not specified.
object
Arbitrary key-value metadata to attach to the file.
string[]
An array of string tags to associate with the file.
string
An ISO 8601 timestamp for when the file should expire.
Response
string
Unique identifier for the file.
string
The ID of the drive the file belongs to.
string
The full path of the file within the drive.
string
The name of the file.
string
The MIME type of the file.
integer
The size of the file in bytes.
string
A SHA-256 hash of the file content.
string
A text preview of the file content, if available.
string[]
Tags associated with the file.
object
Custom metadata attached to the file.
string
ISO 8601 timestamp of when the file was created.
string
ISO 8601 timestamp of when the file was last updated.
