{
  "openapi": "3.0.3",
  "info": {
    "title": "Cards API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.{{tenant}}.ext-uat1-sandbox.mycore.enfuce.com/processor",
      "description": "UAT Sandbox"
    },
    {
      "url": "https://api.{{tenant}}.eu.live.prod.mycore.enfuce.com/processor",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Cards",
      "description": "Card related operations"
    }
  ],
  "paths": {
    "/v1/cards/{card-id}/card-versions/{sequence-number}/reset-pin-counter": {
      "post": {
        "tags": [
          "Cards"
        ],
        "operationId": "resetPinCounter",
        "summary": "Reset PIN Counter",
        "description": "Send a request to this endpoint to reset the PIN counter to 1.\n\n<Note>You can configure the maximum number of incorrect PIN entries allowed. After a cardholder has reached the threshold, send a request to this endpoint to reset the counting.</Note>\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/cardIdPathParameter"
          },
          {
            "name": "sequence-number",
            "description": "Specific sequence number of the card whose PIN counter you want to reset.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful resetting of PIN counter."
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "cardIdPathParameter": {
        "name": "card-id",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/uuid"
        }
      }
    },
    "schemas": {
      "uuid": {
        "type": "string",
        "format": "uuid"
      }
    }
  }
}
