Issues with updating a Contact's Email Address

I am trying to update an existing contact's email address via the API.  

This is the process that I go through

1. I first GET the contact information

	"url": "https://api.cc.email/v3/contacts",
	"queries": [
		{
			"key": "email",
			"value": "afftest.person@afftest.com"
		},
		{
			"key": "include",
			"value": "list_memberships"
		}
	]

2. And then using the contact_id that is returned, I PUT the following 

	"body": {
		"email_address": {
			"address": "afftest.personV5@afftest.com",
			"updated_at": "2024-05-24T19:27:28Z",
			"opt_in_source": "Contact",
			"opt_in_date": "2024-05-24T19:27:28Z",
			"created_at": "2024-05-24T19:27:28Z",
			"confirm_status": "off",
			"permission_to_send": "explicit"
		},
		"updated_at": "2024-05-24T19:27:28Z",
		"list_memberships": [
			"d91b71c0-2c99-11ee-a4f7-fa163eb65cb7"
		],
		"last_name": "Person",
		"created_at": "2024-05-24T19:27:28Z",
		"contact_id": "***************************",
		"first_name": "Afftest",
		"update_source": "Contact"
	}

 

But I am getting the following error message.

		{
			"error_key": "contacts.api.validation.error",
			"error_message": "update_source is missing, update_source does not have a valid value"
		}

Any help here would be appreciated.

 

1 reply

Quick Links

Leaderboard