> ## 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
                user:
                  type: string
                email:
                  type: string
              required:
                - items
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      entityId:
                        type: string
                      shop:
                        type: string
                      email:
                        type: string
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            _id:
                              type: string
                            tags:
                              type: array
                              items:
                                type: object
                                properties:
                                  _id:
                                    type: string
                                  name:
                                    type: string
                                  tempId:
                                    type: string
                                  shop:
                                    type: string
                                  __v:
                                    type: integer
                                  slug:
                                    type: string
                                  productCount:
                                    type: integer
                                  imageUrl:
                                    type: string
                                required:
                                  - _id
                                  - name
                                  - tempId
                                  - shop
                                  - __v
                                  - slug
                                  - productCount
                                  - imageUrl
                            stock:
                              type: integer
                            digital:
                              type: boolean
                            media:
                              type: string
                            media_type:
                              type: string
                            name:
                              type: string
                            price:
                              type: integer
                            shop:
                              type: string
                            sale_price:
                              type: integer
                            __v:
                              type: integer
                            draft:
                              type: boolean
                            alwaysInStock:
                              type: boolean
                            costPrice:
                              type: integer
                            sku:
                              type: string
                            type:
                              type: string
                            slug:
                              type: string
                            dimension:
                              type: object
                              properties:
                                unit:
                                  type: string
                                length:
                                  type: integer
                                width:
                                  type: integer
                                height:
                                  type: integer
                              required:
                                - unit
                                - length
                                - width
                                - height
                            weight:
                              type: object
                              properties:
                                base:
                                  type: object
                                  properties:
                                    unit:
                                      type: string
                                    value:
                                      type: integer
                                  required:
                                    - unit
                                    - value
                                unit:
                                  type: string
                                value:
                                  type: integer
                              required:
                                - base
                                - unit
                                - value
                            variantsInheritPrice:
                              type: boolean
                            setAttributesForVariants:
                              type: boolean
                            qty:
                              type: integer
                            variant:
                              type: object
                              properties:
                                _id:
                                  type: string
                                price:
                                  type: integer
                                sale_price:
                                  type: integer
                                costPrice:
                                  type: integer
                                stock:
                                  type: integer
                                alwaysInStock:
                                  type: boolean
                                isActive:
                                  type: boolean
                                sku:
                                  type: string
                                weight:
                                  type: object
                                  properties:
                                    base:
                                      type: object
                                      properties:
                                        unit:
                                          type: string
                                        value:
                                          type: integer
                                      required:
                                        - unit
                                        - value
                                    unit:
                                      type: string
                                    value:
                                      type: integer
                                  required:
                                    - base
                                    - unit
                                    - value
                                media:
                                  type: string
                                digital_download:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                    url:
                                      type: string
                                    uuid:
                                      type: string
                                    size:
                                      type: 'null'
                                    maxDownloadsPerOrder:
                                      type: 'null'
                                  required:
                                    - name
                                    - url
                                    - uuid
                                    - size
                                    - maxDownloadsPerOrder
                                media_type:
                                  type: string
                                dimension:
                                  type: object
                                  properties:
                                    unit:
                                      type: string
                                    length:
                                      type: integer
                                    width:
                                      type: integer
                                    height:
                                      type: integer
                                  required:
                                    - unit
                                    - length
                                    - width
                                    - height
                                options:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      label:
                                        type: string
                                      name:
                                        type: string
                                      id:
                                        type: string
                                    required:
                                      - label
                                      - name
                                      - id
                              required:
                                - _id
                                - price
                                - sale_price
                                - costPrice
                                - stock
                                - alwaysInStock
                                - isActive
                                - sku
                                - weight
                                - media
                                - digital_download
                                - media_type
                                - dimension
                                - options
                            originalPrice:
                              type: integer
                            finalPrice:
                              type: integer
                            subTotal:
                              type: integer
                            cartItemId:
                              type: string
                          required:
                            - _id
                            - tags
                            - stock
                            - digital
                            - media
                            - media_type
                            - name
                            - price
                            - shop
                            - sale_price
                            - __v
                            - draft
                            - alwaysInStock
                            - costPrice
                            - sku
                            - type
                            - slug
                            - dimension
                            - weight
                            - variantsInheritPrice
                            - setAttributesForVariants
                            - qty
                            - variant
                            - originalPrice
                            - finalPrice
                            - subTotal
                            - cartItemId
                      subTotal:
                        type: integer
                      total:
                        type: integer
                      created:
                        type: string
                      _id:
                        type: string
                      discountsApplied:
                        type: array
                      discountAmount:
                        type: integer
                      shipping:
                        type: integer
                      shippingRate:
                        type: object
                      user:
                        type: 'null'
                      exclusiveDiscount:
                        type: boolean
                      order:
                        type: 'null'
                    required:
                      - entityId
                      - shop
                      - email
                      - items
                      - subTotal
                      - total
                      - created
                      - _id
                      - discountsApplied
                      - discountAmount
                      - shipping
                      - shippingRate
                      - user
                      - exclusiveDiscount
                      - order
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````