Skip to content

DraftArticle

What makes a draft that of an article: the draft’s text is the body in Markdown. The title and the summary may be empty while the user writes; publishing the draft checks them as createArticle does.

object
title
required

The title, as plain text; empty while there is none.

string
summary
required

The summary, as plain text; empty makes one from the body when the draft is published.

string
cover

The cover image; omitted when there is none.

Schema: StatusMediaItem

object
tags
required

The hashtags, as the user gave them.

Array<string>
images
required

The IDs of the user’s own uploads that the body shows as images (![alt](media:ID)), each once, ordered by ID; the server finds them in the body at each save, and keeps the uploads while the draft names them.

Array<string>

Example generated

{
"title": "example",
"summary": "example",
"cover": {},
"tags": [
"example"
],
"images": [
"01890a5d-ac96-774b-bcce-b302099a8057"
]
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site