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 |
{
"data": [
{
"id": 1,
"tag_id": 12,
}
]
}
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 |
{
"data": {
"id": 1,
"tag_id": "12"
}
}
To create an entity-tag, use the following endpoint.
Method | URI | Headers |
---|---|---|
POST | entities/{entity.id}/entity_tags |
Default |
Parameter | Type | Detail |
---|---|---|
tag_id |
integer (Required) |
The entity-tag's parent tag |
{success} Code 200 with JSON body of the new 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 |
The same body parameters are available as for when creating an entity-tag.
{success} Code 200 with JSON body of the updated entity-tag.
To delete an entity-tag, use the following endpoint.
Method | URI | Headers |
---|---|---|
DELETE | entities/{entity.id}/entity_tags/{entity_tag.id} |
Default |
{success} Code 200 with JSON.