# Update a bank account `PATCH / PUT / POST /api/v1/bank_accounts/{id}` Updates a bank account by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Bank accounts → Write**. ## Path parameters - `id` (integer, required) — ID of the bank account. ## Body parameters - `name` (string) — Display name, up to 128 characters. - `currency` (string) — One of EUR, USD, or GBP. Defaults to EUR on creation. - `iban` (string or null) — Account IBAN, up to 34 characters. - `bic` (string or null) — Bank identifier code, up to 11 characters. - `provider` (string or null) — Provider name, up to 32 characters. - `external_ref` (string or null) — Reference in your provider, up to 64 characters. - `is_active` (integer) — Use 1 for active or 0 for inactive. Defaults to 1 on creation. - `selected` (boolean) — Set true to make this the selected account. This clears the flag on other accounts. ## Request (PATCH) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PATCH \ --url "https://api.asdincloud.com/api/v1/bank_accounts/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Club operating account"}' ``` ## Request (PUT) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PUT \ --url "https://api.asdincloud.com/api/v1/bank_accounts/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Club operating account"}' ``` ## Request (POST) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/bank_accounts/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Club operating account"}' ``` ## Response **200 OK** Returns a successful update response. Example with fictional data and selected fields. ```json { "message_key": "entities.bank_account.messages.updated" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `422` — One or more fields failed validation. - `500` — The change could not be saved.