AddOrRemoveMemberTags
Adds or removes tags from one or more list members. If a tag does not exist and is marked as 'active', Mailchimp automatically creates it.
Stored Procedure Specific Information
Tags can be provided either as a directly specified array or via a TEMP table.
Using TEMP table
Insert into TagsAggregate#TEMP(Name, Status) Values('TestName11', 'inactive');
Insert into TagsAggregate#TEMP(Name, Status) Values('TestName7', 'active');
exec AddOrRemoveMemberTags TagsAggregate = 'TagsAggregate#TEMP', listid = '123', MemberId = 'test';
Directly providing the array
exec AddOrRemoveMemberTags TagsAggregate = '[{"name": "TestName11","status": "inactive"},{"name": "TestName7","status": "active"}]', listid = '123', MemberId = 'test';
Input
| Name | Type | Required | Description |
| ListId | String | True | The unique identifier of the audience list where the member is subscribed. |
| MemberId | String | True | The MD5 hash of the lowercase version of the member's email address, used to identify the subscriber within the list. |
| TagsAggregate | String | True | A comma-separated list of tags to be added or removed from the specified list member. |
| IsSyncing | String | False | If the value is 'true', automations triggered by tag changes will not run during the synchronization process. Use this to prevent automation triggers when updating tags in bulk. |
Result Set Columns
| Name | Type | Description |
| Success | String | If the value is 'true', the tag update operation completed successfully. If the value is 'false', the operation failed. |