Publish a post

Publish a draft on your blog right away with POST /posts/{id}/publish.

Publishes a draft on your blog right away. To publish at a set time, see Schedule a post.

 

Request

Item Value
Method · path POST /posts/{id}/publish
Permission Full access (publish)

 

Request fields

Send it with no body to publish now. To publish, the post needs a title, content, and author.

 

Example

curl -X POST https://api-open.weekerp.com/blog/v1/posts/0193a1f2-7c4e-7b8a-9d10-3f2c1b0a9e87/publish \
  -H "Authorization: Bearer wk_live_xxxxxxxx"

 

Response

You get 200 with the post, and its status changes to published.

If you send publish again for a post that's already published, its publish time is reset and it moves to the top of your blog list. To change only the content, use Update a post.

 

Common errors

HTTP code Fix
400 post_not_publishable Add the missing title, content, or author, then send again
403 api_key_scope_insufficient Send it with a full-access key
404 post_not_found Check the post ID. Posts on other blogs can't be found

For the full list of errors, see Error format in Publish posts with the blog API.

 

Publish after review

Give AI agents and automation a Write only key so they create drafts only. Someone on your team then checks the drafts in the blog dashboard and publishes them.

 

Next steps