commit d09c6024a4c04046193d8dd82a7d4ec998f8cc9a
parent 48d2a70f4b062bf0a6d58df32f07b81e45d2b00e
Author: Antoine A <>
Date: Mon, 13 Nov 2023 23:20:17 +0000
Improve corebank account API
Diffstat:
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/core/api-corebank.rst b/core/api-corebank.rst
@@ -216,7 +216,7 @@ Account Management
:http:statuscode:`404 Not found`:
The account pointed by ``$USERNAME`` was not found.
:http:statuscode:`409 Conflict`:
- * ``TALER_EC_BANK_RESERVED_USERNAME_CONFLICT`` : a reserved username was attempted, like ``admin`` or ``bank``
+ * ``TALER_EC_BANK_RESERVED_USERNAME_CONFLICT`` : a reserved username was attempted, like ``admin`` or ``bank``.
* ``TALER_EC_BANK_ACCOUNT_BALANCE_NOT_ZERO``: the account balance was not zero.
.. _account-reconfig:
@@ -262,11 +262,12 @@ Account Management
Operation successful.
:http:statuscode:`401 Unauthorized`:
Invalid credentials or missing rights.
- :http:statuscode:`403 Forbidden`:
- * An admin account tried to make its account an exchange
- * A non-admin user tried to change properties reserved for the admin
:http:statuscode:`404 Not found`:
The account pointed by ``$USERNAME`` was not found.
+ :http:statuscode:`409 Conflict`:
+ * ``TALER_EC_BANK_PATCH_ADMIN_EXCHANGE``: an admin user has tried to become an exchange.
+ * ``TALER_EC_BANK_NON_ADMIN_PATCH_LEGAL_NAME`` : a non-admin user has tried to change their legal name.
+ * ``TALER_EC_BANK_NON_ADMIN_PATCH_DEBT_LIMIT``: a non-admin user has tried to change their debt limit.
.. _account-password-reconfig:
@@ -296,9 +297,9 @@ Account Management
The account pointed by ``$USERNAME`` was not found.
:http:statuscode:`401 Unauthorized`:
Invalid credentials or missing rights.
- :http:statuscode:`403 Forbidden`:
- The user is not allowed to change the ``$USERNAME`` password or
- the "old_password" field in the request doesn't match the current pasword.
+ :http:statuscode:`409 Conflict`:
+ * ``TALER_EC_BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD``: a non-admin user has tried to change their password whihout providing the current one.
+ * ``TALER_EC_BANK_PATCH_BAD_OLD_PASSWORD`` : provided old password does not match current password.
.. _account-list: