enableBidDesk
Requires permission biddesk:settings:manage.
Switches Bid Desk on for the organization and returns its status. Does nothing when it is already on. Refused when the plan does not include Bid Desk. Requires 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 EnableBidDesk {
enableBidDesk {
enabled
entitled
on
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation EnableBidDesk {\n enableBidDesk {\n enabled\n entitled\n on\n }\n}"
}
EOF
Response:
{
"data": {
"enableBidDesk": {
"enabled": true,
"entitled": true,
"on": true
}
}
}
enableBidDesk: BidDeskStatus!
Type
BidDeskStatus object
Whether Bid Desk is on for the organization. It is on only when the organization's plan includes Bid Desk and the organization has switched it on.