Delete a tag

POST/api/tags/delete

Deletes a tag. mode:'promote' (default) moves its direct children up to its own parent and removes only this tag's own assignments — no Leaf is ever deleted. mode:'cascade' deletes the tag's entire subtree and every assignment in it; it still never deletes a Leaf or report, but requires reports:delete in addition to reports:write (structural tag operations only need reports:write; cascade is a deliberately higher bar).

Body Parameters

idstringrequired
modestring
Default "promote". One of promote, cascade.