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
Authorization
string
headerrequiredEnter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here
Path Parameters
destination
string
requiredBody
multipart/form-data
file
file
Response
200 - application/json
content_info
object
root
string
default: /home/jovyan