removeBidCostLine
Requires permission biddesk:cost_sheet:edit.
Removes a sheet-level line of a draft cost sheet. A line of the frozen configuration cannot be removed (COST_LINE_FROM_SNAPSHOT). Refused with COST_SHEET_LOCKED or VERSION_CONFLICT. 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:
- GraphQL
- cURL
mutation RemoveBidCostLine($input: RemoveBidCostLineInput!) {
removeBidCostLine(input: $input) {
id
status
approvedAt
approvedBy
bidId
configurationId
lines {
id
costCurrency
description
evidence
fxRate
kind
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RemoveBidCostLine($input: RemoveBidCostLineInput!) {\n removeBidCostLine(input: $input) {\n id\n status\n approvedAt\n approvedBy\n bidId\n configurationId\n lines {\n id\n costCurrency\n description\n evidence\n fxRate\n kind\n }\n }\n}",
"variables": {
"input": {
"expectedVersion": 0,
"id": "id"
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"id": "id"
}
}
Response:
{
"data": {
"removeBidCostLine": {
"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"
}
]
}
}
}
removeBidCostLine(
input: RemoveBidCostLineInput!
): BidCostSheet!
Arguments
removeBidCostLine.input ● RemoveBidCostLineInput! non-null input
The line and its version.
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.