{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/firma-dev/main/json-schema/firma-dev-api-key-expire-response-schema.json",
  "title": "ApiKeyExpireResponse",
  "description": "API key expiration result",
  "x-generated": "2026-09-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firma-dev-workspaces-api-openapi.yml#/components/schemas/ApiKeyExpireResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Whether the operation succeeded"
    },
    "expired_keys": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "api_key": {
            "type": "string",
            "description": "The expired API key value"
          },
          "original_expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the key was originally set to expire"
          },
          "expired_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the key was actually expired"
          }
        }
      },
      "description": "List of expired keys with details"
    },
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "message": {
      "type": "string",
      "description": "Optional message when no pending keys exist"
    }
  },
  "required": [
    "success",
    "workspace_id"
  ]
}