---
title: "Create a simulation unit test set"
method: POST
path: "/v1/{organization}/simulation/unit_test_set/"
tags: ["Simulation"]
---

# Create a simulation unit test set

`POST /v1/{organization}/simulation/unit_test_set/`

Create a new simulation unit test set.

#### Permissions
This endpoint requires the following permissions:
* `Simulation:CreateSimulationUnitTestSet` for the simulation unit test set.

## Path parameters

- `organization` string, required

## 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

- SrcAppEndpointsSimulationCreateSimulationUnitTestSetRequest
  - `name` string, required
  - `description` string, required
  - `unit_test_runs` UnitTestRunDescriptorInput[], required — The unit test runs that are part of this set.
    - `unit_test_id` string, required
    - `run_count` integer, required — The number of times to run the unit test.
  - `tags` object, required — The tags of the simulation unit test set.

## Response `201`

Succeeded.

- SrcAppEndpointsSimulationCreateSimulationUnitTestSetResponse
  - `simulation_unit_test_set_id` string, required — The ID of the simulation unit test set that was created.

## Other responses

- `401` — Invalid authorization credentials.
- `403` — Missing required permissions.
- `404` — The specified organization or unit test was not found.
- `409` — A simulation unit test set with the same name already exists.
- `422` — Invalid request path parameter or request body failed validation.
- `429` — The user has exceeded the rate limit of 50 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)
