---
title: "Create new environment"
method: POST
path: "/environments"
tags: ["api"]
---

# Create new environment

`POST /environments`

Create test environment

## Request body

- … — unresolved $ref; see the full OpenAPI document linked below

## Other responses

- `200` — unresolved $ref

## Changes

- **2024-05-21** `ab4a3143f69e` — 1 info
  - endpoint added
- **2023-08-03** `91036c61f8d9` — 1 breaking
  - api path removed without deprecation
- **2023-05-02** `356fe46f6721` — 1 breaking, 6 info
  - removed the success response with the status `200`
  - api tag `resource-api` added
  - api tag `api` removed
  - added the media type `text/yaml` to the request body
  - …3 more
- **2022-11-17** `9ee6203c38fa` — 3 info
  - added the media type `application/json` to the request body
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `400`

[Change history](https://skmtc.dev/kubeshop/apis/tracetest/changes/environments/post.md)

---

[API](https://skmtc.dev/kubeshop/apis/tracetest.md) · [All operations](https://skmtc.dev/kubeshop/apis/tracetest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kubeshop/tracetest/revisions/fad7f202ff22/schema)
