Create a review for a profile
Reviews
POST create review
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/612/reviews
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTE5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQzLCJleHAiOjE3NDUwNTY5NDMsImp0aSI6IjZhMjY2YmVmLWRiY2MtNGM1MS04ZDJmLWNhYWI2MmUxNDUzZCJ9.D5FFYal5ceGL4rGVXCsHhFmcDbvObwbL3ej1Nwi3uq0
Host: example.org
Cookie:
Body
{
"review": {
"rating": 0,
"comment": "Ventus tergeo valens. Tricesimus somnus adultus.",
"full_name": "Rufus Smitham"
}
}
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/"a1296bea250e948001247b6773337044"
cache-control: max-age=0, private, must-revalidate
x-request-id: 158e4e50-c7cb-44cf-9cbd-df943ab814c5
x-runtime: 0.013880
content-length: 163
Body
{
"review": {
"id": 2,
"comment": "Ventus tergeo valens. Tricesimus somnus adultus.",
"created_at": "2025-03-20",
"full_name": "Isreal Johnson",
"profile_id": 612,
"rating": 0
}
}