{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-api-key-update-request-schema.json",
  "title": "ApiKeyUpdateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatapi-account-api-openapi.yml#/components/schemas/ApiKeyUpdateRequest",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "properties": {
    "title": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "disabled"
      ]
    },
    "expires_at": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Unix seconds; `null` for a key that never expires."
    },
    "remaining_credits": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Spending cap in USD; `null` for unlimited."
    },
    "models": {
      "type": "array",
      "description": "Public model IDs the key may call; `[]` for every model.",
      "items": {
        "type": "string"
      }
    },
    "allowed_ips": {
      "type": "array",
      "description": "IP addresses allowed to use the key; `[]` for any.",
      "items": {
        "type": "string"
      }
    }
  }
}