updateBid
Requires permission biddesk:bid:update.
Changes an open or submitted bid's title, customer, owner, due date, estimate or confidentiality. Refused with BID_CLOSED on a closed bid and VERSION_CONFLICT when someone saved first. 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 UpdateBid($input: UpdateBidInput!) {
updateBid(input: $input) {
id
bidNumber
title
status
createdAt
closedAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateBid($input: UpdateBidInput!) {\n updateBid(input: $input) {\n id\n bidNumber\n title\n status\n createdAt\n closedAt\n }\n}",
"variables": {
"input": {
"expectedVersion": 0,
"id": "id"
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"id": "id"
}
}
Response:
{
"data": {
"updateBid": {
"id": "id",
"bidNumber": "string",
"title": "string",
"status": "CANCELLED",
"createdAt": "2025-01-15T00:00:00Z",
"closedAt": "2025-01-15T00:00:00Z"
}
}
}
updateBid(
input: UpdateBidInput!
): Bid!
Arguments
updateBid.input ● UpdateBidInput! non-null input
The bid, its version and the changes.
Type
Bid object
One bid: its number, title, customer, owner, due date, status, stage, confidentiality and estimated value in the organization's base currency.