Publish a docs article
Updated Dec 2, 2026
/docs/articles/{article_id}/publishPublishes the saved working copy: readers see this version from now on. Fields you send are saved first, in the same step. Publishing an unpublished article puts it back online, and publishing again without changes keeps current_version.
base_version is required, as on an update, and 409 stale_version means the same: someone saved after the version you sent, so read the article again before you publish. On an endpoint page, a changed title or description is refused with 400, as on an update.
A new segment on a plan without user segmentation is refused with HTTP 200 and data.code: upgrade_required. Each publish counts toward the save limit of the key's owner.
Authorization
AuthorizationstringHeaderrequiredBearer <token>Authorization: Bearer YOUR_API_KEY. /v2 accepts no other method.
Parameters
Path
article_idintegerrequiredRequest body required
application/jsonbase_versionintegerrequiredThe article's current_version as you read it.
titlestringOne line: line breaks become spaces.
minLength: 1maxLength: 200descriptionstringA one-line summary. "" clears it.
maxLength: 300contentstringThe whole body, in the Markdown described on create, at most 1 MB. It replaces the stored one.
segmentstringThe slug of the segment whose users may read the article. "": everyone.
maxLength: 255Responses
OK
statusstringdataDocsArticleThe published shape of a docs article. Text fields hold the saved working copy: while state is changed, readers still see the version last published. Fields are added over time and never removed: ignore any you do not recognise.
