reopenBidThread
Requires permission biddesk:bid:read.
Reopens a resolved bid thread. Refused with BID_THREAD_ALREADY_OPEN when it is open, and with VERSION_CONFLICT when someone changed it first. 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
mutation ReopenBidThread($input: SetBidThreadStatusInput!) {
reopenBidThread(input: $input) {
id
status
createdAt
anchorId
anchorType
bidId
rootMessage {
id
senderName
createdAt
content
deleted
parentId
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ReopenBidThread($input: SetBidThreadStatusInput!) {\n reopenBidThread(input: $input) {\n id\n status\n createdAt\n anchorId\n anchorType\n bidId\n rootMessage {\n id\n senderName\n createdAt\n content\n deleted\n parentId\n }\n }\n}",
"variables": {
"input": {
"expectedVersion": 0,
"threadId": "id"
}
}
}
EOF
Variables:
{
"input": {
"expectedVersion": 0,
"threadId": "id"
}
}
Response:
{
"data": {
"reopenBidThread": {
"id": "id",
"status": "OPEN",
"createdAt": "2025-01-15T00:00:00Z",
"anchorId": "id",
"anchorType": "APPROVAL_STAGE",
"bidId": "id",
"rootMessage": {
"id": "id",
"senderName": "string",
"createdAt": "2025-01-15T00:00:00Z",
"content": "string",
"deleted": true,
"parentId": "id"
}
}
}
}
reopenBidThread(
input: SetBidThreadStatusInput!
): BidThread!
Arguments
reopenBidThread.input ● SetBidThreadStatusInput! non-null input
The thread and the version the change is based on.
Type
BidThread object
A conversation in a bid's room about one item of the bid.