---
title: "PATCH /api/supplychain-mappings/collaborations/{collaborationId}"
method: PATCH
path: "/api/supplychain-mappings/collaborations/{collaborationId}"
tags: ["SupplyChain"]
---

# PATCH /api/supplychain-mappings/collaborations/{collaborationId}

`PATCH /api/supplychain-mappings/collaborations/{collaborationId}`

Map a company to a supply chain

## Path parameters

- `collaborationId` string, required

## Request body

- object
  - `originNodeId` string, required
  - `companies` object[], required
    - `companyId` string
    - `facilityProcesses` object[]
      - `facilityProcessId` string
      - `facilityProcessName` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `nodes` object[], required
      - `id` string, required
      - `supplyChainId` string, nullable, required
      - `companyId` string, nullable, required
      - `facilityProcesses` unknown, required
      - `numberOfDescendants` number, nullable, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `409` — Default Response

## Changes

> 23 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 3 breaking, 3 info
  - the response property `data/nodes/items/companyId` became nullable for the status `200`
  - the response property `data/nodes/items/numberOfDescendants` became nullable for the status `200`
  - the response property `data/nodes/items/supplyChainId` became nullable for the status `200`
  - response property `data/nodes/items/companyId` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - …2 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/supplychain-mappings/collaborations/:collaborationId/patch.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-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/fde251beb0ca/schema)
