This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Restores an earlier version of a project.
Sets the project's headReleaseId to the release specified in releaseId. Your app then
previews that release, and the next design save or edit by the coding agent branches from it.
Restoring a release doesn't change the project's live app.
Only the project's owner can restore a release.
To confirm that the release belongs to the project before it's restored, specify
himalayaControlToken. To record the restored version in a conversation, specify the
conversation's ID in conversationId. A CHECKPOINT message is then added to the conversation.
If the checkpoint can't be added, the release is still restored.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.