> ## Documentation Index
> Fetch the complete documentation index at: https://docs.roark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# roark metric variant update

> Update a metric variant

Rename a variant, change its configuration, or both. Every configuration change creates a new immutable version and advances `versionId`; the response carries the advanced value. \*\*Editing one of Roark’s own variants forks it for your organization.\*\* The response carries the new variant’s `id`, which will differ from the one in the path, and `isSystem` becomes false. Roark’s variant is untouched and other organizations keep it. DELETE your fork to go back to it. Which fields are editable depends on the metric: some Roark metrics lock their prompt or output configuration, and a locked field is rejected rather than ignored.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark metric variant update <id-or-slug> <variant-id> [options]
```

> [!NOTE]
>
> Calls `PUT /v1/metric/definitions/{idOrSlug}/variants/{variantId}`

## Arguments

**id-or-slug** `string` *required*

Metric definition UUID or its stable slug.

**variant-id** `string` *required*

Variant UUID.

## Options

**--name** `string`

Rename the variant. Does not change its configuration, so `versionId` is unaffected. `Default` is reserved.

**--llm-prompt** `string`

The rubric this variant applies. LLM judge metrics only. A custom metric prompt must include a transcript variable such as `{{transcript}}` and `{{world_context}}`, which gives the judge the current date and time when it grades.

**--scale-min** `integer`

Scale minimum. SCALE output only.

**--scale-max** `integer`

Scale maximum. SCALE output only.

**--boolean-true-label** `string`

What a `true` value means. Given to the judge as its polarity rule, so keep it accurate.

**--boolean-false-label** `string`

What a `false` value means. Given to the judge as its polarity rule, so keep it accurate.

**--applicability-condition** `string`

When this metric applies, in plain words (for example "the caller asks to stop being contacted"). BOOLEAN LLM metrics only. On a conversation that does not meet it, the metric records `captureStatus: NOT_APPLICABLE` instead of a verdict, and checks on it count only the conversations it applies to. Null or empty: it applies to every conversation.

**--grades-short-calls** `switch`

Score this metric on a simulated call with fewer than 4 transcript lines or where your agent never spoke (custom metrics only, not ones that judge the audio). Such calls skip every other metric. Default false.

**--max-classifications** `integer`

Maximum classifications returned. CLASSIFICATION output only.

**--change-reason** `string`

Free-text audit note recorded on the new version.

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark metric variant update <id-or-slug> <variant-id>
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.