19033: Location validation error
ERROR
This error occurs when a location object in your request body contains invalid input values. Twilio returns it when one or more location fields fail validation, including invalid lengths or incorrect data types.
- A field in the location object has an invalid length.
- A field in the location object uses the wrong data type.
- The location
typevalue is not one ofwork,home, orother. - The location country code is not a valid
ISO 3166-1 alpha-2value. - The request body includes a missing, invalid, or duplicate location field.
- Validate every location field in the request body before you send it. Make sure each value uses the expected data type and stays within the supported length.
- Set the location
typetowork,home, orother. - Use a valid two-letter
ISO 3166-1 alpha-2country code, such asUS, for the location country value. - Remove duplicate fields and add any required location fields that are missing from the payload.
- Review the Contact API request format and retry the request after you correct the invalid location fields.