---
title: "Update one"
method: PATCH
path: "/v1/banking/bank_devices/{bank_device_id}"
tags: ["Bank device"]
---

# Update one

`PATCH /v1/banking/bank_devices/{bank_device_id}`

Receives names or configurations for the a bank device

## Parameters

- `#/paths/~1v1~1banking~1bank_keys/get/parameters/0` — unresolved $ref
- `#/paths/~1v1~1banking~1bank_devices~1%7Bbank_device_id%7D/get/parameters/1` — unresolved $ref

## Request body

- object
  - `name` string
  - `blocked` boolean — Used to temporarily enable or disable the device
  - `token_length` integer — Used to configurate the device to only return tokens of this length

## Response `200`

Updated bank key

- BankDevice
  - `id` string, uuid, required
  - `holder_id` string, uuid, nullable
  - `name` string
  - `blocked` boolean, required
  - `token_length` integer, required
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `404` — The bank device is not registered on Cardda
- `422` — Invalid attributes to update

---

[API](https://skmtc.dev/cardda/apis/banking-api.md) · [All operations](https://skmtc.dev/cardda/apis/banking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cardda/banking-api/revisions/ff1aeb3fda8b/schema)
