{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arena-predictions-com/json-schema/arena-predictions-com-key-rotate-request-schema.json",
  "title": "KeyRotateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arena-predictions-com-api-keys-api-openapi.yml#/components/schemas/KeyRotateRequest",
  "type": "object",
  "properties": {
    "graceSeconds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 86400,
      "default": 0,
      "description": "How long the old key keeps working. 0 revokes it at once."
    },
    "expiresInDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "description": "The new key's life. Omitted: the same life as the old key (at most 365 days), or none when the old key had none."
    }
  }
}