Docs

Publish a docs article

Updated Dec 2, 2026

POST/docs/articles/{article_id}/publish

Publishes 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

AuthorizationstringHeaderrequired
Bearer <token>

Authorization: Bearer YOUR_API_KEY. /v2 accepts no other method.

Parameters

Path

article_idintegerrequired

Request body required

application/json
base_versionintegerrequired

The article's current_version as you read it.

titlestring

One line: line breaks become spaces.

minLength: 1maxLength: 200
descriptionstring

A one-line summary. "" clears it.

maxLength: 300
contentstring

The whole body, in the Markdown described on create, at most 1 MB. It replaces the stored one.

segmentstring

The slug of the segment whose users may read the article. "": everyone.

maxLength: 255

Responses

OK

statusstring
dataDocsArticle

The 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.