> ## Documentation Index
> Fetch the complete documentation index at: https://developers.qshop.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Cart

> **Host**: http://qshop.ng



## OpenAPI

````yaml patch /shops/{shopId}/cart/{cartId}/
openapi: 3.1.0
info:
  title: OpenAPI Specification
  version: 1.0.0
  description: >-
    QShop storefront API.  This API is used to build a storefront for a QShop
    store
  contact:
    name: QShop
    url: https://qshop.ng
    email: hello@qshop.ng
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: Production server
security: []
paths:
  /shops/{shopId}/cart/{cartId}/:
    patch:
      tags:
        - Cart
      summary: Update Cart
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: shopId
          in: path
          required: true
          schema:
            type: string
        - name: cartId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      _id:
                        type: string
                      name:
                        type: string
                      qty:
                        type: integer
                      variant:
                        type: object
                        properties:
                          _id:
                            type: string
                        required:
                          - _id
                    required:
                      - _id
                      - name
                      - qty
                      - variant
                email:
                  type: string
              required:
                - items
                - email
      responses:
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: 'null'
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````