saveBidProactivePolicy
Requires permission biddesk:settings:manage.
Saves the Bid Desk proactive policy as the next numbered revision; earlier revisions stay as history. Refused with POLICY_INVALID (with the field errors) for an invalid body, POLICY_ROLE_NOT_FOUND when the ladder's named role is not an active role of the organization, and 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 SaveBidProactivePolicy($input: SaveBidProactivePolicyInput!) {
saveBidProactivePolicy(input: $input) {
id
enteredByName
createdAt
appliesToOpen
body
enteredBy
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SaveBidProactivePolicy($input: SaveBidProactivePolicyInput!) {\n saveBidProactivePolicy(input: $input) {\n id\n enteredByName\n createdAt\n appliesToOpen\n body\n enteredBy\n }\n}",
"variables": {
"input": {
"appliesToOpen": true,
"body": {},
"expectedRevision": 0
}
}
}
EOF
Variables:
{
"input": {
"appliesToOpen": true,
"body": {},
"expectedRevision": 0
}
}
Response:
{
"data": {
"saveBidProactivePolicy": {
"id": "id",
"enteredByName": "string",
"createdAt": "2025-01-15T00:00:00Z",
"appliesToOpen": true,
"body": {},
"enteredBy": "id"
}
}
}
saveBidProactivePolicy(
input: SaveBidProactivePolicyInput!
): BidProactivePolicyRevision!
Arguments
saveBidProactivePolicy.input ● SaveBidProactivePolicyInput! non-null input
The whole policy and the revision it is based on.
Type
BidProactivePolicyRevision object
One numbered revision of the organization's Bid Desk proactive policy: business calendar, targets and reminders per kind of waiting item, and the escalation ladder. Revisions are never changed; a save adds the next one.