Incoming Phone Numbers
Update an incoming phone number
Update an incoming phone number.
Permissions
The API token must include the following scopes: Numbers.
post/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}
Path parameters
AccountSidstring uuid required
The unique identifier for the account that is associated with this phone number.
Sidstring uuid required
The unique identifier of the phone number.
Request body
Example request
{
"AddressSid": "b3877c40-da60-4998-90ad-b792e98472ad",
"FriendlyName": "310-338-6745",
"SmsApplicationSid": "b3877c40-da60-4998-90ad-b792e98472sa",
"SmsFallbackMethod": "POST",
"SmsFallbackUrl": "http://example.com/sms-fallback",
"SmsMethod": "POST",
"SmsUrl": "http://example.com/sms",
"StatusCallback": "example.com",
"StatusCallbackMethod": "POST",
"TrunkSid": "b3877c40-da60-4998-90ad-b792e98472tr",
"VoiceApplicationSid": "b3877c40-da60-4998-90ad-b792e98472va",
"VoiceFallbackMethod": "POST",
"VoiceFallbackUrl": "example.com",
"VoiceMethod": "POST",
"VoiceUrl": "http://your-application.com/docs/voice.xml"
}Response
The request has succeeded.
Example response
{
"account_sid": "b3877c40-da60-4998-90ad-b792e98472ac",
"address_sid": "b3877c40-da60-4998-90ad-b792e98472ad",
"api_version": "2010-04-01",
"capabilities": {
"Voice": true,
"SMS": true,
"MMS": true,
"Fax": true
},
"date_created": "Tue, 25 Sept 2018 23:00:00 +0000",
"date_updated": "Wed, 26 Sept 2018 22:00:00 +0000",
"emergency_address_sid": "b3877c40-da60-4998-90ad-b792e98472ea",
"friendly_name": "310-338-6745",
"identity_sid": "b3877c40-da60-4998-90ad-b792e98472ri",
"phone_number": "+13103386745",
"sid": "b3877c40-da60-4998-90ad-b792e98472pn",
"sms_application_sid": "b3877c40-da60-4998-90ad-b792e98472sa",
"sms_fallback_method": "POST",
"sms_fallback_url": "http://example.com/sms-fallback",
"sms_method": "POST",
"sms_url": "http://example.com/sms",
"status_callback": "example.com",
"status_callback_method": "POST",
"trunk_sid": "b3877c40-da60-4998-90ad-b792e98472tr",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/IncomingPhoneNumbers/b3877c40-da60-4998-90ad-b792e98472pn.json",
"voice_application_sid": "b3877c40-da60-4998-90ad-b792e98472va",
"voice_fallback_method": "POST",
"voice_fallback_url": "example.com",
"voice_method": "GET",
"voice_url": "http://your-application.com/docs/voice.xml"
}