diff options
author | Antoine A <> | 2023-11-13 23:20:17 +0000 |
---|---|---|
committer | Antoine A <> | 2023-11-13 23:20:17 +0000 |
commit | d09c6024a4c04046193d8dd82a7d4ec998f8cc9a (patch) | |
tree | e44418a955b82f72f8ee7f5a9a4c43e61e536b80 /core | |
parent | 48d2a70f4b062bf0a6d58df32f07b81e45d2b00e (diff) | |
download | docs-d09c6024a4c04046193d8dd82a7d4ec998f8cc9a.tar.gz docs-d09c6024a4c04046193d8dd82a7d4ec998f8cc9a.tar.bz2 docs-d09c6024a4c04046193d8dd82a7d4ec998f8cc9a.zip |
Improve corebank account API
Diffstat (limited to 'core')
-rw-r--r-- | core/api-corebank.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/api-corebank.rst b/core/api-corebank.rst index 665776cf..011972cc 100644 --- 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: |