Adds a promoted tag. If a promoted tag with the same tag_key and tag_type already
exists, a unique constraint error will be returned without modifying the existing
promoted tag.
Veza API key for authentication. Generate keys in Administration > API Keys.
tag_key and tag_type specify the tag to be promoted
Only one or the other makes sense to be set. include_entity_types indicates promote only for the listed type exclude_entity_type indicates promote for any type except for the listed types The types should be concrete types, and OAA types should be supplied with their native types name, ie "OAA.ApplicationName.Type".
Demotes a promoted tag
Veza API key for authentication. Generate keys in Administration > API Keys.
OK
Default error response
OK
Default error response
POST /api/preview/graph/tag_promotions HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"tag_key": "text",
"tag_type": 1,
"include_entity_types": [
"text"
],
"exclude_entity_types": [
"text"
]
}{}{}POST /api/preview/graph/tag_promotions:demote HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"tag_key": "text",
"tag_type": 1
}GET /api/preview/graph/tag_promotions HTTP/1.1
Host: your-tenant.vezacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"tag_promotions": [
{
"tag_key": "text",
"tag_type": 1,
"include_entity_types": [
"text"
],
"exclude_entity_types": [
"text"
]
}
]
}