Edit a tag.
PUT
/api/tags/{id}
const url = 'https://api.tradr.cloud/api/tags/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"category":"setup","color":"tag-1","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
category
string
color
string
name
string
Responses
Section titled “Responses”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).