LibraryService

Updates a book. Returns INVALID_ARGUMENT if the name of the book is non-empty and does not equal the existing name.

put/v1/shelves/{shelf}/books/{book}

Request

  • Base URL
    https://library-example.googleapis.com
  • Auth
    none declared

Path parameters

shelfstring required

The shelf id.

bookstring required

The book id.

Query parameters

namestring

The name of the book to update.

Request body

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.

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

    • breaking

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

    • breaking

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

    • breaking

      the request property became required

    • info

      the response property became required for the status