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

# Update a benchmark

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

Update a benchmark for a project. The user must have `edit` permissions for the project, or provide a valid project key for the project (no rename).

## Path parameters

- `benchmark` string, required
- `project` string, required

## Request body

- JsonUpdateBenchmark
  - `archived` boolean, nullable — Set whether the benchmark is archived.
  - `name` string
  - `slug` string

## Response `200`

successful operation

- JsonBenchmark
  - `archived` string, date-time
  - `created` string, date-time, required
  - `modified` string, date-time, required
  - `name` string, required
  - `project` string, uuid, required
  - `slug` string, required
  - `uuid` string, uuid, required

## Other responses

- `4XX` — Error
- `5XX` — Error

---

[API](https://skmtc.net/bencherdev/apis/bencher-api.md) · [All operations](https://skmtc.net/bencherdev/apis/bencher-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bencherdev/bencher-api/versions/84086e99e6cd/schema)
