Skip to main content

bidHealth

Requires permission biddesk:bid:read.

The health of up to 100 bids the caller may see, computed now: state, reasons, escalation and who the bid is waiting on. Unknown or invisible bids are left out. Requires Bid Desk and permission to read 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:

query BidHealth($bidIds: [ID!]!) {
bidHealth(bidIds: $bidIds) {
bidId
escalatedToMe
escalationLevel
escalationSubjectId
escalationSubjectKind
state
reasons {
code
count
level
minutes
severity
subjectId
}
}
}

Variables:

{
"bidIds": [
"id"
]
}

Response:

{
"data": {
"bidHealth": [
{
"bidId": "id",
"escalatedToMe": true,
"escalationLevel": 0,
"escalationSubjectId": "id",
"escalationSubjectKind": "APPROVAL_STAGE",
"state": "AT_RISK",
"reasons": [
{
"code": "BID_OVERDUE",
"count": 0,
"level": 0,
"minutes": 0,
"severity": "AT_RISK",
"subjectId": "id"
}
]
}
]
}
}
bidHealth(
bidIds: [ID!]!
): [BidHealth!]!

Arguments​

bidHealth.bidIds ● [ID!]! non-null scalar​

The bids to judge, at most 100.

Type​

BidHealth object​

A bid's health, computed from the live data when asked. The same for everyone who may see the bid, except escalatedToMe.