---
title: "Update page"
method: PATCH
path: "/blogs/{blogId}/pages/{pageId}"
tags: ["Pages"]
---

# Update page

`PATCH /blogs/{blogId}/pages/{pageId}`

## Request

- Base URL: `https://api-docs.justblogged.com/api`
- URL: `https://api-docs.justblogged.com/api/blogs/{blogId}/pages/{pageId}`
- Auth: HTTP bearer

Update an existing page. Authors can update their own pages; admins/owners can update any page.

## Path parameters

- `blogId` string, required
- `pageId` string, required

## Request body

- UpdatePageRequest
  - `title` string
  - `slug` string
  - `body` string
  - `status` 'draft' | 'published'
  - `image` string, nullable
  - `metadata` object
    - `description` string

## Response `200`

Updated page

- Page
  - `id` string, required
  - `title` string, required
  - `slug` string, required
  - `body` string, required: HTML content
  - `status` 'draft' | 'published', required
  - `url` string, uri, required
  - `image` string, uri, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `metadata` object, required
    - `description` string, nullable

## Other responses

- `400`: Invalid request data
- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Resource not found

---

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