Updates the application's properties
An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.
Updates the application's properties
Path parameters
-
The SID of the Account that created the Application resources to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the Application resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AP[0-9a-fA-F]{32}$
.
Body
-
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
The API version to use to start a new TwiML session. Can be:
2010-04-01
or2008-08-01
. The default value is your account's default API version. -
The URL we should call when the phone number assigned to this application receives a call.
-
The HTTP method we should use to call
voice_url
. Can be:GET
orPOST
.Values are
GET
orPOST
. -
The URL that we should call when an error occurs retrieving or executing the TwiML requested by
url
. -
The HTTP method we should use to call
voice_fallback_url
. Can be:GET
orPOST
.Values are
GET
orPOST
. -
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
orPOST
.Values are
GET
orPOST
. -
Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be:
true
orfalse
. -
The URL we should call when the phone number receives an incoming SMS message.
-
The HTTP method we should use to call
sms_url
. Can be:GET
orPOST
.Values are
GET
orPOST
. -
The URL that we should call when an error occurs while retrieving or executing the TwiML from
sms_url
. -
The HTTP method we should use to call
sms_fallback_url
. Can be:GET
orPOST
.Values are
GET
orPOST
. -
Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility.
-
The URL we should call using a POST method to send message status information to your application.
-
Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be:
true
orfalse
.
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'SmsUrl=https%3A%2F%2Fexample.com&VoiceUrl=https%3A%2F%2Fexample.com&SmsMethod=GET&VoiceMethod=GET&FriendlyName=friendly_name&SmsFallbackUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&VoiceFallbackUrl=https%3A%2F%2Fexample.com&SmsFallbackMethod=GET&SmsStatusCallback=https%3A%2F%2Fexample.com&VoiceCallerIdLookup=true&VoiceFallbackMethod=GET&StatusCallbackMethod=GET&MessageStatusCallback=https%3A%2F%2Fexample.com&PublicApplicationConnectEnabled=true'
{"SmsUrl"=>"https://example.com", "VoiceUrl"=>"https://example.com", "SmsMethod"=>"GET", "VoiceMethod"=>"GET", "FriendlyName"=>"friendly_name", "SmsFallbackUrl"=>"https://example.com", "StatusCallback"=>"https://example.com", "VoiceFallbackUrl"=>"https://example.com", "SmsFallbackMethod"=>"GET", "SmsStatusCallback"=>"https://example.com", "VoiceCallerIdLookup"=>true, "VoiceFallbackMethod"=>"GET", "StatusCallbackMethod"=>"GET", "MessageStatusCallback"=>"https://example.com", "PublicApplicationConnectEnabled"=>true}
{
"sid": "APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications/APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"sms_url": "http://example.com",
"voice_url": "http://example.com",
"sms_method": "GET",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2010-04-01",
"date_created": "Mon, 22 Aug 2011 20:59:45 +0000",
"date_updated": "Tue, 18 Aug 2015 16:48:57 +0000",
"voice_method": "GET",
"friendly_name": "Application Friendly Name",
"status_callback": "http://example.com",
"sms_fallback_url": "http://www.example.com/sms-fallback",
"voice_fallback_url": "http://www.example.com/voice-callback",
"sms_fallback_method": "GET",
"sms_status_callback": "http://www.example.com/sms-status-callback",
"voice_fallback_method": "GET",
"status_callback_method": "GET",
"voice_caller_id_lookup": false,
"message_status_callback": "http://www.example.com/sms-status-callback",
"public_application_connect_enabled": true
}