Delete a tag and remove it from every contact.
curl --request DELETE \
--url https://omni-api.sendblue.com/tags/{tag_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/tags/{tag_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/tags/{tag_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Delete a tag and remove it from every contact.
A change that touches many contacts can be applied in separate batches. On write_outcome_unknown, inspect the catalogue and the affected contacts for the old label before issuing another change.
Required permission: tags:write. Accepted credentials: a signed-in person, an API key, the account token.
DELETE
/
tags
/
{tag_id}
Delete a tag and remove it from every contact.
curl --request DELETE \
--url https://omni-api.sendblue.com/tags/{tag_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/tags/{tag_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/tags/{tag_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret
Response
Deleted.