Open Inventory / Docs
EndpunkteManufacturingResourcesIdBom

Replace an item's effective bill of materials

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

PUT
/resources/{id}/bom

Primary items store the submitted recipe as stable BOM slots. Variants compare the submitted effective recipe with the primary and persist only sparse differences.

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

id*string
Formatuuid

Header-Parameter

X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Anfrageinhalt

application/json
  1. body
components*array<>
Einträgeitems <= 100

Antwortinhalt

Bill of materials replaced

Beispielanfrage
curl -X PUT 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/bom' \  -H 'Content-Type: application/json' \  -d '{  "components": [    {      "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",      "quantityPerAssembly": 1    }  ]}'
Beispielantwort
Leer