Homepage

admin_page_update

Last edit: Nov 10, 2026

Updates a page found by physical_file_path (or the deprecated id) and returns
it. Soft-deleted pages are found too and can be restored by setting deleted_at
to null. Raises an error when no such page exists; pages stored in a private
module directory cannot be updated

admin_page_update(
  id: ID
  page: UpdatePageInputType!
  physical_file_path: String
): Page

Arguments

id (ID)

Deprecated, use physical_file_path. Id of the page to update

page (UpdatePageInputType)

Attributes to change

physical_file_path (String)

Current physical_file_path of the page to update; takes precedence over id

Type

Page

Page (app/views/pages): Liquid rendered for requests to the URL defined by its slug

Questions?

We are always happy to help with any questions you may have.

contact us