SpendingPolicy
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.
type SpendingPolicy {
ownerID: String!
categories: [SpendCategoryStatus!]!
missionDefaultBudget: Float!
botReserveHours: Int!
botReserveCredits: Float
effectiveBotReserve: Float!
notifyThresholds: [Int!]!
updatedAt: Time!
}
Fields
SpendingPolicy.ownerID ● String! non-null scalar
SpendingPolicy.categories ● [SpendCategoryStatus!]! non-null object
SpendingPolicy.missionDefaultBudget ● Float! non-null scalar
Budget in credits a new Mission gets unless one is set on it.
SpendingPolicy.botReserveHours ● Int! non-null scalar
Hours of the org's running-bot spend held back from AI and research spend.
SpendingPolicy.botReserveCredits ● Float scalar
A fixed bot reserve in credits. When set it replaces the hours-based reserve.
SpendingPolicy.effectiveBotReserve ● Float! non-null scalar
The reserve in force now, in credits.
SpendingPolicy.notifyThresholds ● [Int!]! non-null scalar
Percentages of a category cap at which org admins are notified, ascending.
SpendingPolicy.updatedAt ● Time! non-null scalar
Returned By
spendingPolicy query ● updateSpendingPolicy mutation