---
title: "Edit a page's title or content"
method: PATCH
path: "/business/knowledge-hubs/{hubId}/pages/{pageId}"
tags: ["Knowledge hubs"]
---

# Edit a page's title or content

`PATCH /business/knowledge-hubs/{hubId}/pages/{pageId}`

## Request

- Base URL: `https://api.tryfuse.ai/api/v1`
- URL: `https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/pages/{pageId}`
- Auth: HTTP basic

Edits a page's title and/or Markdown content and re-indexes it into the hub's knowledge store before answering. Editing a generated page flips its `origin` to `edited`; it keeps your text until its sources are re-crawled, at which point an update or refresh of the hub regenerates it. Pages you authored (`origin` `user`) keep your edits permanently. The response carries only the fields this call changes; list the hub's pages for a page's category and createdAt. The hub's owner can edit pages, and so can anyone on the team when it is the team's shared hub.

Errors:
- `404` `KNOWLEDGE_HUB_NOT_FOUND` — No hub with that id, it was deleted, or it belongs to another team.
- `404` `KNOWLEDGE_PAGE_NOT_FOUND` — No page with that id on this hub.
- `409` `KNOWLEDGE_HUB_NOT_READY` — The hub is still building, or its build never finished.
- `409` `KNOWLEDGE_HUB_PAGES_UNAVAILABLE` — The hub predates knowledge pages.
- `403` `KNOWLEDGE_HUB_OWNER_ONLY` — You can read this teammate's hub, but it is not your team's shared hub, so only its owner can edit pages.
- `422` `VALIDATION_FAILED` — Neither title nor content given, or a value too long.
- `500` `UNEXPECTED_ERROR` — The edit was saved but could not be re-indexed; retry the PATCH.
- `429` `RATE_LIMITED` — More than 30 knowledge-hub/campaign requests in a minute (or 1000 in a day). Knowledge hubs share the campaigns bucket.

Requires one of the following token scopes: campaigns.

## Path parameters

- `hubId` string, required: 24-character hex id of the knowledge hub (from GET /business/knowledge-hubs).
- `pageId` string, required: 24-character hex id of the knowledge page (from GET /business/knowledge-hubs/{hubId}/pages).

## Request body

- object: At least one of title or content is required.
  - `title` string: New page title (1-200 characters).
  - `content` string: New Markdown body (1-60,000 characters); a generated page becomes an edited one but is still refreshed when its sources change.

## Response `200`

Success

- object
  - `page` object, required: The fields the update reports. Read the page back with GET /business/knowledge-hubs/{hubId}/pages for its category and createdAt.
    - `id` string, required
    - `title` string, nullable, required
    - `content` string, nullable, required: The page body in Markdown, as stored after this call.
    - `origin` 'generated' | 'edited' | 'user' | 'null', nullable, required: `edited` after you edit a generated page, `user` for a page you authored yourself.
    - `updatedAt` string, date-time, nullable, required

## Other responses

- `400`: Error
- `401`: Error
- `402`: Error
- `403`: Error
- `404`: Error
- `409`: Error
- `422`: Error
- `429`: Error
- `500`: Error

---

[API](https://skmtc.dev/fuseai/apis/fuse-business-api.md) · [All operations](https://skmtc.dev/fuseai/apis/fuse-business-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fuseai/apis/fuse-business-api/revisions/50d95e0536f4?raw)
