installBidApprovalTemplates
Requires permission biddesk:settings:manage.
Saves the starter bid approval rules this organization does not have yet (matched by name): bids above a value need every stage, margin below a floor and deviations need commercial sign-off, costing with uncosted lines needs cost sign-off. Each is saved switched off for you to adjust; running it again saves nothing new. Requires Bid Desk and permission to manage Bid Desk settings.
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
mutation InstallBidApprovalTemplates {
installBidApprovalTemplates {
installed
singleStage
skipped
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation InstallBidApprovalTemplates {\n installBidApprovalTemplates {\n installed\n singleStage\n skipped\n }\n}"
}
EOF
Response:
{
"data": {
"installBidApprovalTemplates": {
"installed": 0,
"singleStage": true,
"skipped": 0
}
}
}
installBidApprovalTemplates: BidApprovalTemplatesInstallResult!
Type
BidApprovalTemplatesInstallResult object
What installing the starter bid approval rules saved.