Skip to main content

publishBidCostModel

Requires permission biddesk:settings:manage.

Publishes the cost model draft as the next version number in the organization's base currency and retires the previous published version. A published version never changes again. Refused with VERSION_CONFLICT when someone saved first. Requires Bid Desk and permission to manage Bid Desk settings.

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 PublishBidCostModel($input: PublishBidCostModelInput!) {
publishBidCostModel(input: $input) {
id
status
body
currency
modelVersion
publishedAt
}
}

Variables:

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

Response:

{
"data": {
"publishBidCostModel": {
"id": "id",
"status": "DRAFT",
"body": {},
"currency": "string",
"modelVersion": 0,
"publishedAt": "2025-01-15T00:00:00Z"
}
}
}
publishBidCostModel(
input: PublishBidCostModelInput!
): BidCostModelVersion!

Arguments​

publishBidCostModel.input ● PublishBidCostModelInput! non-null input​

The draft and the version it is based on.

Type​

BidCostModelVersion object​

One version of the organization's Bid Desk cost model: labour rates by skill, overhead, contingency by risk tag, freight, packing, installation, commissioning and travel day rates, warranty and financing. A published version never changes.