Create Blog Categories in Bulk
Powered by VitePress OpenAPI
Create several blog categories in one request. Existing slugs are skipped.
Auth: session + admin.
Parameters
None.
Request Body
json
{
"names": ["Engineering", "Design"],
"lang": "en"
}Response 201
json
{
"data": [
{ "id": "cat_2", "name": "Engineering", "slug": "engineering" }
],
"user_context": { "authenticated": true, "user_type": "admin" },
"meta": {}
}Response Errors
400invalid 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.