Skip to main content
PUT
/
v1
/
phone-numbers
/
{phone_number_id}
/
routing
Set Routing Weights
curl --request PUT \
  --url https://api.example.com/v1/phone-numbers/{phone_number_id}/routing \
  --header 'Content-Type: application/json' \
  --data '
{
  "weights": [
    {
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "weight": 50
    }
  ]
}
'
{}

Headers

authorization
string | null

Path Parameters

phone_number_id
string<uuid>
required

Body

application/json

Request to set A/B routing weights on a phone number.

weights
RoutingWeightEntry · object[]
required
Required array length: 2 - 10 elements

Response

Successful Response

The response is of type Response Set Routing Weights V1 Phone Numbers Phone Number Id Routing Put · object.