Edit page text
edit_pageFind and replace exact text in a BookStack page's Markdown source to fix or extend part of a page without resending all content; requires exact match on Markdown-editor pages only.
Instructions
Exact find-and-replace in a page's Markdown source — the cheap way to fix or extend part of a page without resending all of it. old_text must match the source exactly (read the page with get first). Only for Markdown-editor pages; for WYSIWYG pages use update_page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| new_text | Yes | Replacement text (empty string deletes old_text) | |
| old_text | Yes | Exact text to find, including whitespace and Markdown syntax | |
| replace_all | No | Replace every occurrence instead of requiring exactly one |