Skip to content

Implications

Implications automatically apply related tags when you tag an item. They’re applied at write-time, not query-time, which makes searches fast.

When you create an implication A → B:

  • Any time someone adds tag A to an item, tag B is automatically added
  • All existing items with tag A are immediately updated to include tag B
  • Implications can chain: dog → canine → mammal → animal

Example: If you have dog → canine → animal, tagging something with “dog” automatically applies all three tags.

{
"id": "impl-123",
"application_id": "app-123",
"source_tag_id": "tag-dog",
"implied_tag_id": "tag-canine",
"created_at": "2024-01-15T10:30:00Z",
"source_tag": {
"id": "tag-dog",
"name": "dog"
},
"implied_tag": {
"id": "tag-canine",
"name": "canine"
}
}
FieldTypeDescription
source_tag_idUUIDSource tag (when this is added…)
implied_tag_idUUIDImplied tag (…this is automatically added)
source_tagobjectExpanded source tag details
implied_tagobjectExpanded implied tag details
POST /api/v1/applications/{app_id}/implications

Create a new implication rule.

Request:

{
"source_tag_id": "tag-dog",
"implied_tag_id": "tag-canine"
}

Example:

Terminal window
curl -X POST "https://app.taguten.com/api/v1/applications/{app_id}/implications" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source_tag_id": "tag-dog",
"implied_tag_id": "tag-canine"
}'
GET /api/v1/applications/{app_id}/implications

Get all implication rules in your application.

Terminal window
curl "https://app.taguten.com/api/v1/applications/{app_id}/implications" \
-H "Authorization: Bearer YOUR_API_KEY"
DELETE /api/v1/applications/{app_id}/implications/{implication_id}

Delete an implication rule. This automatically removes the implied tags from items where they were added by this implication.

Terminal window
curl -X DELETE "https://app.taguten.com/api/v1/applications/{app_id}/implications/{impl_id}" \
-H "Authorization: Bearer YOUR_API_KEY"
dog → canine → mammal → animal
cat → feline → mammal → animal
fox → canine → mammal → animal
explicit → nsfw
questionable → nsfw
rock music → music
jazz → music
electronic → music