file
Get
Retrieves file/directory information or downloads a file.
Path parameter
- path: the path to the file/directory relative to the user data root (default value is ”/”, the user data root directory itself)
Query parameters
- option: controls the behavior of the API
- default (None): retrieves file/directory information Returns a Content Pydantic object containing information on the target path
- ”download”: downloads a file (directory download is not possible) Streams the file content or does the download and returns nothing, depending on the client request
GET
/
fm
/
api
/
v1
/
contents
/
{path}
Authorizations
Authorization
string
headerrequiredEnter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here
Path Parameters
path
string
requiredQuery Parameters
option
string
show_hidden_files
boolean
default: trueResponse
200 - application/json
content_info
object
root
string
default: /home/jovyan