Gravv DOCS
Docs Agent Get Started
API Reference Update card PIN

Update card PIN

Update the PIN for a card.

PUT/v1/cards/{card_id}/pin

Path Parameters

The ID of the card to update the PIN for

Request Body

New PIN for the card

Request Examples

{
"card_pin": "934829"
}

Responses

Status Description
200 Card PIN updated successfully
400 Invalid request
404 Card not found

200 response

Confirmation message

{
"data": {
"message": "Card PIN updated successfully"
},
"error": null
}

400 response

Always null for error responses

Human-readable error message

{
"data": null,
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid PIN format",
"details": {}
}
}

404 response

Always null for error responses

Human-readable error message

{
"data": null,
"error": {
"code": "NOT_FOUND",
"message": "Card not found",
"details": {}
}
}

Authorization

  • ApiKeyAuth
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.

Ask me anything about the documentation.

ESC