Skip to main content

pageEditorLockElement

Adds an element identifier to the page's lockedElements, skipping duplicates, and returns true. Use pageEditorUnlockElement to remove the lock. Requires a page editor token for the editor, or a logged-in user who owns the editor or can edit the page'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.

pageEditorLockElement(
pageId: String!
element: String!
): Boolean

Arguments​

pageEditorLockElement.pageId ● String! non-null scalar​

Page UUID from pageEditorCreatePage or pageEditorGetEditor.

pageEditorLockElement.element ● String! non-null scalar​

Element identifier to lock, stored as given.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.