POST
/
v0
/
tags
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '{
  "name": "Sprinter - 1ab-c23",
  "tag_group_id": "NCB2xo5S1yQbNgyWskXpwG"
}'
{
  "id": "UjL3BQnEaJtecuC7CUeDk",
  "name": "Sprinter - 1ab-c23",
  "tag_group_id": "NCB2xo5S1yQbNgyWskXpwG"
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The teal instance ID

Body

application/json
name
string
required

An arbitrary string, useful for identifying the tag to the user.

tag_group_id
string
required

The ID of the tag group.

Response

201 - application/json
id
string
required

The unique ID of the object.

name
string
required

An arbitrary string, useful for identifying the tag to the user.

tag_group_id
string
required

The ID of the tag group.