---
title: "Modify scenarios for a Benchmark."
method: POST
path: "/v1/benchmarks/{id}/scenarios"
tags: ["Benchmark"]
---

# Modify scenarios for a Benchmark.

`POST /v1/benchmarks/{id}/scenarios`

Add and/or remove Scenario IDs from an existing Benchmark.

## Path parameters

- `id` string, required

## Request body

- BenchmarkScenarioUpdateParameters
  - `scenarios_to_add` string[], nullable — Scenario IDs to add to the Benchmark.
  - `scenarios_to_remove` string[], nullable — Scenario IDs to remove from the Benchmark.

## Response `200`

OK

- BenchmarkDefinitionView — A BenchmarkDefinitionView represents a grouped set of Scenarios that together form a Benchmark.
  - `id` string, required — The ID of the Benchmark.
  - `name` string, required — The name of the Benchmark.
  - `scenarioIds` string[], required — List of Scenario IDs that make up the benchmark.
  - `metadata` object, required — User defined metadata to attach to the benchmark for organization.
  - `required_environment_variables` string[] — Required environment variables used to run the benchmark. If any required environment variables are missing, the benchmark will fail to start.
  - `required_secret_names` string[] — Required secrets used to run the benchmark. If any required secrets are missing, the benchmark will fail to start.
  - `is_public` boolean — Whether this benchmark is public.
  - `attribution` string — Attribution information for the benchmark.
  - `description` string — Detailed description of the benchmark.
  - `status` 'active' | 'archived', required

## Changes

- **2026-05-27** `d3ddb452754c` — 2 breaking
  - the request property `scenarios_to_add` became not nullable
  - the request property `scenarios_to_remove` became not nullable
- **2026-04-01** `c33fa67077f6` — 1 info
  - added the required property `status` to the response with the `200` status

[Change history](https://skmtc.dev/runloopai/apis/runloop-api/changes/v1/benchmarks/:id/scenarios/post.md)

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/078a027e147f/schema)
