Create a review for a profile
Reviews
POST create review(admin)
Endpoint
POST /api/v1/profiles/:profile_id/reviews
Parameters
Name | Description |
---|---|
review[rating] required | Review rating |
review[comment] required | Review comment |
review[full_name] | Review full name |
Request
Route
POST /api/v1/profiles/620/reviews
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTQ5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjE2LCJleHAiOjE3NTU4NTgyMTYsImp0aSI6ImQ4OWU5YWI5LTJkNWQtNDRjZC05MWY1LTdiNjU5YTU2ZGQ1ZiJ9.gtmSX7aF-KrxAtL3SAy7P_SLHREVnQ1XQhiHKvLtTf0
Host: example.org
Cookie:
Body
{
"review": {
"rating": 3,
"comment": "Unus cupiditate voco. Solitudo animi reprehenderit.",
"full_name": "Rep. Hai Wisozk"
}
}
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/"c87c552a8b4560b294f9d48b4c0bc33c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 183ce075-1c81-4c8c-a113-9b1b823ac83b
x-runtime: 0.007652
content-length: 167
Body
{
"review": {
"id": 3,
"comment": "Unus cupiditate voco. Solitudo animi reprehenderit.",
"created_at": "2025-07-23",
"full_name": "Rep. Hai Wisozk",
"profile_id": 620,
"rating": 3
}
}