Tags
Create and use colored tags.
Tags let you group counters and filter the dashboard.
List tags
GET /api/tags— [Admin / Member]
Example response
{
"tags": [
{ "id": "tag_abc", "name": "Articles", "color": "#ff8800" },
{ "id": "tag_xyz", "name": "Docs", "color": "#4c6ef5" }
]
}Create tag
POST /api/tags— [Admin]
Example request
{ "name": "Articles", "color": "#ff8800" }Example response
{
"tag": { "id": "tag_abc", "name": "Articles", "color": "#ff8800" }
}Update tag
PATCH /api/tags/:id— [Admin]
Example request
{ "name": "Guides", "color": "#3b82f6" }Example response
{
"tag": { "id": "tag_abc", "name": "Guides", "color": "#3b82f6" }
}Delete tag
DELETE /api/tags/:id— [Admin]
Example response
{ "ok": true, "removed": 1, "cleared": 4 }
Edit on GitHub
Last updated on