Skip to content

Publish Blog Post

POST
/api/v1/posts/{id}/publish

Authorizations

SessionAuth

Session ID for authenticated requests

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

Parameters

Path Parameters

id*
Type
string
Required

Responses

Post published

Playground

Server
Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

Publish a draft blog post.

Auth: session + owner/admin.

Parameters

NameInTypeRequiredDescription
idpathstringYesPost id

Request Body

Optional.

json
{}

Response 200

json
{
	"data": { "id": "post_2", "status": "published" },
	"user_context": { "authenticated": true },
	"meta": {}
}

Response Errors

  • 401 missing session
  • 403 not owner/admin
  • 404 post not found

Notes

  • Moves a draft to live content.
  • Usually called after review or editorial approval.