bomOptions
Requires permission biddesk:assembly:read.
The option groups, decision-table rules and line groups of one bill-of-materials version, or null. Requires Bid Desk with engineered products and permission to read assemblies.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query BomOptions($versionId: ID!) {
bomOptions(versionId: $versionId) {
version
versionId
lineGroups {
lineId
optionGroupKey
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BomOptions($versionId: ID!) {\n bomOptions(versionId: $versionId) {\n version\n versionId\n lineGroups {\n lineId\n optionGroupKey\n }\n }\n}",
"variables": {
"versionId": "id"
}
}
EOF
Variables:
{
"versionId": "id"
}
Response:
{
"data": {
"bomOptions": {
"version": 0,
"versionId": "id",
"lineGroups": [
{
"lineId": "id",
"optionGroupKey": "string"
}
]
}
}
}
bomOptions(
versionId: ID!
): BomOptions
Arguments
bomOptions.versionId ● ID! non-null scalar
The version.
Type
BomOptions object
The option groups, decision-table rules and line groups of one bill-of-materials version.