file
Create
Uploads a file or creates an empty folder.
Path parameter
- destination: the destination path of the upload/folder creation relative to the user data root. destination should point to a (would-be) directory, otherwise NotADirectoryError will occur. (default value is ”/”, the user data root directory itself)
Additional input
- file: the file to be uploaded (optional)
- if a file is attached, uploads the file to the destination path Returns a Content Pydantic object containing information on the file uploaded
- if no file is attached, creates an empty folder following the destination path Returns a Content Pydantic object containing information on the newly-created folder
POST
/
fm
/
api
/
v1
/
contents
/
{destination}
Authorizations
Enter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here
Path Parameters
Body
multipart/form-data