tys.products.update()
Replaces the SKU, name and category (all three required).
update(idOrSku: string, input: ProductInput, options?: RequestOptions): Promise<Product>Parameters
Section titled “Parameters”idOrSkustringRequiredThe product's TryYourSize ID or your SKU (URL-encoded for you, so TEE/01 works).
inputProductInputRequiredProperties
external_idstringRequirednamestringRequiredcategoryGarmentCategoryRequiredThe garment type; it sets which POMs are needed.
optionsRequestOptionsOptionalReturns
Section titled “Returns”Promise<Product>: The updated product.
Example
Section titled “Example”await tys.products.update("TEE-001", { external_id: "TEE-001", name: "Basic tee (organic)", category: "tshirt" });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.