PUT /reviews/{id}

Replaces 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

Body Required

The updated Review resource

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

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

PUT /reviews/{id}
curl \
 --request PUT 'http://api.example.com/reviews/{id}' \
 --header "Content-Type: application/ld+json"
curl \
 --request PUT 'http://api.example.com/reviews/{id}' \
 --header "Content-Type: application/json" \
 --data '{"rating":42,"body":"string","author":"string","publicationDate":"2026-05-04T09:42:00Z","book":"string"}'
curl \
 --request PUT 'http://api.example.com/reviews/{id}' \
 --header "Content-Type: text/html"
Request examples
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}
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"
}