{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-update-metric-variant-input-schema.json",
  "title": "UpdateMetricVariantInput",
  "description": "Change a variant's name, its configuration, or both. Every configuration change creates a new immutable\nversion and advances `versionId`.\n\nEditing Roark's own variant forks it for your organization first: the response carries the new variant's id,\nand other organizations keep the original. Delete that variant to go back to Roark's version.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-metric-api-openapi.yml#/components/schemas/UpdateMetricVariantInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Rename the variant. Does not change its configuration, so `versionId` is unaffected. `Default` is reserved."
    },
    "llmPrompt": {
      "type": "string",
      "maxLength": 20000,
      "description": "The rubric this variant applies. LLM judge metrics only."
    },
    "scaleMin": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Scale minimum. SCALE output only."
    },
    "scaleMax": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Scale maximum. SCALE output only."
    },
    "booleanTrueLabel": {
      "type": "string",
      "maxLength": 200,
      "description": "What a `true` value means. Given to the judge as its polarity rule, so keep it accurate."
    },
    "booleanFalseLabel": {
      "type": "string",
      "maxLength": 200,
      "description": "What a `false` value means. Given to the judge as its polarity rule, so keep it accurate."
    },
    "maxClassifications": {
      "type": "integer",
      "minimum": 1,
      "description": "Maximum classifications returned. CLASSIFICATION output only."
    },
    "changeReason": {
      "type": "string",
      "maxLength": 500,
      "description": "Free-text audit note recorded on the new version."
    }
  },
  "additionalProperties": false
}