---
title: "Update a variant"
method: PATCH
path: "/v0/projects/{project}/benchmarks/{benchmark}/variants/{variant}"
tags: ["projects", "variants"]
---

# Update a variant

`PATCH /v0/projects/{project}/benchmarks/{benchmark}/variants/{variant}`

## Request

- The document declares no server URL.
- Auth: none declared

Update a variant for a benchmark. The user must have `edit` permissions for the project, or provide a valid project key for the project. Archiving a variant hides it without losing its history, and a report that names the variant again unarchives it.

## Path parameters

- `benchmark` string, required
- `project` string, required
- `variant` string, uuid, required

## Request body

- JsonUpdateVariant
  - `archived` boolean, nullable: Set whether the variant is archived.

## Response `200`

successful operation

- JsonVariant
  - `archived` string, date-time
  - `benchmark` string, uuid, required
  - `created` string, date-time, required
  - `modified` string, date-time, required
  - `parameters` ParameterSet, required
  - `uuid` string, uuid, required

## Other responses

- `4XX`: Error
- `5XX`: Error

## Changes

- **2026-09-18** `2ca549d2a218`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bencherdev/apis/bencher-api/changes/v0/projects/:project/benchmarks/:benchmark/variants/:variant/patch.md)

---

[API](https://skmtc.dev/bencherdev/apis/bencher-api.md) - [All operations](https://skmtc.dev/bencherdev/apis/bencher-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bencherdev/apis/bencher-api/revisions/538b39b8d755?raw)
