---
title: "Update a page"
method: PUT
path: "/papi/project/{projectId}/pages/{pageSlug}"
tags: ["Pages"]
---

# Update a page

`PUT /papi/project/{projectId}/pages/{pageSlug}`

## Request

- Base URL: `https://api.websitepublisher.ai`
- URL: `https://api.websitepublisher.ai/papi/project/{projectId}/pages/{pageSlug}`
- Auth: OAuth 2 (authorization code, authorization URL `https://api.websitepublisher.ai/dapi/oauth/authorize`, token URL `https://api.websitepublisher.ai/dapi/oauth/token`, scopes: `read`, `write`)

Replace the entire content of a page. For small changes, prefer patchPage which is more efficient and provides conflict detection.

## Path parameters

- `projectId` integer, required
- `pageSlug` string, required

## Request body

- PageUpdate
  - `content` string
  - `meta` PageMeta
    - `title` string
    - `landingpage` boolean: True for homepage
    - `language` string
  - `seo` PageSeo
    - `title` string
    - `description` string
    - `keywords` string
    - `robots_index` boolean: Allow search engines to index this page. Default: false (noindex). Set to true to appear in Google.
    - `robots_follow` boolean: Allow search engines to follow links on this page. Default: false.
  - `base_version_hash` string: Version hash from getPage. Required when updating content to prevent accidental overwrites. Omit only with force: true.
  - `force` boolean: Skip version hash check and overwrite regardless of changes by others.

## Response `200`

Updated

---

[API](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api.md) · [All operations](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/revisions/e9df1ef10551?raw)
