Update a short code with the following parameters
Messaging short codes
Update a short code with the following parameters
Path parameters
-
The SID of the Account that created the ShortCode resource(s) to update.
-
The Twilio-provided string that uniquely identifies the ShortCode resource to update
Body
-
ApiVersion string
The API version to use to start a new TwiML session. Can be:
2010-04-01
or2008-08-01
. -
FriendlyName string
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. -
SmsFallbackMethod string(http-method)
The HTTP method that we should use to call the
sms_fallback_url
. Can be:GET
orPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
SmsFallbackUrl string(uri)
The URL that we should call if an error occurs while retrieving or executing the TwiML from
sms_url
. -
SmsMethod string(http-method)
The HTTP method we should use when calling the
sms_url
. Can be:GET
orPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
SmsUrl string(uri)
The URL we should call when receiving an incoming SMS message to this short code.
curl \
-X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'ApiVersion=string&FriendlyName=string&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsUrl=https%3A%2F%2Fexample.com'
{
"ApiVersion": "string",
"FriendlyName": "string",
"SmsFallbackMethod": "HEAD",
"SmsFallbackUrl": "https://example.com",
"SmsMethod": "HEAD",
"SmsUrl": "https://example.com"
}
{
"ApiVersion": "string",
"FriendlyName": "string",
"SmsFallbackMethod": "HEAD",
"SmsFallbackUrl": "https://example.com",
"SmsMethod": "HEAD",
"SmsUrl": "https://example.com"
}
{
"account_sid": "string",
"api_version": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"short_code": "string",
"sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"uri": "https://example.com"
}
{
"account_sid": "string",
"api_version": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"short_code": "string",
"sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"uri": "https://example.com"
}