Upload document

Upload a document to a specified folder using form data

This operation uploads a document to the specified folder.

Please note that the root document folder ID is 0

It can accept either a file uploaded using form data or a JSON body with the filename and file data in Base64. You can choose which method works best for you.

🚧

We only accept supported file types for security reasons

The fileName must end with a recognized file extension, such as csv, txt etc...

The permitted file types are as follows:

File extension

MIME type

File type

.csv

text/comma-separated-values

Comma Separated Value file (CSV)

.doc

application/msword

Microsoft Word document

.docx

application/msword

Microsoft Word document

.dot

application/dot

Microsoft Word Document Template

.eps

application/eps

Encapsulated PostScript File

.gif

image/gif

GIF Image

.ical

text/calendar

Calendar entry

.ics

text/calendar

Calendar entry

.indd

Indesign

Indesign file

.jfi

image/jpeg

JPEG Image

.jfif

image/jpeg

JPEG Image

.jif

image/jpeg

JPEG Image

.jpe

image/jpeg

JPEG Image

.jpeg

image/jpeg

JPEG Image

.jpg

image/jpeg

JPEG Image

.mp3

audio/mpeg3

MP3 Audio

.pdf

application/pdf

PDF document

.png

image/png

PNG image

.pps

application/vnd.ms-pps

Microsoft Powerpoint

.ppsx

application/vnd.ms-powerpoint

Microsoft Powerpoint

.ppt

application/vnd.ms-powerpoint

Microsoft Powerpoint

.pptx

application/vnd.ms-powerpoint

Microsoft Powerpoint

.pub

application/octet-stream

Microsoft Publisher

.rtf

application/octet-stream

Rich Text File

.svg

image/svg+xml

Vector image

.txt

text/plain

Text file

.vcf

text/x-vcard

Contact card

.vcs

text/x-vCalendar

Calendar entry

.xls

application/vnd.ms-excel

Microsoft Excel

.xlsx

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Microsoft Excel

.xps

application/octet-stream

XML Paper Specification

Language
Authentication
Basic
base64
:
URL
Click Try It! to start a request and see the response here!