> For the complete documentation index, see [llms.txt](https://foodfly-status404.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://foodfly-status404.gitbook.io/project/cartitem-modify.md).

# CartItem Modify

<mark style="color:purple;">`PATCH`</mark> `https://foodfly.shop/cart/items/cartitem_pk/`

This endpoint allows you to get free cakes.

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

#### Request Body

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| quantity | string |             |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "cart": cart,
    "food": {
        "pk": pk,
        "name": name,
        "img_profile": img_profile,
        "price": price,
        "stock": stock,
        "store": store,
        "set_menu": set_menu,
        "food_info": food_info
    },
    "quantity": quantity,
    "is_ordered": is_ordered
}
```

{% endtab %}

{% tab title="400 Could not find a cake matching this query." %}

```javascript
{
    "detail": "잘못된 요청입니다."
}
```

{% endtab %}
{% endtabs %}
