---
title: "Create versions associated with the environment"
method: POST
path: "/projects/{projectId}/environments/{environmentId}/versions"
tags: ["Environment"]
---

# Create versions associated with the environment

`POST /projects/{projectId}/environments/{environmentId}/versions`

Create versions associated with the `{environmentId}` environment.
At least one version always exists.
When multiple versions exist, it means that multiple versions of an app are deployed.
The deployment target type denotes whether staged deployment is supported.

## Path parameters

- `projectId` string, required
- `environmentId` string, required

## Request body

- VersionCreateInput
  - `routing` object — Configuration about the traffic routed to this version
    - `percentage` integer — The percentage of traffic routed to this version

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

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