Skip to main content

publishVersion

Publishes a saved version and unpublishes the page's other published versions with an equivalent segment. Assigns an unowned editor to the caller, marks the tracking script for an update, and returns all versions of the page oldest first. Fails when the editor owner's account cannot edit the page's site. Requires a logged-in user who owns the editor or can edit the page's site.

publishVersion(
versionId: String!
): [PageVersionResponse!]

Arguments​

publishVersion.versionId ● String! non-null scalar​

Version UUID from pageEditorGetEditor or pageEditorCreateVersion.

Type​

PageVersionResponse object​

Saved version of a page editor page, returned by pageEditorGetEditor, publishVersion, and unpublishVersion. Published versions are applied by the tracking script.