> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zenflow.com.ar/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Product

> Update an existing product

# Update Product

Update an existing product's details.

<Note>Requires `write:products` scope.</Note>

## Request

```bash theme={null}
PUT /api/v1/products/{id}
```

### Path Parameters

<ParamField path="id" type="integer" required>
  The product ID
</ParamField>

### Body Parameters

All fields are optional. Only include fields you want to update.

<ParamField body="name" type="string">
  Product name
</ParamField>

<ParamField body="category" type="string">
  Product category
</ParamField>

<ParamField body="description" type="string">
  Product description
</ParamField>

<ParamField body="price" type="number">
  Unit price
</ParamField>

<ParamField body="weight" type="number">
  Weight in kg
</ParamField>

<ParamField body="photo_url" type="string">
  Product image URL
</ParamField>

## Example

```bash theme={null}
curl -X PUT "https://api.zenflow.com.ar/api/v1/products/100" \
  -H "X-API-Key: zenflow_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "price": 34.99,
    "category": "Premium Electronics"
  }'
```

### Response

```json theme={null}
{
  "success": true,
  "data": {
    "id": 100,
    "barcode": "7891234567890",
    "name": "Widget A",
    "category": "Premium Electronics",
    "price": 34.99,
    "updated_at": "2024-01-14T15:30:00Z"
  }
}
```
