tagIds and domainIds are required arrays but may be empty, and an empty tagIds detaches all tags, so check your selection before sending.domainIds, only those workspace domains are touched. With an empty domainIds, domains are chosen from contains, filters and tagIds; with none of them, all workspace domains are chosen.data is the number of links removed. Zero is returned, not an error, when nothing matched.curl --location 'https://api.zapmail.ai/api/v3/domains/tags/remove' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"tagIds": [
"6c74d57d-6d1e-4d6b-90d8-0d6f5e5d7c31"
],
"domainIds": [
"83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"e78b1d35-8d6a-4e43-91da-a57ab5288f86"
]
}'{
"status": 200,
"message": "Domains Tags Removed Successfully",
"data": 2
}