REST API to export content packages, so Production content can be synced to lower environments automatically
We run a multi-site CMS (SaaS) implementation with a Production instance and three test instances (Dev, QA/UAT and Hotfix). To test, run UAT and build hotfixes against realistic content, we need to copy Production content down to the lower instances regularly, per site.
Today only half of this can be automated. An Episerver Data package can be imported through the REST API (POST /v1/experimental/packages), and the import completed webhook tells us when it finishes. But the package can only be exported from the UI (Settings > Export Data). Every sync therefore needs a person to log in to Production, select a subtree, export, download the file and hand it off. That blocks CI/CD automation, and the only workarounds are browser automation against the Production CMS UI or rebuilding content item by item through the content API.
Request:
An export endpoint in the CMS REST API that produces an Episerver Data package, with the same options as the UI: root content item or application, include sub items, include files the pages link to, and language.
Asynchronous handling for large exports, with a status endpoint or an "export completed" webhook event to match the existing import completed event.
Move the package import endpoint out of experimental, and document its options for "update existing content items with matching ID", destination and language.
Ideally, a supported "copy content from Production to a test instance" operation, per application, with an option to replace the existing content in the target. CMS PaaS customers can already copy content down through the PaaS portal.
Value: lower environments that stay in step with Production without manual work, safer hotfixes and UAT, and a content sync that can run in a deployment pipeline. The need grows with every site added to the instance.
Related: idea CMS-I-613 (https://feedback.optimizely.com/ideas/CMS-I-613) asks for the same outcome.