---
title: "setTags Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.product.settags.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/).

# setTags Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- setTags(tags:  [ITagsDictionary](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.itagsdictionary.htm.md) ) :  Promise &lt; void &gt;

- Specifies tags for the product.
  
 - example
     - ```
    var newTags = {
      "product": "postcard",
      "design": "flowers",
      "colorTheme": "red"
    };
    
    editor.getProduct()
        .then(function (product) {
            product.setTags(newTags)
            .catch(function (error) {
                console.error("Setting tags failed with exception: ", error);
            });
        })
    ```

#### Parameters

    - ##### tags: [ITagsDictionary](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.itagsdictionary.htm.md) 
  
        The tags that you want to specify for the product.

#### Returns Promise &lt; void &gt;
