# Update a custom benchmark

`PATCH /v1/benchmarks/{benchmark_id}`

Changes the fields you send and keeps the rest. Send `null` to
clear `description` or `asset_type`; `name` cannot be cleared. The
scope is fixed at creation.

## Request Body

### application/json

- **object** — Send only the fields to change; an omitted field keeps its value. The
scope cannot be changed.

  - `name` (string) — New name. Surrounding whitespace is trimmed; a blank name or `null` is rejected.
  - `description` (any) — New description; `null` clears it.
  - `asset_type` (any) — New Other asset label; `null` clears it. A `hero` benchmark cannot
have one (`422 HERO_ASSET_TYPE`).


## Responses

### 200 — The updated benchmark

**application/json**

- **object** — A custom benchmark: a set of your own images that other images are
ranked against. Custom benchmarks live in your organization's default
workspace.

  - `id` (string, required)
  - `name` (string, required)
  - `description` (any, required)
  - `scope` (enum: "hero" | "carousel", required) — The image type a custom benchmark holds and scores: `hero` or
`carousel`. It is fixed when the benchmark is created.

  - `asset_type` (any, required) — Label for a benchmark of Other carousel assets, such as `Recipe`;
`null` for a hero benchmark or a standard carousel benchmark.

  - `image_count` (integer, required) — Visible images in the benchmark.
  - `minimum_images` (integer, required) — Images needed before the benchmark can score.
  - `recommended_images` (integer, required) — Images recommended for a stable benchmark.
  - `created_at` (string, required)
  - `updated_at` (string, required)
  - `last_scoring` (any, required) — The latest scoring of the benchmark's own images; `null` before the
first one.


### 400 — Check `error_code`:
  - NO_DEFAULT_PORTFOLIO: your organization has no default portfolio
  - NO_DEFAULT_WORKSPACE: your default portfolio has no default workspace


**application/json**

- **object** — Standardized error format for all `/v1/*` endpoints. `error_code` is a
stable SCREAMING_SNAKE_CASE identifier clients can switch on.

  - `detail` (string) — Human-readable error message
  - `status_code` (integer) — HTTP status code
  - `error_code` (string) — Stable machine-readable error code
  - `request_id` (any) — Request identifier for correlation
  - `extra` (any) — Endpoint-specific additional context. For example,
IMAGE_DOWNLOAD_FAILED populates extra.failed_urls with per-URL
failure reasons so clients can triage bulk submissions.

  - `timestamp` (string)

### 401 — Missing or invalid Bearer token

### 404 — Check `error_code`:
  - NOT_FOUND: custom benchmarks are not enabled for your organization
  - BENCHMARK_NOT_FOUND: no such custom benchmark in your default workspace


**application/json**

- **object** — Standardized error format for all `/v1/*` endpoints. `error_code` is a
stable SCREAMING_SNAKE_CASE identifier clients can switch on.

  - `detail` (string) — Human-readable error message
  - `status_code` (integer) — HTTP status code
  - `error_code` (string) — Stable machine-readable error code
  - `request_id` (any) — Request identifier for correlation
  - `extra` (any) — Endpoint-specific additional context. For example,
IMAGE_DOWNLOAD_FAILED populates extra.failed_urls with per-URL
failure reasons so clients can triage bulk submissions.

  - `timestamp` (string)

### 422 — Check `error_code`:
  - HERO_ASSET_TYPE: a `hero` benchmark was given an `asset_type`
  - VALIDATION_ERROR: request validation failed


**application/json**

- **object** — Standardized error format for all `/v1/*` endpoints. `error_code` is a
stable SCREAMING_SNAKE_CASE identifier clients can switch on.

  - `detail` (string) — Human-readable error message
  - `status_code` (integer) — HTTP status code
  - `error_code` (string) — Stable machine-readable error code
  - `request_id` (any) — Request identifier for correlation
  - `extra` (any) — Endpoint-specific additional context. For example,
IMAGE_DOWNLOAD_FAILED populates extra.failed_urls with per-URL
failure reasons so clients can triage bulk submissions.

  - `timestamp` (string)

### 429 — Rate limit exceeded for this organization
