> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update traffic split

> 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.



## OpenAPI

````yaml /specs/realtime/openapi.public.json patch /v1alpha1/project/{projectID}/environment/traffic
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
paths:
  /v1alpha1/project/{projectID}/environment/traffic:
    patch:
      tags:
        - EnvironmentPublicApi
        - Public-Docs
      summary: Update traffic split
      description: >-
        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.
      operationId: ProjectEnvironmentApiPublicHTTPController_updateTraffic
      parameters:
        - name: projectID
          required: true
          in: path
          description: ID of the project that owns the environments.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SplitTrafficProjectEnvironmentRequest'
      responses:
        '200':
          description: The updated traffic split configuration, keyed by environment ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectEnvironmentTrafficResponse'
      security:
        - auth: []
components:
  schemas:
    SplitTrafficProjectEnvironmentRequest:
      type: object
      additionalProperties:
        type: number
        minimum: 0
        maximum: 100
    ProjectEnvironmentTrafficResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties:
            type: number
            minimum: 0
            maximum: 100
      required:
        - data
  securitySchemes:
    auth:
      type: apiKey
      in: header
      name: authorization
      description: Voiceflow API key

````