Skip to content

Thogit Tags

These endpoints manage the relationship between thogits and tags — applying tags, updating field values, and removing tags. For creating or modifying tag schemas themselves, see Tags.

Apply a tag to a thogit with initial field values.

Auth required: Yes

Request body:

FieldTypeRequiredDescription
tagobjectYesTag application object
tag.tag_refobjectYesEither {"New": {"name": "...", "fields": {...}}} or {"Existing": "TAG_ULID"}
tag.field_valuesobjectNoInitial field values matching the tag schema
Terminal window
curl -X POST https://app.thogits.com/api/thogits/01HQ4M8R3ZBNWY6K9J2X5V7Q0A/tags \
-H "Content-Type: application/json" \
-b cookies.txt -c cookies.txt \
-d '{
"tag": {
"tag_ref": {"Existing": "01HQ3K5P7YGXJV8N2M4W6R0T1S"},
"field_values": {"status": "Todo", "priority": "high"}
}
}'

Response (200):

{
"tag_id": "01HQ3K5P7YGXJV8N2M4W6R0T1S"
}

Errors:

StatusCause
404Thogit or tag not found
409Tag is already applied to this thogit

Update the field values of a tag that is already applied to a thogit.

Auth required: Yes

Request body:

FieldTypeRequiredDescription
field_valuesobjectYesNew field values
mergebooleanNoIf true, merge with existing values. If false (default), replace all values.

The merge flag controls how field values are updated:

Replaces all field values. Any fields not included in the request are removed.

Terminal window
# Existing values: {"status": "Todo", "priority": "high", "due_date": "2025-06-01"}
curl -X PUT https://app.thogits.com/api/thogits/01HQ4M8R3ZBNWY6K9J2X5V7Q0A/tags/01HQ3K5P7YGXJV8N2M4W6R0T1S \
-H "Content-Type: application/json" \
-b cookies.txt -c cookies.txt \
-d '{"field_values": {"status": "Done"}, "merge": false}'
# Result: {"status": "Done"} — priority and due_date are gone

Response (200): The updated thogit object.

Errors:

StatusCause
404Thogit not found, or tag is not applied to this thogit

Remove a tag from a thogit. This deletes all field values associated with that tag on the thogit.

Auth required: Yes

Terminal window
curl -X DELETE https://app.thogits.com/api/thogits/01HQ4M8R3ZBNWY6K9J2X5V7Q0A/tags/01HQ3K5P7YGXJV8N2M4W6R0T1S \
-b cookies.txt -c cookies.txt

Response (200): The updated thogit object (without the removed tag).

Errors:

StatusCause
404Thogit or tag not found