---
schema_version: "1"
id: c65acabcbefcfb0e335c0526c9049a288997b433f3e47fd6de562b2a107c20ca
title: Modify Basket
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-modify-basket.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-modify-basket.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2ac99f6bfb9434106b35445392cfe6091cdfb90637ebbc9a46325e22f6d9b2d9
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Modify Basket

You can modify the contents of the basket in several ways as shown in the sections here.

- Add Additional Product to Basket: This API is described by Create Basket (AddWithNoConfig) and Create Basket (AddAfterConfig). The difference is the cartContextKey of the previous basket.

  Copy the cartContextKey from the response; it should resemble the following:

  ```nolang
  "cartContextKey": "c96443b4c5ad00c2f6820a9d8b37f5cb"
  ```

  Insert the value into the **cartContextKey** Path variable:

  ![Value for cartContextKey Path variable](https://developer.salesforce.com/docs/media/postman_modifybasket1.png)

  **note:** The cartContextKey is generated every time a change is made to the basket. Make sure to take the latest from the response to make additional changes to the basket.

- Delete or Update Basket Item: The Basket response contains all of the required parameters to perform these actions. Look for the **actions** node.

  ![Delete Basket Item](https://developer.salesforce.com/docs/media/postman_modifybasketdelete.png)

  ![Update Basket Item](https://developer.salesforce.com/docs/media/postman_modifybasketupdate.png)

  Use the values from the actions node to form the request body:

  ```nolang
  {
      "bundleContextKey": "<string>",
      "lineItemKey": "<string>",
      "basketAction": "<string>"
  }
  ```

- Update Item Quantity or Attributes: To update items, add **Quantity** or **attributeCategories** to the request body, as shown here.

  ```nolang
  {
      "bundleContextKey": "<string>",
      "lineItemKey": "<string>",
      "basketAction": "<string>",
      "Quantity": "<string>",
      "attributeCategories": "<string>"
  }
  ```

- Add Child Item: This API call is similar to the previous call. To run, inspect the data that is in the basket and copy the values to the related keys in the request.

  ![Add Child Item](https://developer.salesforce.com/docs/media/postman_modifybasketaddchild.png)

- Get Basket Details: This API requires **cartContextKey** and **catalogcode**.

  ![Get Basket Details](https://developer.salesforce.com/docs/media/postman_getbasketdetails.png)
