Reviews

Update a review for a profile

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/617/reviews/4

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTMzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ0LCJleHAiOjE3NDUwNTY5NDQsImp0aSI6IjlhODk0NDNkLTZkOTktNGQ5OC04YWU3LTE3YzYwYWNkMjIxMCJ9.V0t9MGNRjiV62y9Z5bVL-5_irUof_Kxf4dLfgJe7Sbw
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/"5ad6afc450a6171ff10a430a7c935c25"
cache-control: max-age=0, private, must-revalidate
x-request-id: 10fd71f9-cff0-48b0-870a-c4546af8b1e2
x-runtime: 0.010273
content-length: 121

Body

{
  "review": {
    "id": 4,
    "comment": "Updated",
    "created_at": "2025-03-20",
    "full_name": "Candy Kilback",
    "profile_id": 617,
    "rating": 5
  }
}