Restore a Design Version
helpcenter_restore_template_versionLoad an earlier published design into the DRAFT, replacing the draft's current content — to undo a change, or bring back a previous look. It does NOT go live until you publish it (unlike the Template Editor's one-click revert), so the customer can review it first.
Unpublished draft edits are replaced.
Args:
version_id (number): from helpcenter_list_template_versions.
etag (string, optional): refuse if the draft changed since you read it.
Returns: the draft status. Errors: 404 version_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | No | Optimistic lock: the draft etag from your last read, or the one your last edit returned. When given, the call is refused (stale_draft) if someone changed the draft since — so you never build on a state you have not seen. Omit to apply to the current draft. | |
| 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. | |
| version_id | Yes | Id of the published version to load into the draft, from helpcenter_list_template_versions. |