Update a product
Products
Update a product
Updates a product belonging to the authenticated user
PUT
Update a product
Documentation Index
Fetch the complete documentation index at: https://developers.lightyshare.com/llms.txt
Use this file to discover all available pages before exploring further.
Request Structure
Key Fields
| Field | Required | Description |
|---|---|---|
code | No | Updated product SKU |
description | No | Updated description |
barcode | No | Updated barcode |
shelf_life_min/max | No | Updated shelf life in days |
Authorizations
Use your API token in the Authorization header with Bearer scheme.
Alternative: You can also pass the token as a query parameter ?token=your_token for backward compatibility.
Path Parameters
Resource identifier
Example:
12345
Query Parameters
User authentication token
Example:
"YOUR_TOKEN"
Body
application/json
Response
Product successfully updated
Example:
true