---
title: "Update a scenario"
method: PATCH
path: "/scenarios/{scenario_id}"
tags: ["scenarios"]
---

# Update a scenario

`PATCH /scenarios/{scenario_id}`

## Path parameters

- `scenario_id` integer, required

## Request body

- ScenarioPatchForm — This structure is used by the patch endpoint to patch a scenario
  - `description` string, nullable
  - `electrical_profile_set_id` integer, nullable
  - `infra_id` integer, nullable
  - `name` string, nullable
  - `tags` string[]

## Response `200`

The scenario was updated successfully

- ScenarioWithDetails
  - `creation_date` string, date-time, required
  - `description` string, required
  - `electrical_profile_set_id` integer
  - `id` integer, required
  - `infra_id` integer, required
  - `last_modification` string, date-time, required
  - `name` string, required
  - `study_id` integer, required
  - `tags` string[], required
  - `timetable_id` integer, required
  - `infra_name` string, required
  - `timetable_type` 'CALENDAR' | 'HOURLY', required
  - `train_schedules_count` integer, required

## Changes

> 82 revisions in range; 2 not diffed.

- **2026-06-24** `7b8ed612b922` — 1 info
  - added the required property `allOf[subschema #2]/timetable_type` to the response with the `200` status
- **2026-06-18** `a6c0f93e1713` — 1 breaking
  - removed the required property `allOf[subschema #2]/timetable_type` from the response with the `200` status
- **2026-06-18** `1bd462694f6d` — 1 info
  - added the required property `allOf[subschema #2]/timetable_type` to the response with the `200` status
- **2026-06-18** `9951504c9cd1` — 1 breaking
  - removed the required property `allOf[subschema #2]/timetable_type` from the response with the `200` status
- **2026-06-17** `274232fc1785` — 1 info
  - added the required property `allOf[subschema #2]/timetable_type` to the response with the `200` status

[Full history](https://skmtc.dev/openrailassociation/apis/osrd-editoast/changes/scenarios/:scenario_id/patch.md)

---

[API](https://skmtc.dev/openrailassociation/apis/osrd-editoast.md) · [All operations](https://skmtc.dev/openrailassociation/apis/osrd-editoast/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/revisions/e1fc96bc11fd/schema)
