Skip to content

Update Blog Post

PUT
/api/v1/posts/{id}

Authorizations

SessionAuth

Session ID for authenticated requests

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

Parameters

Path Parameters

id*
Type
string
Required

Request Body

application/json
JSON
{
  
"additionalProperties": "string"
}

Responses

Post updated

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

Update an existing blog post.

Auth: session + owner/admin.

Parameters

NameInTypeRequiredDescription
idpathstringYesPost id

Request Body

json
{
	"title": "Updated title",
	"body": "Updated body"
}

Response 200

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

Response Errors

  • 400 invalid update payload
  • 401 missing session
  • 403 not owner/admin
  • 404 post not found

Notes

  • Use this for content edits and metadata changes.
  • Keep slug and visibility in sync with the publishing flow.