Bank API
Developer Portfolio
  1. bank_api
  • bank_api
    • heart_beat
      GET
    • create_account
      POST
    • get_account_by_id
      GET
    • list_acounts
      GET
    • update_account
      PATCH
    • delete_account
      DELETE
    • create_transfer
      POST
    • create_account
      POST
    • login
      POST
    • logout
      POST
    • refresh_token
      POST
  1. bank_api

update_account

Developing
PATCH
http://localhost:8080/accounts/1

Request

Body Params application/json

Example
{
    "balance": 700
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://localhost:8080/accounts/1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "balance": 700
}'

Responses

🟢200OK
application/json
Body

Example
{
    "id": 0,
    "owner": "string",
    "currency": "string",
    "created_at": "string",
    "balance": 0
}
Modified at 2025-02-23 12:20:55
Previous
list_acounts
Next
delete_account
Built with