Site Management Endpoints
These are the Secure API endpoints behind the portal's site version history. Use them when you are managing sites programmatically rather than through the portal UI.
For the owner-facing walkthrough of the same feature, see Version History.
Site versions
| Method | Path | Purpose |
|---|---|---|
GET | /api/siteVersions?siteId={id} | List versions for a site (newest first) |
GET | /api/siteVersion?siteId={id}&version={n} | Fetch a specific version snapshot |
PUT | /api/siteVersion/revert | Revert to a version (body: { siteId, version }) |
Every revert writes a new version entry recording what was reverted and to which prior version, so a revert is itself revertible: revert again to the post-revert version.
Matching MCP tools
The MCP server exposes the same three operations as tools, which is usually the easier path if you are driving Vivreal from an AI agent:
| Tool | Scope | Notes |
|---|---|---|
list-site-versions | cms.read | Read-only |
get-site-version | cms.read | Read-only |
revert-site-version | cms.write | Content rollback only, does not redeploy |
See MCP Tools for the full catalogue.