Skip to main content

pageEditorUpdateVersion

Overwrites a saved version's patch, segment, and name; omitted segment or name are cleared. Returns the version UUID with thumbnail upload details and does not change publication. Requires a page editor token for the editor, or a logged-in user who owns the editor or can edit the version's site.

Page editor

This operation serves the Crazy Egg page editor. Besides personal access tokens, it accepts the page editor's own credential, and it checks access to the editor, page or site involved.

pageEditorUpdateVersion(
id: String!
patch: String!
segment: String
name: String
): PageEditorUpdateVersionResponse!

Arguments​

pageEditorUpdateVersion.id ● String! non-null scalar​

Version UUID from pageEditorGetEditor or pageEditorCreateVersion.

pageEditorUpdateVersion.patch ● String! non-null scalar​

JSON-encoded string, stored without validation, in the A/B test editorPatch format of the ab-test-variant-patches skill: a default array of one-change transforms plus optional style and script. Example: {"default":[{"target":"h1","text":"New headline","finalSelectors":["h1"]}]}

pageEditorUpdateVersion.segment ● String scalar​

JSON-encoded audience definition in the audienceDefinitionContract format, stored without validation; omit to clear it. Example: {"version":1,"operator":"and","conditions":[]}

pageEditorUpdateVersion.name ● String scalar​

Version name; omit to clear it.

Type​

PageEditorUpdateVersionResponse object​

Version UUID and thumbnail details from pageEditorCreateVersion and pageEditorUpdateVersion.