Skip to main content

applyBidTemplate

Requires permission biddesk:bid:update.

Lays out a bid's stages from a template, counted back in working days from the bid's due date in the organization's time zone; replaces the current plan (stages the template drops are removed). Refused with BID_PLAN_STARTED once a stage is complete, BID_CLOSED on a closed bid and VERSION_CONFLICT when the bid changed. 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:

mutation ApplyBidTemplate($input: ApplyBidTemplateInput!) {
applyBidTemplate(input: $input) {
bidDueOn
bidId
bidVersion
stages {
id
bidId
completedAt
dueOn
position
stageKey
}
}
}

Variables:

{
"input": {
"bidId": "id",
"expectedVersion": 0,
"templateId": "id"
}
}

Response:

{
"data": {
"applyBidTemplate": {
"bidDueOn": "string",
"bidId": "id",
"bidVersion": 0,
"stages": [
{
"id": "id",
"bidId": "id",
"completedAt": "2025-01-15T00:00:00Z",
"dueOn": "string",
"position": 0,
"stageKey": "APPROVAL"
}
]
}
}
}
applyBidTemplate(
input: ApplyBidTemplateInput!
): BidStagePlan!

Arguments​

applyBidTemplate.input ● ApplyBidTemplateInput! non-null input​

The bid, its version and the template.

Type​

BidStagePlan object​

A bid's stage plan: its stages in order with their deadlines.