Skip to main content
POST
/
v1
/
tags
Create Tag Handler
curl --request POST \
  --url http://localhost:8000/v1/tags \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "color": "000000",
  "description": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "color": "<string>",
  "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Cookies

ks_uat
string | null

Body

application/json

Request to create a new tag.

name
string
required

Tag name

Required string length: 1 - 100
color
string
default:000000

Tag color as 6-character hex string (e.g. 'FF5733')

Required string length: 6
Pattern: ^[0-9A-Fa-f]{6}$
description
string | null

Optional tag description

Maximum string length: 500

Response

Successful Response

Tag response model.

id
string<uuid>
required

Tag ID

name
string
required

Tag name

color
string
required

Tag color hex

tenant_id
string<uuid>
required

Tenant ID

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

description
string | null

Tag description