Upload a file

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

X-Disable-Hooks"true"Required

Request

This endpoint expects a multipart form containing a file.
spaceIdstringRequired
Space ID
environmentIdstringRequired
Environment ID
modeenumOptional
The storage mode of file to insert, defaults to "import"
Allowed values:
filefileRequired
A binary payload containing the file contents
actionslist of objectsOptional
The actions attached to the file
originenumOptional
The origin of the file, ie filesystem
Allowed values:

Response

This endpoint returns an object.
dataobject
Any uploaded file of any type

Errors