LibraryService

UpdateBook

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}

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

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

  • v1639a4ec995ca11See the full diff
    • ▲

      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

  • v100e696b6b84a21See the full diff
    • ▲

      added the pattern ^shelves/[a-z2-7]{26}/books/[a-z2-7]{26}$ to the request property

      request-property-pattern-added

    • ▲

      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 UpdateBook removed and replaced with LibraryService_UpdateBook

      api-operation-id-removed

    • ○

      api operation id LibraryService_UpdateBook removed and replaced with UpdateBook

      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

    • ○

      removed the pattern ^shelves/[a-z2-7]{26}/books/[a-z2-7]{26}$ from the request property

      request-property-pattern-removed

    • ○

      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