API reference · Schema
EndpointTrafficSplitRequest
Share of requests per deployment; weights sum to 100 (unlisted ones get 0)
deploymentsarray of objectrequiredEach deployment of the endpoint at most once; deployments not listed get weight 0
1–4 items
ShowHide 2 fields of
deploymentsdeployment_idstringrequiredID of the deployment
ID with prefix dpl_
weightintegerrequiredPercentage of requests this deployment receives (0–100)
0–100
Example
{
"deployments": [
{
"deployment_id": "dpl_01jc5zq4m8k3v6x9t2w7r0b1e4",
"weight": 50
},
{
"deployment_id": "dpl_01jc5zq4m8k3v6x9t2w7r0b1e5",
"weight": 50
}
]
}Used by
- Set the share of requests each deployment receives (weights sum to 100)
PUT /v1/endpoints/{dedicated_endpoint_id}/traffic