Tag Group
The Tag Group API allows you to create, manage, and organize tag groups in the Eagle library.
Endpoints Overview
GET
/api/v2/tagGroup/get
List all tag groups
POST
/api/v2/tagGroup/create
Create a new tag group
POST
/api/v2/tagGroup/update
Update a tag group
POST
/api/v2/tagGroup/remove
Delete a tag group
POST
/api/v2/tagGroup/addTags
Add tags to a group
POST
/api/v2/tagGroup/removeTags
Remove tags from a group
GET /api/v2/tagGroup/get
List all tag groups. Returns paginated results.
Query Parameters
offsetinteger (optional) — Pagination offset, default0limitinteger (optional) — Pagination limit, default50, max1000
Response
{
"status": "success",
"data": {
"data": [
{
"id": "TG_001",
"name": "Design Styles",
"color": "blue",
"tags": ["flat", "material", "skeuomorphic"],
"description": "Visual design styles"
}
],
"total": 5,
"offset": 0,
"limit": 50
}
}Example
POST /api/v2/tagGroup/create
Create a new tag group.
Request Body
namestring (required) — Group nametagsstring[] (required) — Array of tag names to includecolorstring (optional) — Group colordescriptionstring (optional) — Group description
Response
Returns the newly created tag group object.
Example
POST /api/v2/tagGroup/update
Update an existing tag group.
Request Body
idstring (required) — The tag group ID to updatenamestring (required) — Group nametagsstring[] (required) — Full array of tag names (replaces existing)colorstring (optional) — Group colordescriptionstring (optional) — Group description
Response
Returns the updated tag group object.
Example
POST /api/v2/tagGroup/remove
Delete a tag group. This only removes the group — the tags themselves are not deleted.
Request Body
idstring (required) — The tag group ID to delete
Response
Example
POST /api/v2/tagGroup/addTags
Add tags to an existing tag group.
Request Body
groupIdstring (required) — The tag group IDtagsstring[] (required) — Tag names to addremoveFromSourceboolean (optional) — Iftrue, removes the tags from their current groups before adding to this one
Response
Returns the updated tag group object.
Example
POST /api/v2/tagGroup/removeTags
Remove tags from a tag group. The tags themselves are not deleted, only removed from the group.
Request Body
groupIdstring (required) — The tag group IDtagsstring[] (required) — Tag names to remove from the group
Response
Returns the updated tag group object.
Example
Tag Group Properties
Tag groups returned by the API contain the following properties:
id
string
Unique tag group ID
name
string
Group name
color
string
Group color
tags
string[]
Array of tag names in group
description
string
Group description
Last updated