PATCH /reviews/{id}

Updates the Review resource.

Path parameters

  • id string Required

    Review identifier

application/merge-patch+json

Body Required

The updated Review resource

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

Responses

  • Review resource updated

    Hide response attributes Show response attributes object
    • @context string | object

      One of:
    • @id string
    • @type string
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
    Hide response attributes Show response attributes object
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
    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 \
 --request PATCH 'http://api.example.com/reviews/{id}' \
 --header "Content-Type: application/merge-patch+json"
Request examples
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}
Response examples (200)
{
  "@context": "string",
  "@id": "string",
  "@type": "string",
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}
Response examples (200)
{
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}