Files

Either multipart/form-data with the file under file plus accountId, name (defaults to the file name) and parentId, or JSON with a public url the file is fetched from (100 MB cap). Large files go through the provider's resumable upload.

post/v1/files

Request

  • Base URL
    https://zernio.com/api
  • URL
    https://zernio.com/api/v1/files
  • Auth
    HTTP bearer

Request body

accountIdstring required
namestring required
contentTypestring required
parentIdstring

Target folder; the root when omitted.

urlstring uri required
convertTo'application/vnd.google-apps.document' | 'application/vnd.google-apps.spreadsheet' | 'application/vnd.google-apps.presentation'

Google Drive only: import the bytes as a Docs, Sheets or Slides file (a text or Office file becomes an editable document). OneDrive answers 400.

Example request

{
  "contentType": "image/png"
}

Response

The stored file

Changes