updateSpendingPolicy
Change the organization's spending policy. Every argument but ownerID is
optional; an omitted one is left as it is. uncapped removes the cap of each
listed category. useHoursBasedBotReserve: true clears a fixed
botReserveCredits so the hours-based reserve applies again.
updateSpendingPolicy(
ownerID: String!
aiChatMonthlyCap: Float
missionsMonthlyCap: Float
backtestsMonthlyCap: Float
hyperoptMonthlyCap: Float
uncapped: [SpendCategory!]
missionDefaultBudget: Float
botReserveHours: Int
botReserveCredits: Float
useHoursBasedBotReserve: Boolean
notifyThresholds: [Int!]
): SpendingPolicy!
Arguments
updateSpendingPolicy.ownerID ● String! non-null scalar
updateSpendingPolicy.aiChatMonthlyCap ● Float scalar
updateSpendingPolicy.missionsMonthlyCap ● Float scalar
updateSpendingPolicy.backtestsMonthlyCap ● Float scalar
updateSpendingPolicy.hyperoptMonthlyCap ● Float scalar
updateSpendingPolicy.uncapped ● [SpendCategory!] list enum
updateSpendingPolicy.missionDefaultBudget ● Float scalar
updateSpendingPolicy.botReserveHours ● Int scalar
updateSpendingPolicy.botReserveCredits ● Float scalar
updateSpendingPolicy.useHoursBasedBotReserve ● Boolean scalar
updateSpendingPolicy.notifyThresholds ● [Int!] list scalar
Type
SpendingPolicy object
An organization's spending policy over its one credit balance: monthly caps per category, the default budget of a Mission, and the bot reserve — the credits AI and research spend can never use, so running bots keep running. Admins are notified when a category reaches each of notifyThresholds percent of its cap.