Update User Review
update user review
Endpoint
Base URL
http://localhost:8080
Method and Endpoint
PATCH /api/sellers/current/review/{review_id}
Headers
Authorization: Bearer access_token
Route Param
review_id
: string (required)
Request Body
Request Body
{
"rating": "4.5",
"review": "Example Review"
}
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Update Review Successfully",
}
400 (bad request)
Response Body
{
"error": "Invalid request body",
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
403 (forbidden)
Response Body
{
"error": "you do not have the right to provide a response to this review"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}
500 (server error - failed)
If query to database
get troble while update the review
data
Response Body
{
"error": "failed to update the seller response in review"
}