bidConfiguratorPrefill
Requires permission biddesk:bid:read.
The configurator's answers for a bid from its requirements mapped exactly to a question of the model version, the questions its requirements disagree on, and the requirements no question covers. Requires Bid Desk with engineered products and permission to read bids.
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 BidConfiguratorPrefill($bidId: ID!, $modelVersionId: ID!) {
bidConfiguratorPrefill(bidId: $bidId, modelVersionId: $modelVersionId) {
answers
conflicts {
paramKey
requirementIds
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidConfiguratorPrefill($bidId: ID!, $modelVersionId: ID!) {\n bidConfiguratorPrefill(bidId: $bidId, modelVersionId: $modelVersionId) {\n answers\n conflicts {\n paramKey\n requirementIds\n }\n }\n}",
"variables": {
"bidId": "id",
"modelVersionId": "id"
}
}
EOF
Variables:
{
"bidId": "id",
"modelVersionId": "id"
}
Response:
{
"data": {
"bidConfiguratorPrefill": {
"answers": {},
"conflicts": [
{
"paramKey": "string",
"requirementIds": [
"id"
]
}
]
}
}
}
bidConfiguratorPrefill(
bidId: ID!
modelVersionId: ID!
): BidConfiguratorPrefill!
Arguments
bidConfiguratorPrefill.bidId ● ID! non-null scalar
The bid.
bidConfiguratorPrefill.modelVersionId ● ID! non-null scalar
The configuration model version to pre-fill.
Type
BidConfiguratorPrefill object
The configurator's answers for a bid, taken from requirements mapped exactly to a question.