POST/v1/blogs/{subdomain}/posts/{id}/publish

Publish a post

Makes a post visible. This is the only effect: no newsletter is sent and no cross-posting is triggered (those are separate, explicit actions).

A future publishedAt schedules the post: it stays hidden and is published at 00:00 UTC that day. Defaults to today when omitted. Publishing an already-published post is a no-op, and a future date on it is refused. Publishing a scheduled post without a date publishes it now.

Parameters

subdomainpathstringrequired
idpathstringrequired

Request body

application/json

publishedAtstring (date)optional
Publication date (ISO 8601). A future date schedules the post, published at 00:00 UTC that day. Defaults to today when omitted.

Responses

200
Post published
idstringrequired
Unique post identifier
titlestringrequired
Post title
slugstringrequired
URL-safe slug
statusstringrequired
Publication state
One ofDRAFTIN_REVIEWSCHEDULEDPUBLISHED
excerptstringoptional
Short excerpt or teaser text, if provided by the author
contentstringrequired
Full post body in the format described by contentFormat
contentFormatstringrequired
Format of the content field. Currently always markdown.
publishedAtstring (date)optional
Date the post was published (ISO 8601 date). Null if the post is not yet published.
updatedAtstring (date-time)required
Date and time the post was last updated (ISO 8601 datetime)
coverImageUrlstringoptional
URL of the post cover image
urlstringrequired
Canonical public URL of the post
accessModestringrequired
Content access mode: FREE (visible to all readers) or PAID (requires an active paid subscription)
clapsinteger (int64)required
Total number of claps / reactions the post has received
tagsobject[]required
Tags associated with this post
2 properties
namestringrequired
Human-readable tag name
slugstringrequired
URL-safe slug — use as the tag query parameter when filtering posts
authorsobject[]required
Authors credited on this post
3 properties
namestringrequired
Display name of the author
avatarUrlstringoptional
URL of the author's avatar image
shortBiostringoptional
Short one-line biography suitable for bylines
canonicalUrlstringoptional
URL of the original version of this article, when it was first published elsewhere (Medium, dev.to, a personal blog...). Not to be confused with url, which is this post's own address on this blog. Null when this post is the original.

Code example

POST/v1/blogs/{subdomain}/posts/{id}/publish
curl -X POST \
  -H "Accept: application/json" \
  "https://api.writizzy.com/v1/blogs/<subdomain>/posts/<id>/publish"