products
Update a product
Updates a product entry.
put/products
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"id": "1",
"name": "Product 1",
"description": "This is a product",
"price": 100,
"stock": 100,
"category": "Category 1"
}Response
Product updated successfully
Example response
{
"status": "success",
"status_code": 200
}Changes
No recorded changes to this operation across all 15 revisions of this API.