Upload a file

Uploads an allowed document or media file and creates its file-manager record for the active school.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects a multipart form containing a file.
filefileRequired
captionstring or nullOptional
diskenum or nullOptional
Allowed values:
file_category_idinteger or nullOptional

Response

File uploaded and recorded.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error