Skip to main content
POST
/
v2
/
tags
Create Tag
curl --request POST \
  --url https://public.api.serval.com/v2/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "teamId": "<string>",
  "name": "<string>",
  "color": "<string>",
  "iconSlug": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "color": "<string>",
    "iconSlug": "<string>",
    "teamId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
teamId
string
required

The ID of the team to create the tag for.

name
string
required

The name of the tag.

color
string | null

The color of the tag (CSS color string).

iconSlug
string | null

The icon slug for the tag.

Response

Success

data
data · object

The created tag.