Review API Update Limitations
- You can only update text content via API.
- To replace images, use the ScreenSteps web or desktop app.
- API updates appear in Activity logs as the user whose credentials are used.
Retrieve Article Content
- Get the article JSON via the API.
How to retrieve article contents - Find the content_blocks key.
- Each block has: uuid, type, depth.
- depth 0 = top-level block.
- type shows block type (see table below).
| Content Block Type | Values |
|---|---|
| StepContent | title: string content_block_ids: array foldable: boolean auto_numbered: boolean depth: integer |
| TextContent | body: string (html text) style: string (introduction, info, alert, tip, or warning) |
| HtmlEmbedContent | body: string (html text) |
| ImageContentBlock | image_asset_id: integer alt_tag: string |
| AttachmentContent | file_asset_id: integer |
| CodeContent | body: string |
| TableContent | body: string |
- StepContent blocks are headings and can have child content_block_ids.
Modify Article JSON
- Edit the content_blocks array to update text.
- To add blocks, include all required values from the table above.
Upload Changes via API
- POST the modified JSON to:
/api/v2/sites/:site_id/articles/:article_id/contents - Include JSON data like:
{ article: { title: "Article title", content_blocks: [ { uuid: "ase4399s", type: "StepContent", title: "First step", depth: 0 } ], publish: true } } - Set publish to true to make updates live.
If omitted, a draft is saved.