Update Product

Update an existing product’s information.

Endpoint

PUT /api/products/{product_id}

Path Parameters

ParameterTypeRequiredDescription
product_idstringYesThe unique identifier for the product

Request Body

ParameterTypeRequiredDescription
namestringNoProduct name
pricenumberNoProduct price
descriptionstringNoProduct description
categorystringNoProduct category

Response

Returns the updated product object.
{
  "id": "prod_123456789",
  "name": "Updated Premium Service",
  "price": 109.99,
  "currency": "USD",
  "description": "Updated premium service package",
  "category": "Services",
  "created_at": "2023-01-01T00:00:00Z"
}