---
title: "Download a scenario"
method: GET
path: "/scenarios/{app_id}/download"
tags: ["scenarios"]
---

# Download a scenario

`GET /scenarios/{app_id}/download`

Download a scenario.

## Path parameters

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

## Query parameters

- `name` string, required — The name of the scenario you want to download.
- `file_type` 'miroscen' | 'gdx' | 'csv' | 'xlsx'
- `owner` string, nullable — The owner of the scenario you want to download (by default, the logged in user).

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Duplicate records found when writing GDX file
- `500` — Internal Server Error

## Changes

- **2026-06-30** `358e5609409b` — 1 info
  - api operation id `download_scenario` removed and replaced with `download_scenario_scenarios__app_id__download_get`
- **2024-10-07** `42a5a480092d` — 1 breaking, 5 info
  - the `query` request parameter `file_type` was restricted to a list of enum values
  - added the new enum value `csv` to the `query` request parameter `file_type`
  - added the new enum value `gdx` to the `query` request parameter `file_type`
  - added the new enum value `miroscen` to the `query` request parameter `file_type`
  - …2 more
- **2023-08-15** `6befde16ec1c` — 2 info
  - `query` request parameter `owner` list-of-types was widened by adding types `null`
  - for the `query` request parameter `owner`, the type/format was generalized from `string`/`` to ``/``
- **2022-06-16** `331d92523899` — 1 breaking
  - for the `query` request parameter `name`, the maxLength was decreased from `64` to `63`
- **2022-04-25** `77bcd6c895ba` — 1 info
  - for the `query` request parameter `name`, the maxLength was increased from `63` to `64`

[Full history](https://skmtc.dev/gams-dev/apis/miro-server-api/changes/scenarios/:app_id/download/get.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)
