100 tags per request.categoryId or categoryName.curl --location '/tags/bulk' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tags": [
{
"name": "VIP",
"description": "High value clients",
"order": 10,
"categoryId": 1,
"categoryName": "Marketing"
}
]
}'{
"results": [
{
"index": 0,
"status": 201,
"tag": {
"id": 10,
"name": "VIP",
"description": "High value clients",
"category": {
"id": 1,
"name": "Marketing"
}
}
},
{
"index": 1,
"status": 400,
"error": {
"error": "Provide exactly one of 'categoryId' or 'categoryName'."
}
},
{
"index": 2,
"status": 404,
"error": {
"error": "Category not found"
}
},
{
"index": 3,
"status": 409,
"error": {
"error": "Tag name already exists",
"field": "name",
"value": "VIP"
}
}
]
}