set_list_book
Put a book on your lists (on_list=true) or take it off (on_list=false): one list with list_id (optionally at a position), or up to 20 at once with list_ids.
Instructions
Put a book on your lists (on_list=true) or take it off (on_list=false): one list with list_id (optionally at a position), or up to 20 at once with list_ids. Idempotent: lists already in the requested state don't change, and an existing entry's position is not moved. Does not touch your library or reading status (use set_user_book). With list_id returns list_id, book_id, on_list, 'changed', and list_book_id; with list_ids returns one result per list, and a list that isn't yours or fails gets an 'error' while the others still change. Find list ids with get_list (or a book's current lists with get_user_book) and book ids with search_books.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | Hardcover book ID. | |
| list_id | No | Hardcover list ID. Use this or list_ids. | |
| on_list | Yes | true to add the book, false to remove it. | |
| list_ids | No | Several list IDs (up to 20). Use this or list_id. | |
| position | No | Position when adding to a single list_id (optional; ignored when removing). |