acceptBidHandoff
Requires permission biddesk:bid:read.
Accepts a pending hand-off. Only a member holding the receiving role, or the bid owner, can; the sender is told. Refused with HANDOFF_NOT_YOURS otherwise, VERSION_CONFLICT when the hand-off changed. Requires Bid Desk 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
mutation AcceptBidHandoff($expectedVersion: Int!, $id: ID!) {
acceptBidHandoff(expectedVersion: $expectedVersion, id: $id) {
id
bidNumber
sentByName
status
createdAt
acceptedAt
checklist {
clear
count
key
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation AcceptBidHandoff($expectedVersion: Int!, $id: ID!) {\n acceptBidHandoff(expectedVersion: $expectedVersion, id: $id) {\n id\n bidNumber\n sentByName\n status\n createdAt\n acceptedAt\n checklist {\n clear\n count\n key\n }\n }\n}",
"variables": {
"expectedVersion": 0,
"id": "id"
}
}
EOF
Variables:
{
"expectedVersion": 0,
"id": "id"
}
Response:
{
"data": {
"acceptBidHandoff": {
"id": "id",
"bidNumber": "string",
"sentByName": "string",
"status": "ACCEPTED",
"createdAt": "2025-01-15T00:00:00Z",
"acceptedAt": "2025-01-15T00:00:00Z",
"checklist": [
{
"clear": true,
"count": 0,
"key": "DEVIATIONS"
}
]
}
}
}
acceptBidHandoff(
expectedVersion: Int!
id: ID!
): BidHandoff!
Arguments
acceptBidHandoff.expectedVersion ● Int! non-null scalar
The hand-off's version you last saw.
acceptBidHandoff.id ● ID! non-null scalar
The hand-off.
Type
BidHandoff object
A bid handed from one stage to the next team, with its checklist.