curl -X POST 'https://api.example.com/tag-group-bindings' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tagGroupId": "tag_group_departments",
"modelType": "subject"
}'
{
"id": "tag_binding_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tagGroupId": "tag_group_departments",
"modelType": "subject",
"modelId": null
}
Bind a tag group to a model type, controlling which entities can use tags from this group
curl -X POST 'https://api.example.com/tag-group-bindings' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tagGroupId": "tag_group_departments",
"modelType": "subject"
}'
{
"id": "tag_binding_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tagGroupId": "tag_group_departments",
"modelType": "subject",
"modelId": null
}
tag_binding_{uuidv7}resource, resource_type, subject, role, permissioncurl -X POST 'https://api.example.com/tag-group-bindings' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"tagGroupId": "tag_group_departments",
"modelType": "subject"
}'
{
"id": "tag_binding_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"tagGroupId": "tag_group_departments",
"modelType": "subject",
"modelId": null
}
curl -X POST 'https://api.example.com/tag-group-bindings' \
-d '{
"tagGroupId": "tag_group_sensitivity",
"modelType": "resource"
}'
curl -X POST 'https://api.example.com/tag-group-bindings' \
-d '{
"tagGroupId": "tag_group_sensitivity",
"modelType": "resource_type",
"modelId": "resource_type_document"
}'
Was this page helpful?