Skip to main content
POST
Upload a small file

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

file
file
required

The file to upload (max 5 MB)

folder_id
integer

Folder to create the file in. Required unless file_id is sent.

file_id
integer

Existing file to add a new version to. Required unless folder_id is sent.

Response

File uploaded

data
object

A Drive file.