Skip to main content

Removing Tags

Last updated: 1 October 2024

The api/subscribers/tags/remove method is used to request the tag to be removed from an existing recipient.

info

To remove a tag from the recipient, its unique identifier is required, specified in the EXT_USER_ID parameter at creation.

File IconCreating Clients

Calling the api/subscribers/tags/remove method

To call the api/subscribers/tags/remove method, send a POST request to the URL https://app.edna.io/api/subscribers/tags/remove

If the request is successful, the method returns a response with the 200 code.

Request Body Format

{
"tag": {
"name": "best_user"
},
"subscriber": [
{
"address": "test12345",
"type": "EXT_USER_ID"
}
]
}

Request Parameters

ParameterData typeDescription
tagobjectThe tag object.
tag.namestringThe name of the recipient's tag.
subscribersarray of stringsAn array of recipient IDs.
subscribers.addressstringThe unique identifier of the recipient specified as the value of the EXT_USER_ID parameter when creating the recipient.
subscribers.typestringThe ID type. The value is EXT_USER_ID.

Response Example

[
{
"id": 66402870,
"blacklisted": false,
"addresses": [
{
"id": "09c2dc23-715e-4cde-8034-8ddfac6d91b5",
"address": "test12345"
}
],
"parameterValues": [],
"tagValues": []
}
]