Tag Group

The Tag Group API allows you to create, manage, and organize tag groups in the Eagle library.

Endpoints Overview

Method
Endpoint
Description

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

  • offset integer (optional) — Pagination offset, default 0

  • limit integer (optional) — Pagination limit, default 50, max 1000

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

  • name string (required) — Group name

  • tags string[] (required) — Array of tag names to include

  • color string (optional) — Group color

  • description string (optional) — Group description

Response

Returns the newly created tag group object.

Example


POST /api/v2/tagGroup/update

Update an existing tag group.

Request Body

  • id string (required) — The tag group ID to update

  • name string (required) — Group name

  • tags string[] (required) — Full array of tag names (replaces existing)

  • color string (optional) — Group color

  • description string (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

  • id string (required) — The tag group ID to delete

Response

Example


POST /api/v2/tagGroup/addTags

Add tags to an existing tag group.

Request Body

  • groupId string (required) — The tag group ID

  • tags string[] (required) — Tag names to add

  • removeFromSource boolean (optional) — If true, 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

  • groupId string (required) — The tag group ID

  • tags string[] (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:

Property
Type
Description

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