bidAnchorThreadCounts
Requires permission biddesk:bid:read.
Open and total threads for each item of one kind in a bid; items without threads 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 BidAnchorThreadCounts($input: BidAnchorThreadCountsInput!) {
bidAnchorThreadCounts(input: $input) {
anchorId
open
total
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidAnchorThreadCounts($input: BidAnchorThreadCountsInput!) {\n bidAnchorThreadCounts(input: $input) {\n anchorId\n open\n total\n }\n}",
"variables": {
"input": {
"anchorType": "APPROVAL_STAGE",
"bidId": "id"
}
}
}
EOF
Variables:
{
"input": {
"anchorType": "APPROVAL_STAGE",
"bidId": "id"
}
}
Response:
{
"data": {
"bidAnchorThreadCounts": [
{
"anchorId": "id",
"open": 0,
"total": 0
}
]
}
}
bidAnchorThreadCounts(
input: BidAnchorThreadCountsInput!
): [BidAnchorThreadCount!]!
Arguments
bidAnchorThreadCounts.input ● BidAnchorThreadCountsInput! non-null input
The bid and the kind of item.
Type
BidAnchorThreadCount object
How many threads one item of a bid has.