Possible Bug: As you can see in the below screenshot, Currently, If the Tag is added via n8n to the Contact, All the Existing tags will be removed.
But there is a possible workaround.
We have to use addTags - String[] - The tags you want to add to the contact.
As mentioned in the link: Automizy Rest Api
Using Method: PATCH
I tested with this code.
const request = require('request');
const options = {
method: 'PATCH',
url: 'https://gateway.automizy.com/v2/contacts/[email protected]',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Bearer f43197012114cd97235e8759cb0b55385'
},
body: {addTags: ['tag1', 'tag2']},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
@RicardoE105 Sent you account credentials in Message.