---
title: "MoveBook"
method: POST
path: "/v1/shelves/{shelf}/books/{book}:move"
tags: ["LibraryService"]
---

# MoveBook

`POST /v1/shelves/{shelf}/books/{book}:move`

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.

## Path parameters

- `shelf` string, required
- `book` string, required

## Request body

- MoveBookRequest — Describes what book to move (name) and what shelf we're moving it to (other_shelf_name).
  - `name` string, required — The name of the book to move.
  - `other_shelf_name` string, required — The name of the destination shelf.

## Response `200`

OK

- Book — A single book in the library.
  - `name` string, 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.
  - `author` string — The name of the book author.
  - `title` string — The title of the book.
  - `read` boolean — Value indicating whether the book has been read.
  - `borrow_time` string, date-time — The previous borrowing timestamp.
  - `created_at` string, date-time — The creation date and time.
  - `updated_at` string, date-time — The last update date and time.

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/kollalabs/apis/libraryservice-api.md) · [All operations](https://skmtc.net/kollalabs/apis/libraryservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kollalabs/libraryservice-api/revisions/b3518c94ac37/schema)
