curl -X POST 'https://api.example.com/tags' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority"
}'
{
"id": "tag_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
}
Create a new tag within a tag group
curl -X POST 'https://api.example.com/tags' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority"
}'
{
"id": "tag_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
}
tag_{uuidv7}curl -X POST 'https://api.example.com/tags' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority"
}'
{
"id": "tag_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"scopeId": "scope_acme",
"tagGroupId": "tag_group_priority",
"identifier": "high",
"label": "High Priority",
"createdBy": "system",
"createdAt": "2024-01-15T10:30:00Z"
}
Was this page helpful?