feat(asm): add GET, PATCH, DELETE /tags/{tag_id} to complete Tags CRUD#24
Open
dmchaledev wants to merge 1 commit into
Open
feat(asm): add GET, PATCH, DELETE /tags/{tag_id} to complete Tags CRUD#24dmchaledev wants to merge 1 commit into
dmchaledev wants to merge 1 commit into
Conversation
Tags could be created and listed but not retrieved individually, updated, or deleted. Without DELETE, stale tags (e.g. decommissioned environments) accumulate indefinitely. Adds a TagId path parameter component for reuse. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TCYFsHtDRoo2DqqU7mcFGL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Tags API only exposes two operations:
GET /tags— list all tagsPOST /tags— create a tagThere is no way to retrieve a single tag by ID, rename/recolor it, or delete it. Without
DELETE, stale tags (e.g.datacenter-eu,prod-old, deprecated team names) accumulate indefinitely and pollute the tag picker for every asset in the tenant.Changes
Adds three new operations to
asm/openapi.yaml:GET/tags/{tag_id}PATCH/tags/{tag_id}nameorcolorDELETE/tags/{tag_id}Also adds a
TagIdreusable path parameter component (mirrors the existingAssetIdpattern).Notes
DELETEreturns204 No Content(consistent withDELETE /assets/{asset_id})PATCH /tags/{tag_id}accepts partial updates (name only, color only, or both); no required fieldsTest plan
spectral lint asm/openapi.yaml --ruleset spectral:oas— should pass with no errorsTagIdpattern^tag_[a-z0-9]{16}$matches exampletag_0001aabbccdd0001🤖 Generated with Claude Code
https://claude.ai/code/session_01TCYFsHtDRoo2DqqU7mcFGL
Generated by Claude Code