Перейти к основному содержанию
POST
/
v1
/
shared
/
bag
/
{uuid}
/
products
cURL
curl --request POST \
  --url https://api.example.com/v1/shared/bag/{uuid}/products/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "product": 123,
  "count": 1073741823
}
'
{
  "id": 123,
  "product": 123,
  "discount": 123,
  "count": 1073741823
}

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

uuid
string<uuid>
обязательно

Тело

product
integer
обязательно
count
integer
Требуемый диапазон: 0 <= x <= 2147483647

Ответ

201 - application/json
id
integer
обязательно
product
integer
обязательно
discount
integer | null
обязательно
count
integer
Требуемый диапазон: 0 <= x <= 2147483647