core
core copied to clipboard
Enhance PUT /api/v2/tags/{idOrName} and DELETE /api/v2/tags/{tagId} endpoints (Modify Tag Operations)
Task
Context: Part of Feature #32941 (Single Tag Operations) in Tags Portlet Modernization Epic. This story completes the CRUD operations by adding update and delete, which can be tested using the GET endpoint
Definition of Done:
- PUT /api/v2/tags/{idOrName} implementation:
- Dual identification (UUID or name+siteId)
- Name and site assignment updates
- 409 Conflict for duplicates
- Validation matching POST
- DELETE /api/v2/tags/{tagId} implementation:
- UUID-only identification
- Removes tag and associations
- Returns 204 No Content
- Transaction handling
- Error responses (400, 401, 403, 404, 409, 500)
- Integration tests using GET for verification
- Postman tests for update→verify and delete→verify
Proposed Objective
Same as Parent Issue
Proposed Priority
Same as Parent Issue
Acceptance Criteria
- Can update tag name and verify via GET
- Can update tag site and verify via GET
- Update conflicts return 409
- Can delete tag and verify it's gone (404 on GET)
- Delete removes all tag_inode associations
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response