Sample - Twilio API
POST/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json

Update an account address

Updates an Address associated with an Account. Supply the Account SID and Address SID, then send the address properties you want to change, including optional automatic correction and emergency-calling settings.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 9 body fields
AccountSidstringrequired
The Account SID responsible for the Address. Must be exactly 34 characters and match `^AC[0-9a-fA-F]{32}$`.
Sidstringrequired
The unique Address SID to update. Must be exactly 34 characters and match `^AD[0-9a-fA-F]{32}$`.

Address properties to update using form-encoded fields.

FriendlyNamestringoptional
A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
CustomerNamestringoptional
The name to associate with the address.
Streetstringoptional
The number and street address of the address.
Citystringoptional
The city of the address.
Regionstringoptional
The state or region of the address.
PostalCodestringoptional
The postal code of the address.
EmergencyEnabledbooleanoptional
Whether to enable emergency calling on the address. Can be: `true` or `false`.
AutoCorrectAddressbooleanoptional
Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide.
StreetSecondarystringoptional
The additional number and street address of the address.

1 status code
200Returns the updated Address resource, including its current address details, validation and verification state, emergency-calling state, timestamps, SID, and resource URI.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource.
citystringoptional
The city in which the address is located.
customer_namestringoptional
The name associated with the address.This property has a maximum length of 16 4-byte characters, or 21 3-byte characters.
date_createdstringoptional
The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
friendly_namestringoptional
The string that you assigned to describe the resource.
iso_countrystringoptional
The ISO country code of the address.
postal_codestringoptional
The postal code of the address.
regionstringoptional
The state or region of the address.
sidstringoptional
The unique string that that we created to identify the Address resource.
streetstringoptional
The number and street address of the address.
uristringoptional
The URI of the resource, relative to `https://api.twilio.com`.
emergency_enabledbooleanoptional
Whether emergency calling has been enabled on this number.
validatedbooleanoptional
Whether the address has been validated to comply with local regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been validated. `false` indicate the country doesn't require validation or the Address is not valid.
verifiedbooleanoptional
Whether the address has been verified to comply with regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been verified. `false` indicate the country doesn't require verified or the Address is not valid.
street_secondarystringoptional
The additional number and street address of the address.

Error handling

AccountSid must be exactly 34 characters and match the Account SID format AC followed by 32 hexadecimal characters, while Sid must match the 34-character Address SID format. AutoCorrectAddress defaults to true when omitted and must be a boolean when supplied.