# Update a short code with the following parameters **POST /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json** Update a short code with the following parameters Messaging short codes ## Servers - https://api.twilio.com: https://api.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **AccountSid** (string) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. - **Sid** (string) The Twilio-provided string that uniquely identifies the ShortCode resource to update ### Body: application/x-www-form-urlencoded (object) - **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. - **ApiVersion** (string) The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. - **SmsUrl** (string(uri)) The URL we should call when receiving an incoming SMS message to this short code. - **SmsMethod** (string(http-method)) The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. - **SmsFallbackUrl** (string(uri)) The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. - **SmsFallbackMethod** (string(http-method)) The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. ## Responses ### 200 OK #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource. - **api_version** (string | null) The API version used to start a new TwiML session when an SMS message is sent to this short code. - **date_created** (string(date-time-rfc-2822) | null) The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - **date_updated** (string(date-time-rfc-2822) | null) The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - **friendly_name** (string | null) A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code. - **short_code** (string | null) The short code. e.g., 894546. - **sid** (string | null) The unique string that that we created to identify this ShortCode resource. - **sms_fallback_method** (string(http-method) | null) The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. - **sms_fallback_url** (string(uri) | null) The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`. - **sms_method** (string(http-method) | null) The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. - **sms_url** (string(uri) | null) The URL we call when receiving an incoming SMS message to this short code. - **uri** (string | null) The URI of this resource, relative to `https://api.twilio.com`. [Powered by Bump.sh](https://bump.sh)