curl --request POST \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/tags \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'Create a new tag
curl --request POST \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/tags \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"name": "Artificial Intelligence",
"description": "AI-related content"
}
slug is automatically generated from the name.
{
"id": "tag789",
"name": "Artificial Intelligence",
"slug": "artificial-intelligence",
"description": "AI-related content",
"createdAt": "2024-03-22T10:00:00Z",
"updatedAt": "2024-03-22T10:00:00Z"
}
{
"error": {
"code": "TAG_NAME_EXISTS",
"message": "A tag with this name already exists",
"details": {
"name": "Artificial Intelligence"
}
}
}
curl -X POST "https://api.metabind.ai/v1/organizations/org123/projects/proj456/tags" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Artificial Intelligence",
"description": "AI-related content"
}'