Skip to main content
POST
Create multiple tags

Headers

x-project-id
string
required

Project ID to specify the project context

Body

application/json
tags
object[]
required

List of tags to create in a single batch operation. Must contain at least one tag, and each entry is validated against the CreateTagDto schema.

Example:

Response

id
number
required

Unique identifier for the tag

Example:

1

project
object
required

The project this tag belongs to

Example:

"a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6"

name
string
required

Name of the tag

Example:

"feature"

color
string
required

Color of the tag in hex format

Example:

"#3B82F6"

queryCount
number

Number of queries associated with this tag

Example:

5

groupId
string<uuid> | null

ID of the tag group node this tag is filed under; null when ungrouped.

groupName
string | null

Name of the tag group node this tag is filed under; null when ungrouped.