v2
latestOpenAPI 3.1.02026-07-313981108.2 KBPhone Numbers
Update Number
To attach or detach assistant to the number, or enable or disable the inbound/outbound call.
put/assistants/v1/numbers/{id}
Path parameters
idstring required
The ID of the number to update.
Request body
Example request
{
"assistantId": "a12f9c88-c155-461f-9771-4d240cdc9a04",
"inboundEnabled": true,
"outboundEnabled": true
}Response
Successfully updated the number.
Example response
{
"_id": "a12f9c88-c155-461f-9771-4d240cdc9a04",
"teamId": "1f7b1b1b1b1b1b1b1b1b1b1b",
"number": "+1234567890",
"provider": {
"name": "twilio"
},
"assistantId": "a12f9c88-c155-461f-9771-4d240cdc9a04",
"inboundEnabled": true,
"outboundEnabled": true,
"label": "friendly-name-1"
}