---
title: "update Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.container.update.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# update Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- update(params:  [IChannelContainerDefinition](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.ichannelcontainerdefinition.htm.md) ) :  Promise &lt; this &gt;

- Updates a channel container with new parameters.
  
 - example
     - ```
    // Initialize a product with the "card.psd" template and a channel container.
    const productDefinition = {
        surfaces: [{
            printAreas: [{
                designFile: "card",
                containers: [{
                    name: "foil",
                    type: "texture",
                    texture: "texture.jpg"
                }]
            }]
        }]
    };
    
    // Load the editor.
    CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition)
    
        // If the editor has been successfully loaded.
        .then(function (editor) {
            // When we get the product.
            editor.getProduct().then(function (product) {
                // Get the fourth container.
                product.currentSurface.printAreas[0].getContainers()[3]
                    // Update this container with new parameters.
                    .update({
                        name: "SilverTexture",
                        texture: "silver-texture.jpg",
                        // Expects a translated string for the SILVER key in translations.json.
                        translationKey: "ObjectInspector.SILVER"
                    });
            });
        });
    ```

#### Parameters

    - ##### params: [IChannelContainerDefinition](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.ichannelcontainerdefinition.htm.md) 
  
        A new container definition. Note, you cannot change the container type.

#### Returns Promise &lt; this &gt;
 
    An instance of the updated container.
