bidUnreadCounts
Requires permission biddesk:bid:read.
Your unread messages per thread of one bid, most recently active first; threads with none are left out. Only the bid's members can use its room. 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:
- GraphQL
- cURL
query BidUnreadCounts($bidId: ID!) {
bidUnreadCounts(bidId: $bidId) {
anchorId
anchorType
threadId
unread
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidUnreadCounts($bidId: ID!) {\n bidUnreadCounts(bidId: $bidId) {\n anchorId\n anchorType\n threadId\n unread\n }\n}",
"variables": {
"bidId": "id"
}
}
EOF
Variables:
{
"bidId": "id"
}
Response:
{
"data": {
"bidUnreadCounts": [
{
"anchorId": "id",
"anchorType": "APPROVAL_STAGE",
"threadId": "id",
"unread": 0
}
]
}
}
bidUnreadCounts(
bidId: ID!
): [BidUnreadCount!]!
Arguments
bidUnreadCounts.bidId ● ID! non-null scalar
The bid.
Type
BidUnreadCount object
How many messages in one bid thread you have not read.