# The direct children of a vault folder: `{folder, folders, files}`, each a vault path, sorted;

`POST /datanotes/operations/list_folder/` (operation `list_folder`)

The direct children of a vault folder: `{folder, folders, files}`, each a vault path, sorted;
dot-files and dot-folders are left out. `folder` "" is the vault root. A missing folder is an
error.

## Request body

`application/json`

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `folder` | `string` | no | `""` | Vault-relative folder; "" is the vault root. |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Done. | `object` (application/json) |
| 400 | Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type. | `Error` (application/json) |
| 401 | Missing or wrong bearer token. | `Error` (application/json) |
| 404 | Unknown table, view, migration, note or folder. | `Error` (application/json) |
| 409 | Ambiguous table name: it matches several tables (`paths` or `tables` lists them). | `AmbiguousName` (application/json) |
| 500 | Unexpected error. | `Error` (application/json) |

The schemas named here are in [openapi.json](https://datanotes.dev/openapi.json) (`components.schemas`).
