PATCH /api/products/:id
Updates an existing product in the system. All fields are optional - only provided fields will be updated.Authentication
Required. Must include a valid JWT token in the Authorization header.Authorization
Admin role required.Request Headers
Path Parameters
The unique identifier of the product to update
Body Parameters
All body parameters are optional. Only include the fields you want to update.Product name
Product description
Product price
Available stock quantity
Product category. Must be one of:
digital, physical, serviceImage URL for the product
Whether the product is active
Response
Success message
The updated product object
Unique product identifier
Product name
Product description
Product price
Available stock quantity
Product category
Image URL for the product
ID of the admin user who created the product
Whether the product is active
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update (automatically updated)