Перейти к основному содержанию
PUT
/
v1
/
plus
/
carts
/
{id}
/
items
/
{item_id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/plus/carts/{id}/items/{item_id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "quantity": 2,
  "product": 123,
  "product_company": 123,
  "product_price": 123
}
'
{
  "id": 123,
  "product_name": "<string>",
  "quantity": 2,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "price": "<string>",
  "cart": 123,
  "product": 123,
  "product_company": 123,
  "product_price": 123
}

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

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

Тело

quantity
integer
обязательно
Требуемый диапазон: x >= 1
product
integer
обязательно
product_company
integer | null
product_price
integer | null

Ответ

200 - application/json
id
integer
обязательно
product_name
string
обязательно
quantity
integer
обязательно
Требуемый диапазон: x >= 1
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
price
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
cart
integer
обязательно
product
integer
обязательно
product_company
integer | null
product_price
integer | null