Updates the Review resource.

PATCH /reviews/{id}

Updates the Review resource.

Path parameters

  • id string Required

    Review identifier

Body Required

The updated Review resource

  • rating integer
  • body string
  • author string
  • publicationDate string(date-time)
  • book string(iri-reference) | null

Responses

  • 200

    Review resource updated

    Hide response attributes Show response attributes object
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
  • 400

    Invalid input

  • 422

    Unprocessable entity

  • 404

    Resource not found

PATCH /reviews/{id}
curl \
 -X PATCH http://api.example.com/reviews/{id} \
 -H "Content-Type: application/merge-patch+json" \
 -d '{"rating":42,"body":"string","author":"string","publicationDate":"2023-05-04T09:42:00+00:00","book":"string"}'
Request example
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2023-05-04T09:42:00+00:00",
  "book": "string"
}
Request examples
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2025-05-04T09:42:00Z",
  "book": "string"
}
Response examples (200)
{
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2023-05-04T09:42:00+00:00",
  "book": "string"
}
Response examples (200)
{
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2025-05-04T09:42:00Z",
  "book": "string"
}