Missing field image_id in API Call /api/books #2828

Closed
opened 2026-02-05 05:22:17 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @bytepoets-ssi on GitHub (Jun 2, 2022).

Describe the Bug

The documentation mentions a field image_id but the API does not deliver it in API Call /api/books

Steps to Reproduce

  1. Log in to Bookstack
  2. Create a book
  3. Add a title image to the book
  4. Open /api/books
  5. Field image_id is missing for every book

Expected Behaviour

The field image_id is returned for every book

Screenshots or Additional Context

The field is mentioned in the source code, but isn't returned anyway
7c597a05f6/app/Http/Controllers/Api/BookApiController.php (L40)

Browser Details

No response

Exact BookStack Version

v22.04.2

PHP Version

No response

Hosting Environment

https://demo.bookstackapp.com

Originally created by @bytepoets-ssi on GitHub (Jun 2, 2022). ### Describe the Bug The documentation mentions a field `image_id` but the API does not deliver it in API Call /api/books ### Steps to Reproduce 1. Log in to Bookstack 2. Create a book 3. Add a title image to the book 4. Open /api/books 5. Field `image_id` is missing for every book ### Expected Behaviour The field `image_id` is returned for every book ### Screenshots or Additional Context The field is mentioned in the source code, but isn't returned anyway https://github.com/BookStackApp/BookStack/blob/7c597a05f69c3c4637d213405e55e922844b46a8/app/Http/Controllers/Api/BookApiController.php#L40 ### Browser Details _No response_ ### Exact BookStack Version v22.04.2 ### PHP Version _No response_ ### Hosting Environment https://demo.bookstackapp.com
OVERLORD added the 🐛 Bug label 2026-02-05 05:22:17 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 2, 2022):

Thanks for reporting @bytepoets-ssi. Looks like this property has been hidden for a couple of years, since about v0.30.0.
I'd suggest we simply remove it from the listing call and the API docs since I can't see it providing much value as-is.

@ssddanbrown commented on GitHub (Jun 2, 2022): Thanks for reporting @bytepoets-ssi. Looks like this property has been hidden for a couple of years, since about v0.30.0. I'd suggest we simply remove it from the listing call and the API docs since I can't see it providing much value as-is.
Author
Owner

@ssddanbrown commented on GitHub (Jun 7, 2022):

As per my last comment, this property has now been removed for documentation.
Change will be included in the next feature release.

@ssddanbrown commented on GitHub (Jun 7, 2022): As per my last comment, this property has now been removed for documentation. Change will be included in the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2828