You can get a list of all the entity-aliases 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_aliases |
Default |
{
"data": [
{
"created_at": "2022-01-30T00:01:44.000000Z",
"created_by": 1,
"entity_id": 309,
"id": 2,
"visibility_id": "1",
"name": "The BEST",
"updated_at": "2022-01-31T13:48:54.000000Z",
"updated_by": null
}
]
}
To get the details of a single entity-alias, use the following endpoint.
Method | URI | Headers |
---|---|---|
GET/HEAD | entities/{entity.id}/entity_aliases/{entity_alias.id} |
Default |
{
"data": {
"created_at": "2022-01-30T00:01:44.000000Z",
"created_by": 1,
"entity_id": 309,
"id": 2,
"visibility_id": "1",
"name": "The BEST",
"updated_at": "2022-01-31T13:48:54.000000Z",
"updated_by": null
}
}
To create an entity-alias, use the following endpoint.
Method | URI | Headers |
---|---|---|
POST | entities/{entity.id}/entity_aliases |
Default |
Parameter | Type | Detail |
---|---|---|
name |
string |
The name of the alias (max 45) |
visibility_id |
int |
The visibility id: 1 all , 2 self , 3 admin , 4 self-admin or 5 members . |
{success} Code 200 with JSON body of the new entity-alias.
To delete an entity-alias, use the following endpoint.
Method | URI | Headers |
---|---|---|
DELETE | entities/{entity.id}/entity_aliases/{entity_alias.id} |
Default |
{success} Code 200 with JSON.