Open Inventory / Docs
EndpunkteManufacturingResourcesIdOptions

Generate every non-default option combination

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.

POST
/resources/{id}/options

Atomically creates the Cartesian product as protected first-class variants, copies catalog and stock settings, stores selections, and writes only BOM differences. Maximum 100 total combinations.

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

Antwortinhalt

Option variants generated

application/json
  1. response
primaryResourceId*string
Formatuuid
generatedVariantCount*integer
Bereich1 <= value <= 99
variants*array<>
Beispielanfrage
curl -X POST 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/options'
Beispielantwort
{  "primaryResourceId": "78ec449b-98ae-431f-8d08-a3d237c7494b",  "generatedVariantCount": 1,  "variants": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "sku": "string"    }  ]}