core
core copied to clipboard
Implement POST /api/v2/tags/_bulk endpoint (Bulk Tag Creation)
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
- Creates up to 100 tags per request
- Duplicates fail individually without stopping others
- Invalid names fail with specific errors
- Empty array returns 400
- Array >100 returns 400
- Failed tags include index, name, error
- 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