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

Edit a tag.

PUT
/api/tags/{id}
curl --request PUT \
--url https://api.tradr.cloud/api/tags/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--data '{ "category": "setup", "color": "tag-1", "name": "example" }'

Authed. Every field is optional but at least one must be present. Names stay unique per user case-insensitively across every category; a case-only self-rename is allowed.

id
required
string format: uuid
Media typeapplication/json
object
>= 1 properties
category
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
string
>= 1 characters <= 40 characters

The updated tag.

Validation error.

No valid session.

No such tag for this user.

TAG_NAME_TAKEN — a tag with this name already exists for the user (case-insensitive, across categories).