# POST /debit/api/setRsaPin

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

Sets the RSA PIN for a card. Used for secure PIN management in debit channels.

## Request Body

Set Secure Pin Request

**Required:** Yes

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

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

## Responses

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

**Success Response Schema:**

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

