EndpointsManufacturingResourcesIdOptions
Replace option-group definitions before variants are generated
The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.
PUT
A group may map to one stable primary BOM slot. Its default component must equal the primary BOM component in that slot. Definitions lock after generation.
bearerAuthheader
AuthorizationBearer <inv_ token>id*stringFormat
uuidX-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
groups*array<>Items
items <= 4Saved option definitions
application/json- response
role*stringValue in
"primary""variant"currentResourceId*stringFormat
uuidprimary*groups*array<>configurations*array<>Materialized configurations whose inventory items the caller may read.
currentSelection*array<>bomSlots*array<>combinationCount*integerRange
0 <= value <= 100generatedVariantCount*integerRange
0 <= valuefamilyVariantCount*integerRange
0 <= valuedefinitionsLocked*booleancurl -X PUT 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/options' \ -H 'Content-Type: application/json' \ -d '{ "groups": [ { "key": "string", "name": "string", "values": [ { "label": "string", "code": "string", "isDefault": true }, { "label": "string", "code": "string", "isDefault": true } ] } ]}'Example Response
{ "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}