---
title: Produkt aktualisieren
description: Produktfelder aktualisieren, indem nur Geändertes gesendet wird. imageUrls ERSETZT das bestehende Array (Ihr CMS bleibt kanonisch). Idempotency-Key unterstützt.
canonical: "https://www.tracepass.eu/de/docs/update-product"
locale: de
source: "https://www.tracepass.eu/de/docs/update-product"
---

# Produkt aktualisieren

> Produktfelder aktualisieren, indem nur Geändertes gesendet wird. imageUrls ERSETZT das bestehende Array (Ihr CMS bleibt kanonisch). Idempotency-Key unterstützt.

```http
PATCH /api/v1/products/{id}
```

Patcht ein oder mehrere Produktfelder. Senden Sie nur die Schlüssel, die Sie ändern möchten — ausgelassene Felder bleiben unverändert. Die Ganz-Array-Semantik von `imageUrls` ist beabsichtigt: Das Kunden-CMS ist die kanonische Bildquelle, also ersetzt ein PATCH mit `imageUrls: ["a","b"]` die vorhandene Liste. Zum Anhängen eines einzelnen Bildes ohne Umschreiben nutzen Sie den Multipart-Upload-Endpoint.

Zählt als ein v1-Schreibvorgang. Unterstützt Idempotency-Key. Die `model`-Eindeutigkeit wird bei Änderung erneut geprüft; `description: null` löscht die Beschreibung (anders als das Auslassen des Schlüssels).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | yes | `Bearer <token>` — entweder ein `tp_` API-Schlüssel (Developer → API Keys; am einfachsten, für Server-zu-Server) oder ein OAuth-2.0-Access-Token (Developer → OAuth Apps; für nutzerautorisierte Apps, scoped und widerrufbar). Die Authentication-Seite enthält den vollständigen OAuth-Flow und die Scope-Liste. |
| `Idempotency-Key` | header | string | no | UUID v4. |
| `id` | path | ObjectId | yes | Produkt-ID. |
| `name` | body | string (1-200) | no | Anzeigename. |
| `model` | body | string (1-100) | no | Modellbezeichnung. Eindeutigkeit wird bei Änderung erneut geprüft. |
| `description` | body | string \| null (≤ 2000) | no | `null` zum Löschen senden. |
| `defaultFieldValues` | body | object | no | Ersetzt die Seed-Werte für zukünftige Pässe. |
| `imageUrls` | body | string\[\] (max 20) | no | Ersetzt das gesamte Bild-Array. |
| `status` | body | enum | no | `active` oder `archived`. |
| `sourceLocale` | body | string (ISO 639-1) | no | Aktualisiert den Locale von `name` / `description`. |

## Examples

```bash
curl -sS -X PATCH \
  https://app.tracepass.eu/api/v1/products/6650a1b2c3d4e5f6a7b8c9d0 \
  -H "Authorization: Bearer tp_REDACTED_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Li-Ion 48V Battery Pack (revised)",
    "imageUrls": ["https://cdn.example.com/new-hero.jpg"]
  }'
```

```typescript
await fetch(`https://app.tracepass.eu/api/v1/products/${id}`, {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TRACEPASS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "Li-Ion 48V Battery Pack (revised)",
    imageUrls: ["https://cdn.example.com/new-hero.jpg"],
  }),
});
```

```python
import os, requests
res = requests.patch(
    f"https://app.tracepass.eu/api/v1/products/{product_id}",
    headers={"Authorization": f"Bearer {os.environ['TRACEPASS_API_KEY']}"},
    json={
        "name": "Li-Ion 48V Battery Pack (revised)",
        "imageUrls": ["https://cdn.example.com/new-hero.jpg"],
    },
)
res.raise_for_status()
```

## Responses

### 200 — Aktualisiert

```json
{
  "_id": "6650a1b2c3d4e5f6a7b8c9d0",
  "name": "Li-Ion 48V Battery Pack (revised)",
  "imageUrls": ["https://cdn.example.com/new-hero.jpg"],
  "updatedAt": "2026-05-09T15:30:00.000Z"
}
```

### 404 — Nicht gefunden

```json
{ "error": "Product not found" }
```

### 409 — Doppeltes Modell

```json
{ "error": "A product with this model already exists for your company" }
```

## Related

- [Produkt anlegen](https://www.tracepass.eu/de/docs/create-product.md)
- [Produktbild hochladen](https://www.tracepass.eu/de/docs/upload-product-image.md)
