---
title: "Update Page"
method: PATCH
path: "/v6/pages/{pageIdOrPathname}"
tags: ["page"]
---

# Update Page

`PATCH /v6/pages/{pageIdOrPathname}`

Updates an existing page.

## Path parameters

- `pageIdOrPathname` string, required

## Query parameters

- `siteId` string, uuid

## Headers

- `x-api-key` string, required

## Request body

- UpdatePageV6RequestBodyDto
  - `pathname` string — The page pathname.
  - `name` string — The page name.
  - `isOnline` boolean — The flag that indicates whether the page is online.

## Response `200`

- UpdatePageV6ResponseBodyDto
  - `object` 'page', required
  - `id` string, uuid, required — The ID of the page.
  - `pathname` string, required — The page pathname.
  - `canonicalUrl` string, nullable, required — The canonical URL of the page.
  - `title` string, nullable, required — The page title.
  - `description` string, nullable, required — The page description.
  - `socialImageUrl` string, nullable, required — The social image URL of the page.
  - `sitemapPriority` number, double, nullable, required — The sitemap priority.
  - `sitemapFrequency` 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never', required — The sitemap update frequency.
  - `createdAt` string, date-time, nullable, required — The page creation date and time.
  - `updatedAt` string, date-time, nullable, required — The page last update date and time.
  - `publishedAt` string, date-time, nullable, required — The page publication date and time.
  - `isOnline` boolean, required — The flag that indicates whether the page is online.
  - `excludedFromSearchEngines` boolean, nullable, required — The flag that indicates whether the page is excluded from search.
  - `locale` string — The page locale. This defaults to the default locale of the parent site.
  - `localizations` UpdatePageV6ResponseBodyDtoLocalizationsItems[], required — The localizations of the page.
    - `locale` string — The locale of the localization.
    - `pathname` string, required — The pathname of the localization.
    - `id` string, uuid — The ID of the localization.

## Other responses

- `400` — Missing pathname field.
- `403` — Access forbidden.
- `409` — A page or route with this pathname already exists.

---

[API](https://skmtc.net/makeswift/apis/rest.md) · [All operations](https://skmtc.net/makeswift/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/makeswift/rest/revisions/9e0c72b4d151/schema)
