configureBidInbox
Requires permission biddesk:settings:manage.
Creates the bid inbox (first call, without expectedVersion) or replaces its owner, due-in days and switch (with expectedVersion). Refused when the installation has no inbound email domain, when the owner is not an active staff user, or when days are outside 1 to 90. Refused with VERSION_CONFLICT when someone saved first. Requires Bid Desk and permission to manage Bid Desk settings.
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 ConfigureBidInbox($input: ConfigureBidInboxInput!) {
configureBidInbox(input: $input) {
address
defaultDueDays
enabled
version
owner {
id
name
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ConfigureBidInbox($input: ConfigureBidInboxInput!) {\n configureBidInbox(input: $input) {\n address\n defaultDueDays\n enabled\n version\n owner {\n id\n name\n }\n }\n}",
"variables": {
"input": {
"defaultDueDays": 0,
"enabled": true,
"ownerUserId": "id"
}
}
}
EOF
Variables:
{
"input": {
"defaultDueDays": 0,
"enabled": true,
"ownerUserId": "id"
}
}
Response:
{
"data": {
"configureBidInbox": {
"address": "string",
"defaultDueDays": 0,
"enabled": true,
"version": 0,
"owner": {
"id": "id",
"name": "string"
}
}
}
}
configureBidInbox(
input: ConfigureBidInboxInput!
): BidInbox!
Arguments
configureBidInbox.input ● ConfigureBidInboxInput! non-null input
The whole bid inbox setting.
Type
BidInbox object
The organization's bid inbox: one address that customers or colleagues can send requests for quotation to, the bid manager who owns bids opened from it, and how many days ahead a new draft bid is due.