PUT /api/tags/{tag_id} · PATCH /api/tags/{tag_id}
Updates an existing tag’s name, color, or description. Both PUT and PATCH methods are accepted — only the fields present in the request body are changed. This endpoint is restricted to administrators.
Authentication
Requires a valid Bearer access token. The authenticated user must have the admin role.Path Parameters
The ID of the tag to update.
Request Body
New name for the tag. Must be unique across all tags. Maximum 50 characters.
New hex color code for the tag. Must match the pattern
^#[0-9A-Fa-f]{6}$ (e.g. #FF5733).Updated description for the tag. Pass an empty string or
null to clear the description.Response
true when the update succeeds.Human-readable confirmation message.
The updated tag object.
Errors
| Status | Description |
|---|---|
400 | No data provided, name is empty, or color does not match the required hex pattern. |
401 | Missing or invalid access token. |
403 | The authenticated user does not have the admin role. |
404 | No tag exists with the given tag_id. |