Link books to shelves in the API #1873

Closed
opened 2026-02-05 02:06:33 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @Legoracers on GitHub (Sep 29, 2020).

Currently it is possible to link chapters to books using the API, it is a mandatory option. It isn't yet possible to link books to shelves using the API.

Originally created by @Legoracers on GitHub (Sep 29, 2020). Currently it is possible to link chapters to books using the API, it is a mandatory option. It isn't yet possible to link books to shelves using the API.
Author
Owner

@ssddanbrown commented on GitHub (Oct 1, 2020):

Hi @Legoracers,
You should be able to use the Shelves update request (PUT) to link a shelf to books.
From the docs:

image

Let me know if you experience any trouble using that. Note that it does mention that it will overwrite existing book assignments so, depending on what you're doing, you may need to read the shelf first to get its current assignments.

@ssddanbrown commented on GitHub (Oct 1, 2020): Hi @Legoracers, You should be able to use the Shelves update request (PUT) to link a shelf to books. From the docs: ![image](https://user-images.githubusercontent.com/8343178/94744763-6f64d900-0371-11eb-93ec-cf601522506c.png) Let me know if you experience any trouble using that. Note that it does mention that it will overwrite existing book assignments so, depending on what you're doing, you may need to read the shelf first to get its current assignments.
Author
Owner

@Legoracers commented on GitHub (Oct 1, 2020):

Thank you for the response! I will try it shortly and will let you know.

@Legoracers commented on GitHub (Oct 1, 2020): Thank you for the response! I will try it shortly and will let you know.
Author
Owner

@Legoracers commented on GitHub (Oct 1, 2020):

It worked, thanks!

@Legoracers commented on GitHub (Oct 1, 2020): It worked, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1873