Skip to main content
POST
Upload
This endpoint is in preview: it may change without notice until it becomes part of a stable version.

Body

application/json
files
file[]
required
Required array length: 1 - 20 elements
folder_id
string<snowflake>
required
Example:

"872815618512410358"

resource_id
string<snowflake>
required
Example:

"872815618512410358"

name
string

Names the documents instead of using the filenames, whose extensions they keep nonetheless. Several documents are numbered: "Contract (1).pdf", "Contract (2).png".

visible
boolean

Whether the collaborator sees the documents, by default as the instance configures it. A collaborator always sees the documents they upload themselves.

send_notification
boolean

Whether the collaborator is notified of the documents they see, by default as the instance configures it.

Response

201 - application/json

Documents uploaded, their ids in the order of the files.

ids
string<snowflake>[]
required