# POST /credit/api/setRsaPin

**Resource:** [PIN and card security](../resources/PIN-and-card-security.md)
**Service that generates the card’s PIN using an encrypted PIN block**
**Operation ID:** `setRsaPin`

Sets a new RSA Pin for the card. It validates the card status and performs the RSA Pin update operation for a customer, providing encrypted pin and relevant response information.

## Request Body

Set Rsa Pin Request

**Required:** Yes

**Content Types:** `application/json`

**Schema:** [SetRsaPinRequest](../schemas/Set/SetRsaPinRequest.md)

## Responses

| Status | Description |
|--------|-------------|
| 200 | Success |
| 400 | (reference) |
| 404 | (reference) |
| 500 | (reference) |

**Success Response Schema:**

[SetRsaPinResponse](../schemas/Set/SetRsaPinResponse.md)

