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

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTUxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTMxLCJleHAiOjE3NTExMDg1MzEsImp0aSI6IjNlYzlhMDE2LTMyYzEtNDUwZi1iM2Q5LTdlMGVlNTk5Mjg3ZSJ9.vU7uQYxCk_0Irk7xObceXnv5bvQWTSGcl6T5jpLazdo
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/"07e5403badd60d1d5d0b7df624ad5345"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5d8ff7df-138d-4f71-9780-123cc8d37673
x-runtime: 0.008889
content-length: 122

Body

{
  "review": {
    "id": 4,
    "comment": "Updated",
    "created_at": "2025-05-29",
    "full_name": "Georgine Brown",
    "profile_id": 621,
    "rating": 5
  }
}