Update a review for a profile
Reviews
PUT update review(admin)
Endpoint
PUT /api/v1/profiles/:profile_id/reviews/:id
Parameters
Name | Description |
---|---|
review[rating] required | Rating |
review[comment] required | Comment |
review[full_name] | Full name |
Request
Route
PUT /api/v1/profiles/618/reviews/5
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTAyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg1LCJleHAiOjE3NDAxNDM1ODUsImp0aSI6IjY2NGMwOWJkLTRlMjktNGNjMC04NTc0LThmYWJhM2NlMGVkOCJ9.NEQwXu04iqshJpQx7lXs3nsr5aZaEaHsz-nGD1zQaJo
Host: example.org
Cookie:
Body
{
"review": {
"rating": 5,
"comment": "Updated"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"1fb4aff1be4bf98778ddd51f665d1774"
cache-control: max-age=0, private, must-revalidate
x-request-id: dca389b1-3238-4318-8d4c-c50abf0b765a
x-runtime: 0.009015
content-length: 128
Body
{
"review": {
"id": 5,
"comment": "Updated",
"created_at": "2025-01-22",
"full_name": "Kanesha Pfannerstill",
"profile_id": 618,
"rating": 5
}
}