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/616/reviews
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTMxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ0LCJleHAiOjE3NDUwNTY5NDQsImp0aSI6IjhiY2JmMGE4LWM0YTYtNDZiNC1iYmQ0LTA2Yjg4NmI0MzQ4YiJ9.Xiizq4J3URVny1RsQZIIemk6qsvmmH1bfZfIYBt97nk
Host: example.org
Cookie:
Body
{
"review": {
"rating": 3,
"comment": "Stipes claustrum laboriosam. Amitto valeo est.",
"full_name": "Tandra Bartoletti"
}
}
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/"5e898b19fb57bba4e3671bb03d325ada"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6b8777c6-bb57-4701-9170-902102f1dc93
x-runtime: 0.007749
content-length: 164
Body
{
"review": {
"id": 3,
"comment": "Stipes claustrum laboriosam. Amitto valeo est.",
"created_at": "2025-03-20",
"full_name": "Tandra Bartoletti",
"profile_id": 616,
"rating": 3
}
}