---
title: "Update a page"
method: PUT
path: "/pages/{id}"
---

# Update a page

`PUT /pages/{id}`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/pages/{id}`
- Auth: HTTP basic

Updates an existing page by ID.

## Path parameters

- `id` integer, required

## Request body

- PageUpdate
  - `title` string: The name/title of the page.
  - `slug` string: The URL slug for the page (without domain).
  - `metaTitle` string: The title tag for the page.
  - `metaKeywords` string: The meta keywords for the page.
  - `metaDescription` string: The meta description for the page.
  - `content` string: The content for the page.
  - `customContent` string: Additional content for the page.

## Response `200`

Page updated successfully.

- Page
  - `id` integer: Unique identifier for the page.
  - `createdAt` string, date-time: Timestamp when the page was created.
  - `title` string: The name/title of the page.
  - `slug` string: The URL slug for the page.
  - `url` string: The full URL for the page.
  - `metaTitle` string: The title tag for the page.
  - `metaKeywords` string: The meta keywords for the page.
  - `metaDescription` string: The meta description for the page.

## Other responses

- `400`: Invalid request data.
- `401`: Unauthorized. Invalid or missing API key.
- `404`: Page not found.
- `500`: Server error.

---

[API](https://skmtc.dev/ecommerceapi/apis/website-pages.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/website-pages/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/website-pages/revisions/bf3bc3622f22?raw)
