Skip to main content
PUT
https://api.zenflow.com.ar
/
api
/
v1
/
products
/
{id}
Update Product
curl --request PUT \
  --url https://api.zenflow.com.ar/api/v1/products/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "category": "<string>",
  "description": "<string>",
  "price": 123,
  "weight": 123,
  "photo_url": "<string>"
}
'

Update Product

Update an existing product’s details.
Requires write:products scope.

Request

PUT /api/v1/products/{id}

Path Parameters

id
integer
required
The product ID

Body Parameters

All fields are optional. Only include fields you want to update.
name
string
Product name
category
string
Product category
description
string
Product description
price
number
Unit price
weight
number
Weight in kg
photo_url
string
Product image URL

Example

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

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