> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.shopify.products.UpdateProduct

- Component: `appmixer.shopify.products.UpdateProduct`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.shopify 4.1.0](https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0/component/appmixer.shopify.products.UpdateProduct>

Update a product. Fields left empty keep their current values.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Product ID (`id`) | text | Pick a product, or enter its ID (gid://shopify/Product/123 or the numeric ID 123). |
| Title (`title`) | text | The name of the product. |
| Description (`descriptionHtml`) | textarea | The product description. Supports HTML formatting. |
| Vendor (`vendor`) | text | The name of the product's vendor. |
| Product Type (`productType`) | text | A category of your choice, used for filtering and searching products. |
| Tags (`tags`) | text | Comma-separated tags, for example `summer, cotton`. Replaces all tags of the product. |
| Status (`status`) | select | The new product status. Leave empty to keep the current status. |
| Publish to Online Store (`publishToOnlineStore`) | toggle | Publish the product on the Online Store sales channel. Turning this off does not unpublish the product. |
| Add Images (`images`) | expression | Images to add to the product. Existing images are kept. For each image enter either an image URL or the image as base64 data. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.shopify.products.UpdateProduct",
  "description": "Update a product. Fields left empty keep their current values.",
  "author": "Jimoh Damilola <jimoh@client.io>",
  "private": false,
  "auth": {
    "service": "appmixer:shopify",
    "scope": [
      "read_products",
      "write_products",
      "read_publications",
      "write_publications"
    ]
  },
  "quota": {
    "manager": "appmixer:shopify",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "descriptionHtml": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "productType": {
            "type": "string"
          },
          "tags": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "publishToOnlineStore": {
            "type": "boolean"
          },
          "images": {
            "type": "object",
            "properties": {
              "ADD": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "attachment": {
                      "type": "string"
                    },
                    "alt": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "id"
        ]
      },
      "inspector": {
        "inputs": {
          "id": {
            "type": "text",
            "label": "Product ID",
            "index": 0,
            "tooltip": "Pick a product, or enter its ID (gid://shopify/Product/123 or the numeric ID 123).",
            "source": {
              "url": "/component/appmixer/shopify/products/FindProducts?outPort=out",
              "data": {
                "messages": {
                  "in/outputType": "array"
                },
                "properties": {
                  "isSource": true
                },
                "transform": "./FindProducts#productsToSelectArray"
              }
            }
          },
          "title": {
            "type": "text",
            "label": "Title",
            "index": 1,
            "tooltip": "The name of the product."
          },
          "descriptionHtml": {
            "type": "textarea",
            "label": "Description",
            "index": 2,
            "tooltip": "The product description. Supports HTML formatting."
          },
          "vendor": {
            "type": "text",
            "label": "Vendor",
            "index": 3,
            "tooltip": "The name of the product's vendor."
          },
          "productType": {
            "type": "text",
            "label": "Product Type",
            "index": 4,
            "tooltip": "A category of your choice, used for filtering and searching products."
          },
          "tags": {
            "type": "text",
            "label": "Tags",
            "index": 5,
            "tooltip": "Comma-separated tags, for example <code>summer, cotton</code>. Replaces all tags of the product."
          },
          "status": {
            "type": "select",
            "label": "Status",
            "index": 6,
            "tooltip": "The new product status. Leave empty to keep the current status.",
            "options": [
              {
                "label": "Keep current",
                "value": ""
              },
              {
                "label": "Active",
                "value": "ACTIVE"
              },
              {
                "label": "Draft",
                "value": "DRAFT"
              },
              {
                "label": "Archived",
                "value": "ARCHIVED"
              },
              {
                "label": "Unlisted",
                "value": "UNLISTED"
              }
            ]
          },
          "publishToOnlineStore": {
            "type": "toggle",
            "label": "Publish to Online Store",
            "index": 7,
            "tooltip": "Publish the product on the Online Store sales channel. Turning this off does not unpublish the product."
          },
          "images": {
            "type": "expression",
            "label": "Add Images",
            "index": 8,
            "levels": [
              "ADD"
            ],
            "tooltip": "Images to add to the product. Existing images are kept. For each image enter either an image URL or the image as base64 data.",
            "fields": {
              "url": {
                "type": "text",
                "label": "Image URL",
                "index": 1,
                "tooltip": "A public URL of the image."
              },
              "attachment": {
                "type": "textarea",
                "label": "Image (base64)",
                "index": 2,
                "tooltip": "The image file as base64 data (a data URL is accepted too). Used when no image URL is set."
              },
              "alt": {
                "type": "text",
                "label": "Alt Text",
                "index": 3,
                "tooltip": "Alternative text of the image."
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out"
    }
  ],
  "icon": "(data URI omitted)"
}
```
