---
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

- Base URL: `https://shop-name.onshopbase.com`
- URL: `https://shop-name.onshopbase.com/admin/pages/{page_id:(?:\\d+)}.json`
- Auth: API key in header `APP_ACCESS_TOKEN`
- TypeScript: <https://skmtc.dev/shopbase/apis/shopbase-internal-api/docs/admin/pages/:page_id:(%3F:%5C%5Cd+).json/put.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/shopbase/apis/shopbase-internal-api.md) - [All operations](https://skmtc.dev/shopbase/apis/shopbase-internal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shopbase/apis/shopbase-internal-api/revisions/353ccde6240d?raw)
