Artboard
File Management

List files in a folder path

GET
/otto/api/files

Query Parameters

id?string

Base64url encoded path to the folder to list files from. If not provided, the root folder is used.

Response Body

application/json

application/json

curl -X GET "https://your.server.net/otto/api/files"
{
  "response": {
    "path": "string",
    "files": [
      {
        "id": "string",
        "name": "string",
        "type": "file",
        "size": -1.7976931348623157e+308,
        "modifiedTime": "string",
        "capabilities": {
          "canDownload": true
        }
      }
    ]
  },
  "messages": [
    {
      "code": 0.1,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}