1 {"slug":"/references/product/interfaces/product.UpsertProductCollectionDTO","title":"UpsertProductCollectionDTO","frontmatter":{"displayed_sidebar":"productReference"},"toc":[],"blocks":[{"kind":"markdown","html":"The product collection to create or update."},{"kind":"typeList","sectionTitle":"UpsertProductCollectionDTO","types":[{"name":"id","type":"`string`","description":"The ID of the product collection to update. If not provided,\nthe product collection is created. In this case, the `title` property is\nrequired.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"value","type":"`string`","description":"The value of the product collection.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"title","type":"`string`","description":"The title of the product collection.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"The handle of the product collection.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"product_ids","type":"`string`[]","description":"The IDs of the products to associate with the product collection.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"[MetadataType](/references/product/types/product.MetadataType)","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}