---
title: "Create a new simulation scenario version"
method: POST
path: "/v1/{organization}/simulation/scenario/{simulation_scenario_id}/version/"
tags: ["Simulation"]
---

# Create a new simulation scenario version

`POST /v1/{organization}/simulation/scenario/{simulation_scenario_id}/version/`

Create a new version of the simulation scenario.

#### Permissions
This endpoint requires the following permissions:
* `Simulation:ModifySimulationScenario` for the simulation scenario.

## Path parameters

- `organization` string, required
- `simulation_scenario_id` string, required — The ID of the simulation scenario to create a version for.

## Query parameters

- `version` integer, nullable — The version number of the new version. If specified, this endpoint throws an error if the next version in the database doesn't equal to the value of this parameter.

## Headers

- `x-mongo-cluster-name` string, nullable — The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
- `Sec-WebSocket-Protocol` string[]

## Request body

- SrcAppEndpointsSimulationCreateSimulationScenarioVersionRequest
  - `objective` string, required
  - `instructions` string, required
  - `initial_message_type` 'user-message' | 'external-event' | 'skip', required
  - `conversation_starts_at` string, date-time, nullable, required — The time at which the conversation starts. This must be a timestamp in UTC. If not specified, the current server time is used.

## Response `201`

Succeeded.

- SrcAppEndpointsSimulationCreateSimulationScenarioVersionResponse
  - `version` integer, required — The version number of the created simulation scenario version.

## Other responses

- `400` — The specified version number is not the expected next version to be created.
- `401` — Invalid authorization credentials.
- `403` — Missing required permissions.
- `404` — The specified organization or simulation scenario does not exist.
- `422` — Invalid request path parameter, request query parameter, or request body failed validation.
- `429` — The user has exceeded the rate limit of 500 requests per minute for this endpoint.
- `503` — The service is going through temporary maintenance.

---

[API](https://skmtc.net/amigo/apis/amigo-api.md) · [All operations](https://skmtc.net/amigo/apis/amigo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amigo/amigo-api/revisions/f0f28319e448/schema)
