confirmBidFileUpload
Requires permission biddesk:bid:update.
Checks an uploaded bid file and makes it READY. Refused with BID_FILE_NOT_UPLOADED when nothing was uploaded yet, BID_FILE_NOT_PENDING when it was already confirmed or rejected, and BID_FILE_REJECTED (the stored file is deleted) when it is over 50 MB or not the declared size. 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:
- GraphQL
- cURL
mutation ConfirmBidFileUpload($fileId: ID!) {
confirmBidFileUpload(fileId: $fileId) {
id
fileName
status
createdAt
bidId
contentType
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ConfirmBidFileUpload($fileId: ID!) {\n confirmBidFileUpload(fileId: $fileId) {\n id\n fileName\n status\n createdAt\n bidId\n contentType\n }\n}",
"variables": {
"fileId": "id"
}
}
EOF
Variables:
{
"fileId": "id"
}
Response:
{
"data": {
"confirmBidFileUpload": {
"id": "id",
"fileName": "string",
"status": "READY",
"createdAt": "2025-01-15T00:00:00Z",
"bidId": "id",
"contentType": "string"
}
}
}
confirmBidFileUpload(
fileId: ID!
): BidFile!
Arguments
confirmBidFileUpload.fileId ● ID! non-null scalar
The file to confirm.
Type
BidFile object
A file attached to a bid, kept in private storage. Open it through bidFileDownloadUrl.