curl -X POST 'https://api.example.com/tags/batch' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority"
},
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "medium",
"label": "Medium Priority"
},
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "low",
"label": "Low Priority"
}
]'
[
{
"id": "tag_high",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "tag_medium",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "medium",
"label": "Medium Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "tag_low",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "low",
"label": "Low Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
}
]
Create multiple tags in a single request
curl -X POST 'https://api.example.com/tags/batch' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority"
},
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "medium",
"label": "Medium Priority"
},
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "low",
"label": "Low Priority"
}
]'
[
{
"id": "tag_high",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "tag_medium",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "medium",
"label": "Medium Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "tag_low",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "low",
"label": "Low Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
}
]
tag_{uuidv7}.curl -X POST 'https://api.example.com/tags/batch' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority"
},
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "medium",
"label": "Medium Priority"
},
{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "low",
"label": "Low Priority"
}
]'
[
{
"id": "tag_high",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "tag_medium",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "medium",
"label": "Medium Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
},
{
"id": "tag_low",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "low",
"label": "Low Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
}
]
Was this page helpful?