Voux

Tags

Create and use colored tags.


Tags let you group counters and filter the dashboard.

List tags

  • GET /api/tags[Admin / Member]

Example response

JSON
{
  "tags": [
    { "id": "tag_abc", "name": "Articles", "color": "#ff8800" },
    { "id": "tag_xyz", "name": "Docs", "color": "#4c6ef5" }
  ]
}

Create tag

  • POST /api/tags[Admin]

Example request

JSON
{ "name": "Articles", "color": "#ff8800" }

Example response

JSON
{
  "tag": { "id": "tag_abc", "name": "Articles", "color": "#ff8800" }
}

Update tag

  • PATCH /api/tags/:id[Admin]

Example request

JSON
{ "name": "Guides", "color": "#3b82f6" }

Example response

JSON
{
  "tag": { "id": "tag_abc", "name": "Guides", "color": "#3b82f6" }
}

Delete tag

  • DELETE /api/tags/:id[Admin]

Example response

JSON
{ "ok": true, "removed": 1, "cleared": 4 }

 

Edit on GitHub

Last updated on