curl --request PATCH \
--url https://app.happyrobot.ai/api/v1/numbers/{id}/mode \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"mode": "direct_transfer"
}'
{
"id": "<string>",
"organization_id": "<string>",
"number": "+14155552671",
"sid": "<string>",
"locality": "San Francisco",
"mode": "direct_transfer",
"use_case_config": {
"id": "<string>",
"prompt_routes": [
{
"probability": 50,
"prompt_id": "<string>",
"model_id": "<string>"
}
],
"agent_routes": [
{
"probability": 50,
"id": "<string>"
}
]
},
"title": "<string>"
}
curl --request PATCH \
--url https://app.happyrobot.ai/api/v1/numbers/{id}/mode \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"mode": "direct_transfer"
}'
{
"id": "<string>",
"organization_id": "<string>",
"number": "+14155552671",
"sid": "<string>",
"locality": "San Francisco",
"mode": "direct_transfer",
"use_case_config": {
"id": "<string>",
"prompt_routes": [
{
"probability": 50,
"prompt_id": "<string>",
"model_id": "<string>"
}
],
"agent_routes": [
{
"probability": 50,
"id": "<string>"
}
]
},
"title": "<string>"
}
Your API key for authentication. Use Bearer format.
"Bearer API_KEY"
ID of the number.
24
Body
The body is of type object
.
200
The response is of type object
.
Was this page helpful?