Replaces the Book resource.

PUT /books/{id}

Replaces the Book resource.

Path parameters

  • id string Required

    Book identifier

Body Required

The updated Book resource

Responses

PUT /books/{id}
curl \
 -X PUT http://api.example.com/books/{id} \
 -H "Content-Type: application/json" \
 -d '{"isbn":"string","title":"string","description":"string","author":"string","publicationDate":"2023-05-04T09:42:00+00:00","reviews":["string"]}'
Request example
{
  "isbn": "string",
  "title": "string",
  "description": "string",
  "author": "string",
  "publicationDate": "2023-05-04T09:42:00+00:00",
  "reviews": [
    "string"
  ]
}
Request examples
{
  "isbn": "string",
  "title": "string",
  "description": "string",
  "author": "string",
  "publicationDate": "2025-05-04T09:42:00Z",
  "reviews": [
    "string"
  ]
}
Response examples (200)
{
  "id": 42,
  "isbn": "string",
  "title": "string",
  "description": "string",
  "author": "string",
  "publicationDate": "2023-05-04T09:42:00+00:00",
  "reviews": [
    "string"
  ]
}
Response examples (200)
{
  "id": 42,
  "isbn": "string",
  "title": "string",
  "description": "string",
  "author": "string",
  "publicationDate": "2025-05-04T09:42:00Z",
  "reviews": [
    "string"
  ]
}