v1
latestOpenAPI 3.0.12026-07-226992320.0 KBPhone Numbers
Update Phone Number
Partially updates the configuration of an existing phone number. Only fields provided in the request body are updated — omitted fields remain unchanged. Returns the updated phone number record.
patch/v1/phone-numbers/{phoneNumber}
Path parameters
phoneNumberstring required
Phone number to update, in +E.164 format. Obtained from the sipPhoneNumber field in the Create, Import, or List Phone Numbers response.
Request body
Example request
{
"friendlyName": "Support Line - US",
"inboundAgentId": "awTw7UKhOsLGiDbt",
"outboundAgentId": "awTw7UKhOsLGiDbt",
"terminationSipUri": "sip.telnyx.com",
"trunkUsername": "my_trunk_user",
"trunkPassword": "tr!nkP@ssword",
"outboundPhoneNumber": "+14155552671"
}Response
OK
Example response
{
"sipPhoneNumber": "+14155552671",
"provider": "twilio",
"inboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundPhoneNumber": "+14155552671",
"active": true,
"terminationSipURI": "sip.telnyx.com",
"friendlyName": "Support Line - US"
}