---
title: "Add a new scenario"
method: POST
path: "/scenarios/{app_id}/"
tags: ["scenarios"]
---

# Add a new scenario

`POST /scenarios/{app_id}/`

Add a new scenario.

## Path parameters

- `app_id` string, required — The ID of the app whose data you want to operate on.

## Response `201`

Scenario successfully added

- unknown

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — A scenario with this name already exists
- `422` — Validation Error
- `423` — The scenario is locked and cannot be overwritten
- `500` — Internal Server Error

## Changes

- **2026-06-30** `358e5609409b` — 1 breaking, 2 info
  - the `scenario_data` request property contentMediaType changed from `` to `application/octet-stream`
  - api operation id `add_scenario` removed and replaced with `add_scenario_scenarios__app_id___post`
  - the `scenario_data` request property type/format was generalized from `string`/`binary` to `string`/``
- **2026-02-24** `2ac7baf8418f` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2022-12-22** `5366dfd18e83` — 1 breaking
  - response property `detail/items/loc/items/` list-of-types was widened by adding types `integer` to media type `application/json` of response `422`
- **2021-12-08** `dae88d8eb1ce` — 1 info
  - endpoint added
- **2021-12-08** `ea0ae3dcf969` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/gams-dev/apis/miro-server-api/changes/scenarios/:app_id/post.md)

---

[API](https://skmtc.dev/gams-dev/apis/miro-server-api.md) · [All operations](https://skmtc.dev/gams-dev/apis/miro-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gams-dev/miro-server-api/revisions/358e5609409b/schema)
