decideBidGo
Requires permission biddesk:bid:update.
Decides whether to go ahead with an open bid. GO runs the bid.go approval rules: with no matching rule the bid moves past qualification to PLAN at once and a BID_GO / GO decision is recorded; a matching rule raises an approval request (CONTROL_APPROVAL_REQUIRED) and nothing changes until it is approved and applied. NO_BID closes the bid with no approval. Refused with BID_REASON_REQUIRED, BID_CLOSED, BID_GO_PAST_QUALIFY and VERSION_CONFLICT. Requires Bid Desk and permission to update 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
mutation DecideBidGo($input: DecideBidGoInput!) {
decideBidGo(input: $input) {
id
bidNumber
title
customerName
ownerName
status
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DecideBidGo($input: DecideBidGoInput!) {\n decideBidGo(input: $input) {\n id\n bidNumber\n title\n customerName\n ownerName\n status\n }\n}",
"variables": {
"input": {
"bidId": "id",
"decision": "GO",
"expectedVersion": 0,
"reason": "string"
}
}
}
EOF
Variables:
{
"input": {
"bidId": "id",
"decision": "GO",
"expectedVersion": 0,
"reason": "string"
}
}
Response:
{
"data": {
"decideBidGo": {
"id": "id",
"bidNumber": "string",
"title": "string",
"customerName": "string",
"ownerName": "string",
"status": "CANCELLED"
}
}
}
decideBidGo(
input: DecideBidGoInput!
): Bid!
Arguments
decideBidGo.input ● DecideBidGoInput! non-null input
The bid, its version, the decision and the reason.
Type
Bid object
One bid: its number, title, customer, owner, due date, status, stage, confidentiality and estimated value in the organization's base currency.