---
title: "Update the version"
method: PATCH
path: "/projects/{projectId}/environments/{environmentId}/versions/{versionId}"
tags: ["Environment"]
---

# Update the version

`PATCH /projects/{projectId}/environments/{environmentId}/versions/{versionId}`

Update the `{versionId}` version.
A routing percentage for this version may be specified for staged rollouts
(if the deployment target supports it).

## Path parameters

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

## Request body

- VersionPatch
  - `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)
