Attaching Tags

Tags can be attached to any taggableleads, sender emails, and campaigns.
Send a POST request to one of the following endpoints.
/api/tags/attach-to-sender-emails
/api/tags/attach-to-leads
/api/tags/attach-to-campaigns
The fields for these endpoints are:
tag_ids
array
required
An array of tag IDs to attach
{taggable}_ids
array
required
An array of taggables to attach the tags to. One of sender_email_ids, lead_ids, campaign_ids.
An example of a request to attach tags with IDs 1 and 2 to sender emails with IDs 3 and 4:
curl https://dedi.emailbison.com/api/tags/attach-to-sender-emails \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "tag_ids": [1, 2],
  "sender_email_ids": [3, 4]
}'