Hello SegmintD,
Thank you for reaching out to Constant Contact API Developer Support.
I took a look at one of the recent request bodies for one of your PUT calls to /v3/contacts/{contact_id} within our logs, which had the value for the other phone number set to blank and was not passing the properties correctly when being submitted to the API.
I did some testing, and was able to replicate what you were experiencing, that when including a value with "customFields" and "phoneNumbers" those properties are updated, (but "streetAddresses" is not).
28/Jan/2022 :00:04:20 (customer information redacted)
{"customFields":[{"custom_field_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","value":"xxxxxxxxxx"}],"phoneNumbers":[{"phone_number":"","kind":"other"}],"streetAddresses":null,"email_address":{"address":"xxxxxxxxxx","permission_to_send":"implicit","created_at":null,"updated_at":null,"opt_in_date":null,"opt_out_source":null,"opt_out_date":null,"opt_out_reason":null,"confirm_status":null},"first_name":"xxxxxxxxxx","last_name":"xxxxxxxxxx","job_title":null,"company_name":null,"birthday_month":null,"birthday_day":null,"anniversary":null,"update_source":"Account","list_memberships":["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],"taggings":null,"notes":null}
However, I was also able to replicate that the “other” phone number can only be overwritten with a blank value if the naming conventions of the properties in the request body match those that are specified in the Body Schema for the Contacts endpoint in our API Documentation:
"custom_fields": [
{ "custom_field_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","value": "" }
],
"phone_numbers": [
{ "phone_number": "", "kind": "other"}
],
"street_addresses": [
{ "kind": "home", "street": "","city": "","state": "","postal_code": "","country": "" }
],
PUT (update) a Contact
https://v3.developer.constantcontact.com/api_reference/index.html#!/Contacts/putContact
Please have a look and let us know if you have any other questions!
... View more