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.

Changes

Changed in 8 of the 12 revisions of this API.117

    • ▲

      the request's body type changed from no type to object

      request-body-type-changed

    • ▲

      the response's body type changed from no type to object for status

      response-body-type-changed

  • v1639a4ec995ca21See the full diff
    • ▲

      the request property became required

      request-property-became-required

    • ▲

      the request property became required

      request-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ▲

      the response's property format changed from RFC3339 to date-time for status

      response-property-type-changed

  • v100e696b6b84a11See the full diff
    • ▲

      the response's property format changed from date-time to RFC3339 for status

      response-property-type-changed

    • ○

      the response's property pattern ^shelves/[a-z2-7]{26}/books/[a-z2-7]{26}$ was added for the status

      response-property-pattern-added

    • ▲

      the response's property format changed from RFC3339 to date-time for status

      response-property-type-changed

    • ○

      api operation id MoveBook removed and replaced with LibraryService_MoveBook

      api-operation-id-removed

    • ○

      api operation id LibraryService_MoveBook removed and replaced with MoveBook

      api-operation-id-removed

  • v11f7e8ced536943See the full diff
    • ▲

      the request's body type changed from object to no type

      request-body-type-changed

    • ▲

      the response's body type changed from object to no type for status

      response-body-type-changed

    • ▲

      the response property became optional for the status

      response-property-became-optional

    • ▲

      the response's property format changed from date-time to RFC3339 for status

      response-property-type-changed

    • ○

      the request property became optional

      request-property-became-optional

    • ○

      the request property became optional

      request-property-became-optional

    • ○

      the response's property pattern ^shelves/[a-z2-7]{26}/books/[a-z2-7]{26}$ was removed for the status

      response-property-pattern-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog