Add a Tag to a contact.
Note: When a contact is tagged in Brightpearl, mailmerge integration also connects the contact to the relevant Mailchimp list. This functionality is not yet supported by this API.
If you pass a Tag name or ID that does not exist, you will get an error. Use tag.create then re-attempt.
AJM - ensure Tag name and ID are validated upon insert. Class methods support addTag by tag_name
Parameters
| contact_id | required | Update this Contact |
| tag_id | Pass either Tag ID or Tag name |
|
| tag_name | Not yet supported |
Request
<?xml version="1.0" encoding="utf-8"?>
<request method="contact.addTag">
<auth token="xxxxxxxx" user="user@test.com" pass="xxxxxxxx" />
<contact_id>1350</contact_id>
<tag_id>8</tag_id>
<tag_name>Friends</tag_name>
</request>
Response
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>OK</status>
<message></message>
<datetimeutc>2009-10-29T09:06:42Z</datetimeutc>
<requesttime>0.23490</requesttime>
</response>

