# tys.products.update()

> Replace the SKU, name and category (all three required).

Source: https://docs.tryyoursize.com/reference/python/products-update/

*Method* · `tryyoursize`

Replace the SKU, name and category (all three required).

```python
def update(product: str, *, external_id: str, name: str, category: str) -> Product
```

## Parameters

- **`product`** (`str`, required): The product's TryYourSize ID or your SKU (URL-encoded for you).
- **`external_id`** (`str`, required): The SKU (all three fields are required).
- **`name`** (`str`, required): The name.
- **`category`** (`str`, required): The category.

## Returns

`Product`: The updated product.

## Example

**Python**

```python
tys.products.update("TEE-001", external_id="TEE-001", name="Basic tee (organic)", category="tshirt")
```

**Node.js**

```ts
await tys.products.update("TEE-001", { external_id: "TEE-001", name: "Basic tee (organic)", category: "tshirt" });
```

**cURL**

```bash
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

- [products.update (HTTP API)](https://docs.tryyoursize.com/api/reference/operations/updatecatalogproduct.md)
