setBidQuietHours
Requires permission biddesk:bid:read.
Sets your quiet hours and digest hour in your time zone. The digest hour must be outside the quiet hours. Refused with VERSION_CONFLICT when the version you read is stale. 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 SetBidQuietHours($input: SetBidQuietHoursInput!) {
setBidQuietHours(input: $input) {
digestHour
mutedBidCount
quietEnd
quietStart
timeZone
version
preferences {
kind
mailMode
push
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SetBidQuietHours($input: SetBidQuietHoursInput!) {\n setBidQuietHours(input: $input) {\n digestHour\n mutedBidCount\n quietEnd\n quietStart\n timeZone\n version\n preferences {\n kind\n mailMode\n push\n }\n }\n}",
"variables": {
"input": {
"digestHour": 0
}
}
}
EOF
Variables:
{
"input": {
"digestHour": 0
}
}
Response:
{
"data": {
"setBidQuietHours": {
"digestHour": 0,
"mutedBidCount": 0,
"quietEnd": "string",
"quietStart": "string",
"timeZone": "string",
"version": 0,
"preferences": [
{
"kind": "APPROVAL",
"mailMode": "DIGEST",
"push": "DIGEST"
}
]
}
}
}
setBidQuietHours(
input: SetBidQuietHoursInput!
): BidNotificationSettingsView!
Arguments
setBidQuietHours.input ● SetBidQuietHoursInput! non-null input
Quiet hours, digest hour and the version you read.
Type
BidNotificationSettingsView object
The signed-in person's Bid Desk notification settings: a choice per kind (defaults where nothing is stored), quiet hours, digest hour and time zone.