refreshBidProposalRevision
Requires permission biddesk:proposal:edit.
Fills a draft proposal revision from its bid: the compliance matrix from the requirements, the price schedule (the configured assembly priced from the approved cost roll-up with the bid's pricing terms, and the catalog lines priced by the quote engine), the accepted deviations and the payment milestones. Changes only the sections whose content changed; sends nothing and creates no quote. Refused with PROPOSAL_REVISION_LOCKED once released, or VERSION_CONFLICT. Requires Bid Desk and permission to edit proposals.
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 RefreshBidProposalRevision($expectedVersion: Int!, $revisionId: ID!) {
refreshBidProposalRevision(
expectedVersion: $expectedVersion
revisionId: $revisionId
) {
changedSections
problems
revision {
id
revisionNumber
status
createdAt
basedOnId
bidId
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RefreshBidProposalRevision($expectedVersion: Int!, $revisionId: ID!) {\n refreshBidProposalRevision(\n expectedVersion: $expectedVersion\n revisionId: $revisionId\n ) {\n changedSections\n problems\n revision {\n id\n revisionNumber\n status\n createdAt\n basedOnId\n bidId\n }\n }\n}",
"variables": {
"expectedVersion": 0,
"revisionId": "id"
}
}
EOF
Variables:
{
"expectedVersion": 0,
"revisionId": "id"
}
Response:
{
"data": {
"refreshBidProposalRevision": {
"changedSections": [
"COMPLIANCE_MATRIX"
],
"problems": [
"string"
],
"revision": {
"id": "id",
"revisionNumber": 0,
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"basedOnId": "id",
"bidId": "id"
}
}
}
}
refreshBidProposalRevision(
expectedVersion: Int!
revisionId: ID!
): BidProposalRefreshResult!
Arguments
refreshBidProposalRevision.expectedVersion ● Int! non-null scalar
The revision's version as last loaded.
refreshBidProposalRevision.revisionId ● ID! non-null scalar
The draft revision.
Type
BidProposalRefreshResult object
What a refresh from the bid did: the revision as it now stands, the sections whose content changed, and what still keeps it from being released.