I have a total of 5 merge fields in the Mailchimp account which are marked as required and assigned to contacts. Need to update two of the merge field using the PATCH API method. But it returns with an error code to update all required merge field value. My use case is to update only two of my fields. Any ideas.
Notes:
merge_fields: MMERGE4,MMERGE5,MMERGE6,MMERGE7,MMERGE8
API: PATCH https://{dc}.api.mailchimp.com/3.0/lists/list_id/members/{member_id}
JSONObject in body:{"merge_fields": {"MMERGE7": "Valid","MMERGE8": "Mailbox Valid"}}
While try to update this it returns with an error code to update all required merge field value.
{
"type": "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/",
"title": "Invalid Resource",
"status": 400,
"detail": "Your merge fields were invalid.",
"instance": "4e565fdc-a62f-4813-88b9-aca06dc99622",
"errors": [
{
"field": "MMERGE4",
"message": "Please enter a value"
},
{
"field": "MMERGE5",
"message": "Please enter a value"
}
]
}