diff --git a/docs/web_api.md b/docs/web_api.md index b2f51ec..ae19884 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -1559,6 +1559,24 @@ A list of objects, where each object contains file data. ] ``` +#### List registered roots +Reports all "root" directories registered with Moonraker. Information +such as location on disk and permissions are included. + +HTTP request: +```http +GET /server/files/roots +``` + +JSON-RPC request: +```json +{ + "jsonrpc": "2.0", + "method": "server.files.roots", + "id": 4644 +} +``` + Returns: A list of objects, where each object contains file data: @@ -1592,25 +1610,6 @@ A list of objects, where each object contains file data: ] ``` - -#### List registered roots -Reports all "root" directories registered with Moonraker. Information -such as location on disk and permissions are included. - -HTTP request: -```http -GET /server/files/roots -``` - -JSON-RPC request: -```json -{ - "jsonrpc": "2.0", - "method": "server.files.roots", - "id": 4644 -} -``` - #### Get gcode metadata Get metadata for a specified gcode file. If the file is located in a subdirectory, then the file name should include the path relative to