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

# Create new environment

`POST /environments`

Create new environment action

## Request body

- Environment — unresolved $ref

## Response `200`

successful operation

- Environment — unresolved $ref

## Other responses

- `400` — trying to create a environment with an already existing ID

## Changes

- **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/c904eafe9b4e/schema)
