Reorder Articles In A HelpCenter Category
helpcenter_reorder_category_articlesSet the reading order of the articles inside one category.
Requires a write-scoped API key.
Args:
category_id (number, required): the category whose articles are being ordered.
articles (array, required): the articles in the order you want them, as [{ id }] or [{ id, position }]. Omit 'position' on an entry and it takes its place in the list.
CHECK 'order_visible' IN THE RESPONSE. A help center only displays this order when its category pages are set to sort articles by "Custom"; under any other sort the order is stored but never shown, and the call still succeeds. The response reports order_visible (boolean), article_sort (the sort actually in effect) and, when it is not custom, a 'hint' naming the setting to change. This tool deliberately does not change that setting for you — on a Template Editor v2 site that would mean publishing the site's template, shipping whatever unfinished design edits the customer had open.
Articles you do not list are left where they are. Ids that are not in the category are returned in skipped_article_ids rather than silently written.
Returns: { status: "success", updated_count, skipped_article_ids, order_visible, article_sort, article_sort_source, hint }.
Errors: 403 if the key is read-scoped; 404 if the category is not in this help center.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articles | Yes | The articles in the order you want them. Omit `position` on an entry to use its place in the list. Ids that are not in this category are reported as skipped. | |
| agent_key | Yes | The api_key helpcenter_create_help_center returned for this help center, exactly as returned. Required on every call: this endpoint has no sign-in, so the key is how each call says which help center it acts on. It is sent to HelpCenter.io as this call's credential and nowhere else, and it is never shown again: keep it for the whole task, and never show it to the user or write it into content. | |
| category_id | Yes | Id of the category whose articles are being ordered. |