provider Api20100401IncomingPhoneNumber POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
@utdk/twilio /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
Update an incoming-phone-number instance.
Update an incoming-phone-number instance.
AccountSid path required
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).
string
Sid path required
The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update.
string

Try it

Authentication
Configure credentials for Twilio - Api
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updateincomingphonenumber
POST/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
Update an incoming-phone-number instance.

Parameters

required

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).

required

The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update.

Input

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).

The API version to use for incoming calls made to the phone number. The default is `2010-04-01`.

A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number.

The SID of the application that should handle SMS messages sent to the number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application.

The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`.

The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`.

The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`.

The URL we should call when the phone number receives an incoming SMS message.

The URL we should call using the `status_callback_method` to send status information to your application.

The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`.

The SID of the application we should use to handle phone calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa.

Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`.

The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`.

The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`.

The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`.

The URL that we should call to answer a call to the phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set.

The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.

The SID of the emergency address configuration to use for emergency calling from this phone number.

The SID of the Trunk we should use to handle phone calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.

The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations.

The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations.

The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import twilio from '@utdk/twilio';

await twilio.updateincomingphonenumber()