Update a product by ID
PUT/products/:id
Update a product by ID
Request
Path Parameters
id stringrequired
- application/json
Body
required
title stringrequired
description string
value numberrequired
category_id stringrequired
Responses
- 200
- 400
- 404
Successfully updated the product
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Bad request - Invalid product data
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Product not found
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Loading...