commit 718fb95f8aeafe18f3559d95e1572dc4f61e43a1 parent f8b6782cd49169fffa35e4dc3062c900e1f60531 Author: MS <ms@taler.net> Date: Mon, 2 Oct 2023 12:48:22 +0200 corebank: note on account deletion rights. Diffstat:
| M | core/api-corebank.rst | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/core/api-corebank.rst b/core/api-corebank.rst @@ -184,15 +184,17 @@ Account Management .. http:delete:: /accounts/$USERNAME Delete the account whose username is ``$USERNAME``. The deletion - succeeds only if the balance is *zero*. + succeeds only if the balance is *zero*. Typically only available to + the administrator, but can be configured to allow ordinary users too. **Response:** :http:statuscode:`204 No content`: The account was successfully deleted. :http:statuscode:`403 Forbidden`: - The request specified a reserved internal username, like - ``admin`` or ``bank``. + Either the request specified a reserved internal username, like + ``admin`` or ``bank``, or the client didn't have the rights to this + call. :http:statuscode:`404 Not found`: The username was not found. :http:statuscode:`412 Precondition failed`: