Entity Tags


All Entity Tags

You can get a list of all the entity-tags of an entity by using the following endpoint.

{warning} Don't forget that all endpoints documented here need to be prefixed with 1.0/campaigns/{campaign.id}/.

Method URI Headers
GET/HEAD entities/{entity.id}/entity_tags Default

Results

{
    "data": [
        {
            "id": 1,
            "entity_id": 34,
            "tag_id": 12
        }
    ]
}

Entity Tag

To get the details of a single entity-tag, use the following endpoint.

Method URI Headers
GET/HEAD entities/{entity.id}/entity_tags/{entity_tag.id} Default

Results

{
    "data": {
        "id": 1,
        "entity_id": 34,
        "tag_id": 12
    }
}

Create an Entity Tag

To create an entity-tag, use the following endpoint.

Method URI Headers
POST entities/{entity.id}/entity_tags Default

Body

Parameter Type Detail
entity_id integer (Required) The entity-tag's parent entity
tag_id integer (Required) The entity-tag's parent tag

Results

{success} Code 200 with JSON body of the new entity-tag.

Update an Entity Tag

To update an entity-tag, use the following endpoint.

Method URI Headers
PUT/PATCH entities/{entity.id}/entity_tags/{entity_tag.id} Default

Body

The same body parameters are available as for when creating an entity-tag.

Results

{success} Code 200 with JSON body of the updated entity-tag.

Delete an Entity Tag

To delete an entity-tag, use the following endpoint.

Method URI Headers
DELETE entities/{entity.id}/entity_tags/{entity_tag.id} Default

Results

{success} Code 200 with JSON.