Api20100401ShortCode

Update a short code with the following parameters

Changed on

Update a short code with the following parameters

post/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json

Request

  • Base URL
    https://api.twilio.com
  • URL
    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json
  • Auth
    HTTP basic

Path parameters

AccountSidstring required

The SID of the Account that created the ShortCode resource(s) to update.

Sidstring required

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

Request body application/x-www-form-urlencoded

FriendlyNamestring

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.

ApiVersionstring

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

SmsUrlstring uri

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

SmsMethod'GET' | 'POST' http-method

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

SmsFallbackUrlstring uri

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

SmsFallbackMethod'GET' | 'POST' http-method

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

Response

OK

account_sidstring nullable

The SID of the Account that created this ShortCode resource.

api_versionstring nullable

The API version used to start a new TwiML session when an SMS message is sent to this short code.

date_createdstring date-time-rfc-2822 nullable

The date and time in GMT that this resource was created specified in RFC 2822 format.

date_updatedstring date-time-rfc-2822 nullable

The date and time in GMT that this resource was last updated, specified in RFC 2822 format.

friendly_namestring nullable

A string that you assigned to describe this resource. By default, the FriendlyName is the short code.

short_codestring nullable

The short code. e.g., 894546.

sidstring nullable

The unique string that that we created to identify this ShortCode resource.

sms_fallback_method'GET' | 'POST' http-method nullable

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

sms_fallback_urlstring uri nullable

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

sms_method'GET' | 'POST' http-method nullable

The HTTP method we use to call the sms_url. Can be: GET or POST.

sms_urlstring uri nullable

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

uristring nullable

The URI of this resource, relative to https://api.twilio.com.

Changes

    • breaking

      removed the enum value DELETE of the request property

    • breaking

      removed the enum value DELETE of the request property

    • breaking

      removed the enum value HEAD of the request property

    • breaking

      removed the enum value HEAD of the request property

    • breaking

      removed the enum value PATCH of the request property

    • breaking

      removed the enum value PATCH of the request property

    • breaking

      removed the enum value PUT of the request property

    • breaking

      removed the enum value PUT of the request property

    • info

      removed the DELETE enum value from the response property for the response status

    • info

      removed the DELETE enum value from the response property for the response status

    • info

      removed the HEAD enum value from the response property for the response status

    • info

      removed the HEAD enum value from the response property for the response status

    • info

      removed the PATCH enum value from the response property for the response status

    • info

      removed the PATCH enum value from the response property for the response status

    • info

      removed the PUT enum value from the response property for the response status

    • info

      removed the PUT enum value from the response property for the response status