The Create Page API cannot create an empty page. #4482

Open
opened 2026-02-05 08:58:44 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @toras9000 on GitHub (Feb 25, 2024).

Describe the Bug

In the Create Page API, requests with empty or whitespace in the markdown/html properties do not succeed.

Steps to Reproduce

It is always reproduced by a page creation request with empty content.
{"name":"page","book_id":30,"markdown":""}

Expected Behaviour

I don't think an empty page with no content is worthless.
Since empty pages can be created in the browser, it would be preferable to be able to create them in the API as well.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.12.2

Originally created by @toras9000 on GitHub (Feb 25, 2024). ### Describe the Bug In the Create Page API, requests with empty or whitespace in the `markdown`/`html` properties do not succeed. ### Steps to Reproduce It is always reproduced by a page creation request with empty content. `{"name":"page","book_id":30,"markdown":""}` ### Expected Behaviour I don't think an empty page with no content is worthless. Since empty pages can be created in the browser, it would be preferable to be able to create them in the API as well. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v23.12.2
OVERLORD added the 🔨 Feature Request🔩 API Request labels 2026-02-05 08:58:44 +03:00
Author
Owner

@SvenHerr commented on GitHub (Apr 16, 2024):

I agree with you

@SvenHerr commented on GitHub (Apr 16, 2024): I agree with you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4482