---
search:
  tags:
    - Fornitori
    - POST
seo:
  description: Aggiorna un fornitore (body POST parziale). Richiede una chiave Write.
sidebar:
  label: Aggiorna fornitore
  badge: POST
title: Aggiorna fornitore
type: openapi-operation
---
Aggiorna un fornitore (body POST parziale). Richiede una chiave Write.

`POST /suppliers/{supplierId}`

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

- `name` (string)
- `externalId` (string) — Identificativo esterno facoltativo
- `company` (string)
- `city` (string)
- `street` (string)
- `plz` (string)
- `email` (string)
- `payoutEmail` (string)
- `orderEmail` (string)
- `phone` (string)
- `contactPerson` (string)
- `contactPhone` (string)
- `dailyMail` (string)
- `supplierMargin` (number)
- `iban` (string)
- `bic` (string)
- `bankName` (string)
- `payoutsEnabled` (boolean)
- `deleted` (boolean) — Imposta true per il soft-delete.

Request body example:

```json
{
  "city": "Bern"
}
```

**Responses**

- `200` — Aggiornato
- `400` — Parametri o body non validi.
- `403` — Chiave API mancante, sconosciuta o inattiva, oppure chiave Read su un’operazione di scrittura.
- `404` — Nessun elemento con questo 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"
}
```
