snowys
February 16, 2021, 4:25am
1
Version 3 of the ActiveCampaign API is structured around REST, HTTP, and JSON. API endpoint URLs are organized around resources, such as contacts or deals. It uses HTTP methods for indicating the action to take on a resource, and HTTP status codes...
I’m currently able to add one tag, but I would like to add multiple tags in the one api call. To keep my requests down.
Is there a way to do this?
I thought something like this as the JSON but it doesn’t work
{
“contactTag”: [{
“contact”: “1”,
“tag”: “20”
},
{
“contact”: “1”,
“tag”: “22”
}]
}
Thanks
dneal
February 16, 2021, 4:09pm
2
Hi,
I have not tested, but it appears the v1 API contact_edit endpoint allows you to pass a comma-delimited list of tags.
I will follow up if I find any other options.
snowys
February 16, 2021, 10:12pm
3
Hi dneal,
I’m moving away from the older apis, and would like to use v3 only.
Thanks
dneal
February 17, 2021, 9:54pm
4
Unfortunately, v3 is not at parity with v1. There is currently no way to bulk assign tags to a contact using the v3 API.
1 Like
snowys
February 17, 2021, 11:41pm
5
Hi dneal,
ok thanks for following up with this, I didn’t think I could. Would be a nice update to make API more efficient.
Currently send between 1 - 6 requests depending on the users preference, when they update their email preferences