Pages
Rollback page to previous version
Creates a new version with the content from a previous version (forward-only, audit trail preserved). Specify target_version (number) or target_version_hash. Use getPageVersions to find available versions.
post/papi/project/{projectId}/pages/{pageSlug}/rollback
Request
- Base URL: https://api.websitepublisher.ai
- URL: https://api.websitepublisher.ai/papi/project/{projectId}/pages/{pageSlug}/rollback
- Auth: OAuth 2 (authorization code, authorization URL https://api.websitepublisher.ai/dapi/oauth/authorize, token URL https://api.websitepublisher.ai/dapi/oauth/token, scopes: read, write)
Path parameters
projectIdinteger required
pageSlugstring required
Request body
Example request
{
"target_version": 2,
"target_version_hash": "6db1457e"
}Response
Rollback successful. Returns new version number and hash.
Changes
No recorded changes to this operation across all 1 revision of this API.