v1

latestOpenAPI 3.0.3Apache 2.02026-07-1710047196.1 KB
products

Update a product

Updates a product entry.

put/products

Request body

idstring

The id of the product to be updated

namestring

The name of the product

descriptionstring

A brief description of the product

pricenumber

The price of the product

stockinteger

The stock quantity of the product

categorystring

The category of the product

Example request

{
  "id": "1",
  "name": "Product 1",
  "description": "This is a product",
  "price": 100,
  "stock": 100,
  "category": "Category 1"
}

Response

Product updated successfully

statusstring
status_codeinteger

The HTTP status code. Usually 200 , 201, 204 etc

messagestring

A basic message describing a request was processed successfully. example: "Successfully"

Example response

{
  "status": "success",
  "status_code": 200
}