Create Blog Tag
Powered by VitePress OpenAPI
Create a blog tag.
Auth: session + admin.
Parameters
None.
Request Body
json
{
"name": "Product",
"slug": "product",
"lang": "en"
}lang is optional. When omitted, the tag is stored as BLOG_DEFAULT_LANG. Send the post language when the tag is created from that post.
Response 200
json
{
"data": { "id": "tag_2", "name": "Product", "slug": "product" },
"user_context": { "authenticated": true, "user_type": "admin" },
"meta": {}
}Response Errors
400invalid tag payload401missing session403missing admin role429RATE_LIMIT_EXCEEDED
Notes
Rate limit:
postbucket, 10 requests / 3600s by default. A session that can publish (admin,superadmin,author,editor, or the roles inBLOG_ALLOWED_POST_ROLESandBLOG_ADMIN_ROLES) is not counted. Otherwise429RATE_LIMIT_EXCEEDED. See Rate limits.Use this for editorial tags and classification.
Keep tag slugs short and stable.