core icon indicating copy to clipboard operation
core copied to clipboard

Implement POST /api/v2/tags/_bulk endpoint (Bulk Tag Creation)

Open hassandotcms opened this issue 1 year ago • 0 comments

Task

Context: Part of Feature #32942 (Bulk Operations) in Tags Portlet Modernization Epic. Implements bulk tag creation with partial success support.

Definition of Done:

  • Accepts array of tags with name and optional siteId
  • Optional ownerId for batch ownership assignment
  • Validation: name (required, max 255, no commas), siteId (fallback logic)
  • Max 100 tags per request
  • Partial success support with per-tag transactions
  • Response: created tags + detailed errors with index
  • Response metadata: totalRequested, successful, failed
  • Error responses: 400, 401, 403, 500
  • Integration tests for partial success/validation
  • Postman tests

Proposed Objective

Same as Parent Issue

Proposed Priority

Same as Parent Issue

Acceptance Criteria

  1. Creates up to 100 tags per request
  2. Duplicates fail individually without stopping others
  3. Invalid names fail with specific errors
  4. Empty array returns 400
  5. Array >100 returns 400
  6. Failed tags include index, name, error
  7. Requires authentication and Tags portlet access

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