Upload a file

POST

Headers

X-Disable-Hooks"true"RequiredDefaults to true

Request

This endpoint expects a multipart form containing a file.
spaceIdstringRequired

Space ID

environmentIdstringRequired

Environment ID

mode"import" or "export"Optional

The storage mode of file to insert, defaults to “import”

Allowed values: importexport
filefileRequired
actionslist of objectsOptional

The actions attached to the file

originenumOptional

The origin of the file, ie filesystem

Allowed values: filesystemgoogledriveboxonedrive

Response

This endpoint returns an object.
dataobject

Any uploaded file of any type

Errors