Update Review
POST
/store/reviews/{productId}
const url = 'http://localhost:9000/store/reviews/example';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"rating":1,"title":"example","body":"example","author_name":"example","author_email":"example","order_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/store/reviews/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "rating": 1, "title": "example", "body": "example", "author_name": "example", "author_email": "example", "order_id": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” productId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
rating
required
number
title
string
body
required
string
author_name
required
string
author_email
string
order_id
string
Example generated
{ "rating": 1, "title": "example", "body": "example", "author_name": "example", "author_email": "example", "order_id": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}Unauthorized