Reviews

Create a review for a profile

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

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTAwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg1LCJleHAiOjE3NDAxNDM1ODUsImp0aSI6IjYxMWJlMzAwLTUyNzUtNDZhYi05YzJiLWYyYzgwZmY3Zjk4NyJ9.6o6_3M9rakShL5pVOu-ZcFR5YRw0dBtLTJdh4UFeLzo
Host: example.org
Cookie: 

Body

{
  "review": {
    "rating": 0,
    "comment": "Deficio harum vel. Vestrum aut amitto.",
    "full_name": "Judith Nicolas"
  }
}

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/"71db5be4f9f3f8b47fd83b7e181461d6"
cache-control: max-age=0, private, must-revalidate
x-request-id: 12fe6d12-a9d6-490a-b90b-663abbabca73
x-runtime: 0.007229
content-length: 153

Body

{
  "review": {
    "id": 4,
    "comment": "Deficio harum vel. Vestrum aut amitto.",
    "created_at": "2025-01-22",
    "full_name": "Judith Nicolas",
    "profile_id": 617,
    "rating": 0
  }
}