---
title: "Updates a page"
method: PUT
path: "/admin/pages/{page_id:(?:\\\\d+)}.json"
tags: ["Page"]
---

# Updates a page

`PUT /admin/pages/{page_id:(?:\\d+)}.json`

## Request body

- UpsertPageRequestDto
  - `is_create_redirect` boolean — Option for create redirect from old page handle to new page handle or not
  - `page` PageRequestDto
    - `body_html` string — The text content of the page, complete with HTML markup.
    - `handle` string — A unique, human-friendly string for the page, generated automatically from its title. In online store themes, the Liquid templating language refers to a page by its handle.
    - `id` integer — The unique numeric identifier for the page.
    - `is_show_in_search` boolean
    - `publish` boolean — Tell whether this page is visible or hidden
    - `search_engine_image` string
    - `search_engine_meta_description` string — The description to display in Search Engine
    - `search_engine_title` string — The title to display in Search Engine
    - `tags` string[]
    - `template` string — Template name which will be used to display. If this field is empty, default template will be used instead
    - `template_shop_id` integer — The template shop id to check shop plusbase
    - `title` string — The page's title.

## Response `200`

OK

- SinglePageSwaggerResponse
  - `page` Page
    - `body_html` string — The text content of the page, complete with HTML markup.
    - `handle` string — A unique, human-friendly string for the page, generated automatically from its title. In online store themes, the Liquid templating language refers to a page by its handle.
    - `id` integer — The unique numeric identifier for the page.
    - `is_show_in_search` boolean
    - `publish` boolean — Tell whether this page is visible or hidden
    - `search_engine_image` string
    - `search_engine_meta_description` string — The description to display in Search Engine
    - `search_engine_title` string — The title to display in Search Engine
    - `tags` string
    - `template` string — Template name which will be used to display. If this field is empty, default template will be used instead
    - `title` string — The page's title.

---

[API](https://skmtc.net/shopbase/apis/shopbase-internal-api.md) · [All operations](https://skmtc.net/shopbase/apis/shopbase-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopbase/shopbase-internal-api/revisions/353ccde6240d/schema)
