POST
/
products
/
{productId}
curl --request POST \
  --url https://dashboard.scango.ch/api/v1/products/{productId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "price": 123,
  "supplier": "<string>",
  "taxCategory": "8.1",
  "category": "<string>",
  "declarations": "<string>",
  "barcode": "<string>",
  "depositProduct": 123,
  "description": "<string>",
  "salePrice": 123,
  "salePercentage": 123,
  "salePriceDateFrom": "2023-12-25",
  "salePriceDateTo": "2023-12-25",
  "costPrice": 123,
  "margin": 123,
  "showOnHomescreen": true,
  "showOnScreen": true,
  "ageRestriction": true,
  "showOnScale": true,
  "saleStop": true,
  "index": 123
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

productId
string
required

ID of the product to update

Body

application/json

Updated product data

The body is of type object.

Response

200 - application/json

Product updated successfully

The response is of type object.