---
search:
  tags:
    - Products
    - POST
seo:
  description: >-
    Update a product (POST body is partial). Requires a Write key. Reference for
    the POST /products/{productId} endpoint in the scango.ch API.
sidebar:
  label: Update product
  badge: POST
title: Update product
type: openapi-operation
---
Update a product (POST body is partial). Requires a Write key.

`POST /products/{productId}`

**Request body** (`application/json`, required)

- `name` (string)
- `price` (number) — Price in cents
- `taxCategory` (string)
- `supplier` (string)
- `category` (string)
- `declarations` (string)
- `barcode` (string) — Normalized to lowercase.
- `barcodeAliases` (object[]) — Optional additional EANs. Empty array removes the field. Available when the barcode aliases feature is enabled for the organization. Returns 403 \`Feature not available\` when barcode aliases are not enabled for the organization.
- `externalId` (string)
- `depositProduct` (number) — Deposit in cents
- `depositProductLabel` (string)
- `description` (string)
- `salePrice` (number | null) — Sale price in cents. Null or empty string removes the field.
- `salePercentage` (number | null) — Sale discount percentage. Null or empty string removes the field.
- `salePriceDateFrom` (string<date-time> | null) — Sale start. Null or empty string removes the field.
- `salePriceDateTo` (string<date-time> | null) — Sale end. Null or empty string removes the field.
- `costPrice` (number)
- `margin` (number)
- `showOnScreen` (boolean)
- `ageRestriction` (boolean)
- `showOnScale` (boolean)
- `saleStop` (boolean)
- `deactivated` (boolean)
- `imageUrl` (string) — Image URL. Replacing it, or clearing it with an empty string, deletes the previous image file when it is stored by this organization.
- `index` (number)
- `deleted` (boolean) — \`true\` soft-deletes the product, \`false\` restores it.

Request body example:

```json
{
  "price": 129,
  "saleStop": false
}
```

**Responses**

- `200` — Updated
- `400` — Invalid parameters or body.
- `403` — Missing, unknown or inactive API key, or a Read key on a write operation.
- `404` — No item with this id.

Response example, 200:

```json
{
  "success": true
}
```

Response example, 400:

```json
{
  "statusCode": 400,
  "message": "Validation failed for Field: name, Error: Required",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/suppliers"
}
```

Response example, 403:

```json
{
  "statusCode": 403,
  "message": "Unknown Error",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/products"
}
```
