API: List all roles

00001012052600 · Info · (manual) · #api #manual #zettelstore

To list all roles used in the Zettelstore just send a HTTP GET request to the endpoint /r. If successful, the output is a JSON object:

# curl

The JSON object only contains the key "role-list" with the value of a sorted string list. Each string names one role.

Please note that this structure will likely change in the future to be more compliant with other API calls.