Mutation
mutation SetConsumptionBudget($input: SetConsumptionBudgetInput!) {
setConsumptionBudget(input: $input) {
consumptionBudget {
unit
scope
workspace {
name
uid
createdAt
dbtVersion
supportedDbtVersions
dbtPartialParsing
}
userUid
user {
email
uid
fullName
accountType
status
inviteStatus
}
agentSlug
}
}
}Variables
{
"input": {
"target": {},
"monthlyAllowance": "value"
}
}Response
{
"data": {
"setConsumptionBudget": {
"consumptionBudget": {
"unit": "DINOAI_CREDITS",
"scope": "PLATFORM",
"workspace": {
"name": "string",
"uid": "string",
"createdAt": "value",
"dbtVersion": "string",
"supportedDbtVersions": [
"string"
],
"dbtPartialParsing": true
},
"userUid": "string",
"user": {
"email": "string",
"uid": "string",
"fullName": "string",
"accountType": "ADMIN",
"status": "ACTIVE",
"inviteStatus": "PENDING"
},
"agentSlug": "string"
}
}
}
}setConsumptionBudget
Creates or replaces the monthly budget of one target. Needs budgets:write.
MUTATION
setConsumptionBudget(input: SetConsumptionBudgetInput!): SetConsumptionBudgetPayload!Arguments
input
required
The budget to set.
Returns
consumptionBudget
The budget as stored.
Mutation
mutation SetConsumptionBudget($input: SetConsumptionBudgetInput!) {
setConsumptionBudget(input: $input) {
consumptionBudget {
unit
scope
workspace {
name
uid
createdAt
dbtVersion
supportedDbtVersions
dbtPartialParsing
}
userUid
user {
email
uid
fullName
accountType
status
inviteStatus
}
agentSlug
}
}
}Variables
{
"input": {
"target": {},
"monthlyAllowance": "value"
}
}Response
{
"data": {
"setConsumptionBudget": {
"consumptionBudget": {
"unit": "DINOAI_CREDITS",
"scope": "PLATFORM",
"workspace": {
"name": "string",
"uid": "string",
"createdAt": "value",
"dbtVersion": "string",
"supportedDbtVersions": [
"string"
],
"dbtPartialParsing": true
},
"userUid": "string",
"user": {
"email": "string",
"uid": "string",
"fullName": "string",
"accountType": "ADMIN",
"status": "ACTIVE",
"inviteStatus": "PENDING"
},
"agentSlug": "string"
}
}
}
}