Add contact tags
Adds tags to one or more contacts.
POST https://cotlet.dev/api/v1/agile-crm/contact-tags
write
Adds the tags to every contact in the list and returns each contact's tags afterwards. Tags reach nobody and a wrong tag is removed from Agile CRM by hand, so the call does not wait for your OK. A tag name Agile CRM rejects fails before any contact changes.
Parameters
| Name | Type | Description |
|---|---|---|
| contact_ids array required | array | Contact ids from list_contacts |
| tags array required | array | Tag names to add; a tag starts with a letter and holds letters, numbers, underscores and spaces |
Request
curl -X POST https://cotlet.dev/api/v1/agile-crm/contact-tags \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contact_ids":"contact ids","tags":"tags"}' result = client.call("agile-crm", "add_contact_tags", {"contact_ids":"contact ids","tags":"tags"}) const result = await cotlet.call('agile-crm', 'add_contact_tags', {"contact_ids":"contact ids","tags":"tags"}); cotlet call agile-crm add_contact_tags --data '{"contact_ids":"contact ids","tags":"tags"}' Example response
{
"updated": [
{
"contact_id": "5698320417841152",
"tags": [
"webinar_oct",
"lead",
"nurture"
]
},
{
"contact_id": "5701182246576128",
"tags": [
"webinar_oct",
"nurture"
]
}
]
}