upsert_help_center_article
Create or update a help center article (saved as draft). Use HTML content; for updates, preserve original HTML exactly. Returns article data and edit link.
Instructions
Create or update a help center article. Articles are always saved as DRAFT status. To update an existing article, provide helpCenterArticleId. Content must be HTML (not markdown). Returns the article data and a link to edit it in the Plain UI.
IMPORTANT: When updating an existing article, you MUST preserve the original HTML formatting exactly. Copy the existing contentHtml verbatim and only modify the specific parts that need changing. Do NOT reformat, re-indent, restructure tags, collapse whitespace, change tag styles, or rewrite any HTML that isn't part of your intended edit. Treat the HTML as a surgical edit, not a rewrite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL slug for the article | |
| title | Yes | Article title | |
| contentHtml | Yes | Article content as HTML (not markdown) | |
| description | Yes | Short description / summary of the article | |
| helpCenterId | Yes | The ID of the help center to create/update the article in | |
| helpCenterArticleId | No | Existing article ID for updates. Omit to create a new article. | |
| helpCenterArticleGroupId | No | Article group ID to place the article in |