Skip to main content

addBidCostLine

Requires permission biddesk:cost_sheet:edit.

Adds a sheet-level line (labour, freight, commissioning, an extra item, …) to a draft cost sheet. Refused with COST_SHEET_LOCKED once submitted, COST_LINE_INVALID listing each bad field, VERSION_CONFLICT when someone changed the sheet first. Writing a unit cost, evidence or a manual reason needs permission to view costs. Requires Bid Desk and permission to edit cost sheets.

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 AddBidCostLine($input: AddBidCostLineInput!) {
addBidCostLine(input: $input) {
id
status
approvedAt
approvedBy
bidId
configurationId
lines {
id
costCurrency
description
evidence
fxRate
kind
}
}
}

Variables:

{
"input": {
"costSheetId": "id",
"expectedVersion": 0,
"kind": "COMMISSIONING",
"quantity": "string"
}
}

Response:

{
"data": {
"addBidCostLine": {
"id": "id",
"status": "APPROVED",
"approvedAt": "2025-01-15T00:00:00Z",
"approvedBy": "id",
"bidId": "id",
"configurationId": "id",
"lines": [
{
"id": "id",
"costCurrency": "string",
"description": "string",
"evidence": {},
"fxRate": "string",
"kind": "COMMISSIONING"
}
]
}
}
}
addBidCostLine(
input: AddBidCostLineInput!
): BidCostSheet!

Arguments​

addBidCostLine.input ● AddBidCostLineInput! non-null input​

The sheet, its version and the line.

Type​

BidCostSheet object​

One cost sheet of a bid (v1, v2, …): the frozen configuration snapshot it costs, the cost model version it is costed against, and its lines. Totals are not computed here.