Restore chart version
restore_chart_versionUse this when the user wants a saved chart to go back to an earlier version from list_chart_versions. Publishes that version's document again as a new version, keeping the chart's id and URLs, so the version it replaces stays restorable. Refuses charts with unpublished editor changes; requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Opaque 32-character saved-chart id | |
| version | Yes | Version number from list_chart_versions | |
| acceptLosses | No | Compatibility loss codes explicitly accepted by the user for restoring an older document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Opaque 32-character saved-chart id | |
| view | Yes | ||
| title | Yes | Saved chart title | |
| source | Yes | Chart origin; an open set of string values | |
| editUrl | Yes | ||
| embedUrl | Yes | Interactive-embed URL | |
| imageUrl | Yes | Rendered-image URL | |
| createdAt | Yes | ISO-8601 creation timestamp | |
| manageUrl | Yes | ||
| sizeBytes | Yes | Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet | |
| updatedAt | Yes | ISO-8601 last-update timestamp | |
| documentUrl | Yes | Owner-only chart-document endpoint | |
| publishedAt | Yes | ISO-8601 publish timestamp, or null when public URLs are dark | |
| versionNumber | Yes | Number of the version the chart publishes now; list_chart_versions lists the earlier ones and restore_chart_version publishes one again |