{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/epicdirectories/json-schema/epicdirectories-update-api-key-dto-schema.json",
  "title": "UpdateApiKeyDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/epicdirectories-api-keys-api-openapi.yml#/components/schemas/UpdateApiKeyDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Updated name for the API key"
    },
    "scopes": {
      "type": "array",
      "description": "Updated scopes. Omit to leave unchanged; `[]` makes the key read-only (published listings only).",
      "items": {
        "type": "string",
        "enum": [
          "write",
          "read:drafts",
          "submissions",
          "reviews",
          "payments"
        ]
      }
    },
    "expiresAt": {
      "type": "string",
      "description": "Updated expiration date"
    }
  }
}