updateBidConfiguration
Requires permission biddesk:bid:update.
Changes a draft's name, quantity or selections. Refused with CONFIGURATION_FROZEN once frozen, CONFIGURATION_INVALID when it no longer builds, VERSION_CONFLICT when someone changed it first. Requires Bid Desk and permission to edit 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 UpdateBidConfiguration($input: UpdateBidConfigurationInput!) {
updateBidConfiguration(input: $input) {
id
name
status
createdAt
baseBomVersionId
bidId
changes {
id
componentProductId
configurationId
kind
lineKind
note
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateBidConfiguration($input: UpdateBidConfigurationInput!) {\n updateBidConfiguration(input: $input) {\n id\n name\n status\n createdAt\n baseBomVersionId\n bidId\n changes {\n id\n componentProductId\n configurationId\n kind\n lineKind\n note\n }\n }\n}",
"variables": {
"input": {
"expectedVersion": 0,
"id": "id"
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"id": "id"
}
}
Response:
{
"data": {
"updateBidConfiguration": {
"id": "id",
"name": "string",
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"baseBomVersionId": "id",
"bidId": "id",
"changes": [
{
"id": "id",
"componentProductId": "id",
"configurationId": "id",
"kind": "ADD",
"lineKind": "string",
"note": "string"
}
]
}
}
}
updateBidConfiguration(
input: UpdateBidConfigurationInput!
): BidConfiguration!
Arguments
updateBidConfiguration.input ● UpdateBidConfigurationInput! non-null input
The configuration, its version and the changes.
Type
BidConfiguration object
One configuration of a bid: a released base assembly version, a quantity, option selections and bid-specific changes.