Update Blog Post
Powered by VitePress OpenAPI
Update an existing blog post.
Auth: session + owner/admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Post 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
400invalid update payload401missing session403not owner/admin404post not found
Notes
- Use this for content edits and metadata changes.
- Keep slug and visibility in sync with the publishing flow.