v1

latestOpenAPI 3.0.32026-07-1711821.4 KB
LibraryService

MoveBook

Moves a book to another shelf, and returns the new book. The book id of the new book may not be the same as the original book.

post/v1/shelves/{shelf}/books/{book}:move

Path parameters

shelfstring required

The shelf id.

bookstring required

The book id.

Request body

namestring required

The name of the book to move.

other_shelf_namestring required

The name of the destination shelf.

Response

OK

namestring required

The resource name of the book. Book names have the form shelves/{shelf_id}/books/{book_id}. The name is ignored when creating a book.

authorstring

The name of the book author.

titlestring

The title of the book.

readboolean

Value indicating whether the book has been read.

borrow_timestring date-time

The previous borrowing timestamp.

created_atstring date-time

The creation date and time.

updated_atstring date-time

The last update date and time.