configuratorEvaluate
Requires permission biddesk:assembly:read.
Evaluates answers on a configuration model version for the guided configurator: the engine's result, the frozen-configuration hash, line names and units, the longest supplier lead time and, for people allowed to see cost, the standard cost of one unit. 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 ConfiguratorEvaluate($input: ConfiguratorEvaluateInput!) {
configuratorEvaluate(input: $input) {
bomHash
definitionHash
leadTimeDays
leadTimePartial
modelVersionId
result
labels {
name
productId
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query ConfiguratorEvaluate($input: ConfiguratorEvaluateInput!) {\n configuratorEvaluate(input: $input) {\n bomHash\n definitionHash\n leadTimeDays\n leadTimePartial\n modelVersionId\n result\n labels {\n name\n productId\n }\n }\n}",
"variables": {
"input": {
"answers": {},
"modelVersionId": "id"
}
}
}
EOF
Variables:
{
"input": {
"answers": {},
"modelVersionId": "id"
}
}
Response:
{
"data": {
"configuratorEvaluate": {
"bomHash": "string",
"definitionHash": "string",
"leadTimeDays": 0,
"leadTimePartial": true,
"modelVersionId": "id",
"result": {},
"labels": [
{
"name": "string",
"productId": "id"
}
]
}
}
}
configuratorEvaluate(
input: ConfiguratorEvaluateInput!
): ConfiguratorEvaluation!
Arguments
configuratorEvaluate.input ● ConfiguratorEvaluateInput! non-null input
The model version and the answers.
Type
ConfiguratorEvaluation object
What one set of answers gives on a configuration model version: the engine's result, the hash a frozen configuration would get, line names and units, the longest supplier lead time and, for people allowed to see cost, the standard cost of one unit.