Files

Upload a file

Upload a file of up to 80 MiB in one request: the body is its bytes, Content-Type its type and Content-Length is required. A path that already has a file is a 409 unless overwrite is true. Its storage is charged to the project from credits; without credits, or at a spend limit, the upload is refused with 402 before any byte is accepted. Larger files use an upload session.

post/v1/files

Request

  • Base URL
    https://api.dexto.ai
  • URL
    https://api.dexto.ai/v1/files
  • Auth
    HTTP bearer

Query parameters

pathstring required

The file's path in the project, such as reports/q3.pdf.

overwrite'true' | 'false'
expires_atstring date-time

Delete the file at this time. Files are kept until deleted when omitted.

Headers

Content-Lengthstring required
X-Content-SHA256string

Request body application/octet-stream

string binary required

Response

Replaced the file at this path.

content_typestring required
created_atstring date-time required
expires_atstring date-time nullable required
idstring uuid required
metadataobject required
object'file' required
pathstring required
sha256string required
size_bytesinteger required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.