tys.products.update()
Replace the SKU, name and category (all three required).
def update(product: str, *, external_id: str, name: str, category: str) -> ProductParameters
Section titled “Parameters”productstrRequiredThe product's TryYourSize ID or your SKU (URL-encoded for you).
external_idstrRequiredThe SKU (all three fields are required).
namestrRequiredThe name.
categorystrRequiredThe category.
Returns
Section titled “Returns”Product: The updated product.
Example
Section titled “Example”tys.products.update("TEE-001", external_id="TEE-001", name="Basic tee (organic)", category="tshirt")await tys.products.update("TEE-001", { external_id: "TEE-001", name: "Basic tee (organic)", category: "tshirt" });curl -X PATCH https://api.tryyoursize.com/v1/products/TEE-001 \ -H "Authorization: Bearer $TRYYOURSIZE_SECRET_KEY" \ -H "TYS-Version: 2026-10-25" \ -H "Content-Type: application/json" \ -d '{"external_id":"TEE-001","name":"Basic tee (organic)","category":"tshirt"}'See also
Section titled “See also”Was this page helpful?
Thank you. We read every answer.