Update Article Section
update_article_sectionReplace a single article section's body in a given locale while keeping its heading and the rest of the article intact. Fetches the current body, swaps the targeted section, and PUTs the rebuilt body via the Translations API.
Instructions
Replace the body of one article section, heading excluded (the heading is kept as is), in a given locale, leaving the rest of the article intact. The server fetches the current body, replaces the targeted section, and PUTs the full reconstructed body via the Translations API. A leading heading in content that repeats the section heading is removed; any other h1-h3 in content creates new sections and shifts the later indexes (the response warns). section_index 0 is the heading-less intro, which exists only when the body has text before its first heading. Default format="html" for fidelity. Use format="markdown" only when you control the input and know it does not rely on structures that round-trip poorly (code blocks with line breaks, tables with multi-paragraph cells).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Input format. "html" (default) is the safe path. "markdown" is converted to HTML server-side but may introduce artifacts on complex content. | html |
| locale | Yes | Locale of the translation to update | |
| content | Yes | New content for the section (heading excluded: send neither the heading nor the "## [n] hN: ..." label line that get_article_section prints). HTML by default, Markdown if format="markdown". | |
| article_id | Yes | Article ID — the numeric id of the Help Center article. Obtain it from list_articles or search_articles. | |
| section_index | Yes | 0-based index of the section to replace (see get_article_outline). 0 is the heading-less intro when the body has text before its first heading, otherwise the first heading. |