Update product
Change title, description, tags, variant prices or enabled variants of a product.
PATCH https://cotlet.dev/api/v1/printify/shops/{shop_id}/products/{product_id}
write
Updates a product in Printify. Prices are integers in cents. The change reaches your sales channel only after publish_product, so a wrong edit is undone with another call and this tool runs without asking first.
Parameters
| Name | Type | Description |
|---|---|---|
| shop_id integer required | integer | Shop ID from list_shops. |
| product_id string required | string | Product ID from list_products. |
| title string | string | New title. |
| description string | string | New description, HTML allowed. |
| tags array | array | Replaces the tags. |
| variants array | array | Objects with variant id, price in cents and is_enabled. |
Request
curl -X PATCH https://cotlet.dev/api/v1/printify/shops/8123456/products/6641ab12 \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"variants":[{"id":45740,"price":2699,"is_enabled":true}]}' result = client.call("printify", "update_product", {"shop_id":8123456,"product_id":"6641ab12","variants":[{"id":45740,"price":2699,"is_enabled":True}]}) const result = await cotlet.call('printify', 'update_product', {"shop_id":8123456,"product_id":"6641ab12","variants":[{"id":45740,"price":2699,"is_enabled":true}]}); cotlet call printify update_product --data '{"shop_id":8123456,"product_id":"6641ab12","variants":[{"id":45740,"price":2699,"is_enabled":true}]}' Example response
{
"product_id": "6641ab12",
"updated": [
"variants"
],
"visible": false
}