---
title: "Update traffic split"
method: PATCH
path: "/v1alpha1/project/{projectID}/environment/traffic"
tags: ["EnvironmentPublicApi", "Public-Docs"]
---

# Update traffic split

`PATCH /v1alpha1/project/{projectID}/environment/traffic`

Update the traffic split configuration for all environments on the target assistant. The request can be keyed by environment ID or alias. Percentages must sum to 100.

## Path parameters

- `projectID` string, required

## Request body

- SplitTrafficProjectEnvironmentRequest

## Response `200`

The updated traffic split configuration, keyed by environment ID.

- ProjectEnvironmentTrafficResponse
  - `data` object, required

---

[API](https://skmtc.dev/voiceflow/apis/general-runtime.md) · [All operations](https://skmtc.dev/voiceflow/apis/general-runtime/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voiceflow/general-runtime/revisions/6b1c4f778c56/schema)
