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

Parameters: update_product
NameTypeDescription
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
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}]}'
Python
result = client.call("printify", "update_product", {"shop_id":8123456,"product_id":"6641ab12","variants":[{"id":45740,"price":2699,"is_enabled":True}]})
Node.js
const result = await cotlet.call('printify', 'update_product', {"shop_id":8123456,"product_id":"6641ab12","variants":[{"id":45740,"price":2699,"is_enabled":true}]});
CLI
cotlet call printify update_product --data '{"shop_id":8123456,"product_id":"6641ab12","variants":[{"id":45740,"price":2699,"is_enabled":true}]}'

Example response

JSON

{
  "product_id": "6641ab12",
  "updated": [
    "variants"
  ],
  "visible": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.