core icon indicating copy to clipboard operation
core copied to clipboard

Enhance PUT /api/v2/tags/{idOrName} and DELETE /api/v2/tags/{tagId} endpoints (Modify Tag Operations)

Open hassandotcms opened this issue 1 year ago • 1 comments

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

  1. Can update tag name and verify via GET
  2. Can update tag site and verify via GET
  3. Update conflicts return 409
  4. Can delete tag and verify it's gone (404 on GET)
  5. 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

hassandotcms avatar Aug 11 '25 15:08 hassandotcms

PRs linked to this issue

github-actions[bot] avatar Aug 25 '25 13:08 github-actions[bot]