Skip to main content

removeBidFile

Requires permission biddesk:bid:update.

Removes a file from a bid; the stored copy is kept. Refused with VERSION_CONFLICT when someone saved first. 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 RemoveBidFile($expectedVersion: Int!, $fileId: ID!) {
removeBidFile(expectedVersion: $expectedVersion, fileId: $fileId) {
id
fileName
status
createdAt
bidId
contentType
}
}

Variables:

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

Response:

{
"data": {
"removeBidFile": {
"id": "id",
"fileName": "string",
"status": "READY",
"createdAt": "2025-01-15T00:00:00Z",
"bidId": "id",
"contentType": "string"
}
}
}
removeBidFile(
expectedVersion: Int!
fileId: ID!
): BidFile!

Arguments​

removeBidFile.expectedVersion ● Int! non-null scalar​

The version the removal is based on.

removeBidFile.fileId ● ID! non-null scalar​

The file to remove.

Type​

BidFile object​

A file attached to a bid, kept in private storage. Open it through bidFileDownloadUrl.