Skip to content
These docs describe Tradr v0.14.0. Running an older release? Check the release notes for what changed.

Create a tag.

POST
/api/tags
curl --request POST \
--url https://api.tradr.cloud/api/tags \
--header 'Content-Type: application/json' \
--data '{ "category": "setup", "color": "tag-1", "name": "example" }'

Authed. Names are unique per user case-insensitively across every category, so the same name cannot exist twice even under different categories. Colour is optional. Subject to a per-user cap.

Media typeapplication/json
object
category
required
string
Allowed values: setup emotion mistake general
color
string
nullable
Allowed values: tag-1 tag-2 tag-3 tag-4 tag-5 tag-6
name
required
string
>= 1 characters <= 40 characters

The created tag.

Validation error.

No valid session.

TAG_NAME_TAKEN — a tag with this name already exists for the user (case-insensitive, across categories); or TAG_LIMIT_REACHED — the per-user tag cap has been reached.