---
title: "PUT /users/{userId}/bags/{itemId}/contents"
method: PUT
path: "/users/{userId}/bags/{itemId}/contents"
---

# PUT /users/{userId}/bags/{itemId}/contents

`PUT /users/{userId}/bags/{itemId}/contents`

## Request

- Base URL: `https://api.mamaearth.ca` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mamaearth.ca/users/{userId}/bags/{itemId}/contents`
- Auth: none declared
- TypeScript: <https://skmtc.dev/mamaearth/apis/mama-earth-api/docs/users/:userId/bags/:itemId/contents/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userId` integer, required
- `itemId` integer, required

## Request body

- object
  - `contents` ShoppingCartControllerBagProductSelection[], required
    - `productId` integer, required
    - `quantity` integer, required
    - `neversendResult` union
      - object
        - `substitutedProductId` integer, required
        - `substitutedProductName` string, required
        - `substitutedProductQuantity` integer, required
        - `status` string
      - object
  - `applyCustomizationFee` boolean, nullable
  - `extraBagPointsOverride` integer, nullable

## Response `200`

setBagContents 200 response

- ShoppingCartControllerShoppingCartItemWithNextDateShoppingCartItemBagShoppingCartItemStoredBagShoppingCartItem
  - `nextDate` string, date, required

---

[API](https://skmtc.dev/mamaearth/apis/mama-earth-api.md) - [All operations](https://skmtc.dev/mamaearth/apis/mama-earth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mamaearth/apis/mama-earth-api/revisions/2693a8db8dbd?raw)
