The direct children of a vault folder: `{folder, folders, files}`, each a vault path, sorted;
const url = 'https://example.com/datanotes/operations/list_folder/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"folder":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datanotes/operations/list_folder/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "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.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Vault-relative folder; “” is the vault root.
Responses
Section titled “Responses”Done.
object
The folder listed (“” is the vault root).
Its sub-folders, as vault paths, sorted.
Its files, as vault paths, sorted.
Example generated
{ "folder": "example", "folders": [ "example" ], "files": [ "example" ]}Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Missing or wrong bearer token.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Unknown table, view, migration, note or folder.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Ambiguous table name: it matches several tables (paths or tables lists them).
object
The tables’ folders the name matches.
The qualified tables the name matches.
Example generated
{ "error": "example", "paths": [ "example" ], "tables": [ "example" ]}Unexpected error.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}