---
title: "Update PIN"
method: PUT
path: "/open-api/v3/cards/{id}/pin"
tags: ["Security"]
---

# Update PIN

`PUT /open-api/v3/cards/{id}/pin`

**PIN Code Rules**

1. **Length**<br>
   The PIN must be exactly 6 digits.

2. **No repeated digits**<br>
   It must not contain any sequence of three identical digits.<br>
   Not allowed: `111`, `222`, `999`

3. **No sequential digits**<br>
   No three consecutive increasing or decreasing digits.<br>
   Examples not allowed: `123`, `234`, `789`, `890`, `098`, `321`

## Path parameters

- `id` string, required

## Request body

- UpdatePINReqDTO
  - `pin` string, required — The pin code used for transaction PIN and ATM PIN. Pin can be 6 digits long.
  - `accountId` string, required — The UUID of the Account.

## Response `200`

OK

- UpdateCardPinResponse — Update Card Pin Response resource
  - `code` string — Return code
  - `message` string — Error message
  - `data` UpdateCardPinResource — Returned data
    - `success` boolean

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/interlace/apis/core-resource.md) · [All operations](https://skmtc.dev/interlace/apis/core-resource/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/interlace/core-resource/revisions/29c08a4da357/schema)
