If you’re editing many state and country/territory picklist integration values, usingMetadata API is more efficient than editing values in Setup.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: All Editions except Database.com |
You can use Metadata API to edit existing states, countries, and territories in state and country/territory picklists. You can’t use Metadata API to create or delete new states, countries, or territories.
To edit the existing states and countries in a picklist, configure your state and country/territory picklists in your sandbox org. Then, use Metadata API to retrieve the sandbox configurations, and deploy them to your production org. You can’t deploy new ISO codes or update ISO code values using any API.
Search for "AddressSettings" in the Metadata API Developer Guide for information about working with state and country/territory picklists in Metadata API.