Files

Prepare file uploads

Validates up to 10 files (1GB each), persists pending records, and returns a presigned PUT URL, required headers, and an expiry per file. PUT each file's bytes to its uploadUrl with the returned headers, then call the complete endpoint with the file ids. Target a folder with folderId or folderPath (mutually exclusive); folderPath creates missing folders along the way. Pending uploads that are never completed expire and are cleaned up automatically.

post/api/v1/files/uploads

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/files/uploads
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Request body

folderIdstring nullable
folderPathstring nullable

Target folder path; missing folders are created ("mkdir -p" semantics).

Response

Per-file presigned upload instructions.

Changes

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