Open Inventory / Docs
EndpunkteManufacturingResourcesIdOptions

Retrieve option groups and the current resource's selections

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.

GET
/resources/{id}/options

The primary item represents the all-default combination. Generated combinations are ordinary first-class resource variants with independent operational data and sparse BOM overrides.

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 matrix, BOM slots, and current selection

application/json
  1. response
role*string
Mögliche Werte"primary""variant"
currentResourceId*string
Formatuuid
primary*
groups*array<>
configurations*array<>

Materialized configurations whose inventory items the caller may read.

currentSelection*array<>
bomSlots*array<>
combinationCount*integer
Bereich0 <= value <= 100
generatedVariantCount*integer
Bereich0 <= value
familyVariantCount*integer
Bereich0 <= value
definitionsLocked*boolean
Beispielanfrage
curl -X GET 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/options'
Beispielantwort
{  "role": "primary",  "currentResourceId": "230f10e8-af7d-43d5-8837-788f4eb8cad2",  "primary": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "sku": "string"  },  "groups": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "key": "string",      "name": "string",      "bomSlotKey": "string",      "position": 0,      "values": [        {          "label": "string",          "code": "string",          "componentResourceId": "24634572-268e-41fb-a7f6-f1960b1ded93",          "isDefault": true,          "position": 0,          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "componentName": "string"        }      ]    }  ],  "configurations": [    {      "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",      "resourceName": "string",      "resourceSku": "string",      "isPrimary": true,      "signature": "string",      "selection": [        {          "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",          "groupName": "string",          "valueId": "b772d050-4ba4-443b-8ca7-cc1e42bdd731",          "valueLabel": "string"        }      ]    }  ],  "currentSelection": [    {      "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",      "groupName": "string",      "valueId": "b772d050-4ba4-443b-8ca7-cc1e42bdd731",      "valueLabel": "string"    }  ],  "bomSlots": [    {      "slotKey": "string",      "position": 0,      "componentResourceId": "24634572-268e-41fb-a7f6-f1960b1ded93",      "componentName": "string"    }  ],  "combinationCount": 0,  "generatedVariantCount": 0,  "familyVariantCount": 0,  "definitionsLocked": true}