provider Api20100401ShortCode POST /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json
@utdk/twilio /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json
Update a short code with the following parameters
Update a short code with the following parameters
AccountSid path required
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update.
string
Sid path required
The Twilio-provided string that uniquely identifies the ShortCode 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.

updateshortcode
POST/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json
Update a short code with the following parameters

Parameters

required

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update.

required

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

Input

A descriptive string that you created to describe this resource. It can be up to 64 characters long. By default, the `FriendlyName` is the short code.

The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`.

The URL we should call when receiving an incoming SMS message to this short code.

The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`.

The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`.

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

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.updateshortcode()