---
title: "PUT /api/integrations/amfori/suppliers/{companyId}"
method: PUT
path: "/api/integrations/amfori/suppliers/{companyId}"
tags: ["Integrations - Amfori"]
---

# PUT /api/integrations/amfori/suppliers/{companyId}

`PUT /api/integrations/amfori/suppliers/{companyId}`

Manually set or clear (unlink, with `amforiSiteId: null`) a supplier's amfori site id. Gated by the caller→supplier relationship: a brand with an active link may edit; a supplier may NOT edit its own link (403). Returns 409 when the site id is already held by another supplier in the brand's network.

## Path parameters

- `companyId` string, required

## Request body

- object
  - `amforiSiteId` string, nullable, required

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `companyId` string, required
    - `businessPartnerId` string, nullable, required
    - `siteId` string, nullable, required
    - `lastSyncedAt` string, nullable, required
    - `linked` boolean, required
    - `provenance` 'SYNC' | 'MANUAL', required
    - `siteIdUpdatedByName` string, nullable, required
    - `siteIdUpdatedAt` string, nullable, required

## Other responses

- `401` — Default Response
- `403` — Default Response
- `409` — Default Response
- `422` — Default Response

## Changes

> 49 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 7 breaking, 6 info
  - request property `amforiSiteId` list-of-types was narrowed by removing types `null` from media type `application/json`
  - the `amforiSiteId` request property's minLength was increased from `0` to `1`
  - the response property `data/businessPartnerId` became nullable for the status `200`
  - the response property `data/lastSyncedAt` became nullable for the status `200`
  - …9 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/integrations/amfori/suppliers/:companyId/put.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/940ef021e2d5?raw)
