Skip to content

Create Blog Tags in Bulk​

POST
/api/v1/posts/tags/bulk

Authorizations​

SessionAuth

Session ID for authenticated requests

Type
API Key (header: X-Session-ID)

Request Body​

application/json
JSON
{
  
"names": [
  
  
"string"
  
]
}

Responses​

Tags created

Playground​

Server
Authorization
Body

Samples​

Powered by VitePress OpenAPI

Create several blog tags in one request. Existing slugs are skipped.

Auth: session + admin.

Parameters ​

None.

Request Body ​

json
{
	"names": ["release", "api"]
}

Response 201 ​

json
{
	"data": [
		{ "id": "tag_2", "name": "release", "slug": "release" }
	],
	"user_context": { "authenticated": true, "user_type": "admin" },
	"meta": {}
}

Response Errors ​

  • 400 invalid payload
  • 401 missing session
  • 403 missing admin role