{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-ai-gateway-api-key-update-parameters-schema.json",
  "title": "AiGatewayApiKeyUpdateParameters",
  "description": "Parameters for updating an AI Gateway API key.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-aigatewayapikeyresources-api-openapi.yml#/components/schemas/AiGatewayApiKeyUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AiGatewayApiKeyUpdateProperties",
      "description": "API key properties to update."
    }
  },
  "$defs": {
    "AiGatewayApiKeyUpdateProperties": {
      "type": "object",
      "description": "Properties for updating an AI Gateway API key.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "Display name of the key."
        },
        "state": {
          "type": "string",
          "description": "Subscription state."
        },
        "expirationDate": {
          "type": "string",
          "format": "date-time",
          "description": "Optional expiration time."
        },
        "primaryKey": {
          "type": "string",
          "format": "password",
          "description": "Replacement primary key value.",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "secondaryKey": {
          "type": "string",
          "format": "password",
          "description": "Replacement secondary key value.",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        }
      }
    }
  }
}