revert_to_version
Restore content to a previous version by creating a new version with old data, enabling content recovery and version control in LightCMS.
Instructions
Revert content to a previous version. Creates a new version with the old data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_id | Yes | Content ID (MongoDB ObjectID),required | |
| version | Yes | Version number to revert to,required | |
| version_comment | No | Optional comment for the revert (e.g., 'Reverted to v3') |