Update Cart Item

Update Cart Item

POST https://graph.whisk.com/v1/carts/:cart_id/items/:item_id

Update the quantity of a cart item.

Path Parameters

NameTypeDescription

cart_id

string

Unique cart identifier

item_id

string

Unique cart item identifier

Request Body

NameTypeDescription

quantity

number

Number of items.

{
  "ok": true
}

Sample Request

curl -X PUT "https://graph.whisk.com/v1/carts/9fd18c6f45de453aac7210c671d7d496/items/c0537739b86043ba9333e0d96ba987d1" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token <Access-Token>" \
  -d '{
    "quantity": 10
  }'

Last updated