createBidProposalRevision
Requires permission biddesk:proposal:edit.
Opens the bid's next proposal revision as a draft, copying the newest released one (or seven empty sections). Refused with PROPOSAL_DRAFT_EXISTS while a draft is open. 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 CreateBidProposalRevision($input: CreateBidProposalRevisionInput!) {
createBidProposalRevision(input: $input) {
id
revisionNumber
status
createdAt
basedOnId
bidId
sections {
id
title
type
content
contentHash
position
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation CreateBidProposalRevision($input: CreateBidProposalRevisionInput!) {\n createBidProposalRevision(input: $input) {\n id\n revisionNumber\n status\n createdAt\n basedOnId\n bidId\n sections {\n id\n title\n type\n content\n contentHash\n position\n }\n }\n}",
"variables": {
"input": {
"bidId": "id"
}
}
}
EOF
Variables:
{
"input": {
"bidId": "id"
}
}
Response:
{
"data": {
"createBidProposalRevision": {
"id": "id",
"revisionNumber": 0,
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"basedOnId": "id",
"bidId": "id",
"sections": [
{
"id": "id",
"title": "string",
"type": "COMPLIANCE_MATRIX",
"content": {},
"contentHash": "string",
"position": 0
}
]
}
}
}
createBidProposalRevision(
input: CreateBidProposalRevisionInput!
): BidProposalRevision!
Arguments
createBidProposalRevision.input ● CreateBidProposalRevisionInput! non-null input
The bid.
Type
BidProposalRevision object
One revision of a bid's proposal (R0, R1, …) with its seven sections.