{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateFlagRequest",
  "title": "UpdateFlagRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The updated display name."
    },
    "description": {
      "type": "string",
      "description": "The updated description."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the flag should be enabled."
    },
    "variants": {
      "type": "array",
      "description": "Updated variant configurations.",
      "items": {
        "$ref": "#/components/schemas/VariantConfig"
      }
    },
    "segments": {
      "type": "array",
      "description": "Updated targeting segment configurations.",
      "items": {
        "$ref": "#/components/schemas/Segment"
      }
    }
  }
}