Update an incoming phone number
Changed onChanges how an account-owned phone number is identified or routes inbound calls, messages, and faxes. Use this operation for form-encoded configuration; use SignalWire REST Update phone number for JSON configuration.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Learn more about API scopes.
Request
- Base URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01
- URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}
- AuthHTTP basic
Path parameters
Universal Unique Identifier.
The unique identifier for the account that is associated with this phone number.
Universal Unique Identifier.
The unique identifier of the phone number.
Request body application/x-www-form-urlencoded
Example request
{
"FriendlyName": "My Business Line",
"SmsFallbackMethod": "POST",
"SmsFallbackUrl": "https://example.com/sms-fallback",
"SmsMethod": "POST",
"SmsUrl": "https://example.com/sms",
"StatusCallback": "https://example.com/status",
"StatusCallbackMethod": "POST",
"VoiceFallbackMethod": "POST",
"VoiceFallbackUrl": "https://example.com/voice-fallback",
"VoiceMethod": "POST",
"VoiceReceiveMode": "voice",
"VoiceUrl": "https://example.com/voice"
}Response
The request has succeeded.
Example response
{
"api_version": "2010-04-01",
"capabilities": {
"voice": true,
"sms": true,
"mms": true,
"fax": true
},
"country_code": "US",
"date_created": "Tue, 25 Sept 2018 23:00:00 +0000",
"date_updated": "Wed, 26 Sept 2018 22:00:00 +0000",
"emergency_status": "Inactive",
"friendly_name": "(310) 338-6745",
"phone_number": "+13103386745",
"sid": "b3877c40-da60-4998-90ad-b792e98472pn",
"sms_fallback_method": "POST",
"sms_method": "POST",
"status_callback_method": "POST",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472ac/IncomingPhoneNumbers/b3877c40-da60-4998-90ad-b792e98472pn.json",
"verification_status": "Unverified",
"voice_fallback_method": "POST",
"voice_method": "POST"
}Changes
- breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - info
the
request property type was generalized fromstringto no type, and format fromuuidto no format - info
the
request property type was generalized fromstringto no type, and format fromuuidto no format - info
the
request property type was generalized fromstringto no type, and format fromuuidto no format - info
the
request property type was generalized fromstringto no type, and format fromuuidto no format - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status
- breaking
- breaking
added 'unevaluatedProperties' constraint to the request body
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the
////response property for the status
- breaking