---
title: "Set cart quantity"
method: PUT
path: "/api/agent/v1/cart/{itemId}"
tags: ["Cart"]
---

# Set cart quantity

`PUT /api/agent/v1/cart/{itemId}`

## Request

- Base URL: `https://vaanzari.com`
- URL: `https://vaanzari.com/api/agent/v1/cart/{itemId}`
- Auth: OAuth 2 (authorization code, authorization URL `https://vaanzari.com/oauth/authorize`, token URL `https://vaanzari.com/oauth/token`, scopes: `cart.write`)

Sets quantity for one authorized customer cart item.

## Path parameters

- `itemId` integer, required

## Request body

- object
  - `quantity` integer, required

## Response `200`

Cart quantity updated.

- ActionSuccess
  - `success` unknown, required

## Other responses

- `404`: Structured API error.

---

[API](https://skmtc.dev/vaanzari/apis/vaanzari-agent-and-catalogue-api.md) · [All operations](https://skmtc.dev/vaanzari/apis/vaanzari-agent-and-catalogue-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vaanzari/apis/vaanzari-agent-and-catalogue-api/revisions/1a8cc2dbe711?raw)
