Перейти к основному содержанию
POST
/
v1
/
shared
/
auth
/
profile
/
orders
/
{id}
/
reviews
cURL
curl --request POST \
  --url https://api.example.com/v1/shared/auth/profile/orders/{id}/reviews/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "rating": 3,
  "comment": "<string>",
  "list": [
    "<string>"
  ],
  "product": 123
}
'
{
  "id": 123,
  "rating": 3,
  "comment": "<string>",
  "list": [
    "<string>"
  ],
  "product": 123
}

Параметры пути

id
integer
обязательно

Тело

rating
integer
обязательно
Требуемый диапазон: 1 <= x <= 5
comment
string
list
string[] | null
Maximum string length: 32
product
integer | null

Ответ

201 - application/json
id
integer
обязательно
rating
integer
обязательно
Требуемый диапазон: 1 <= x <= 5
comment
string
list
string[] | null
Maximum string length: 32
product
integer | null