v18

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014211,6201.8 MB
gitpod.v1.BillingService

SetEnterpriseAIUserBudgetPolicy

Sets the organization default or a per-user monthly budget policy.

A user policy overrides the organization default. Set no_cap to exempt a user from the default monthly budget.

Authorization

Requires billing:update permission on the organization.

post/gitpod.v1.BillingService/SetEnterpriseAIUserBudgetPolicy

Request body

currency'BILLING_CURRENCY_UNSPECIFIED' | 'BILLING_CURRENCY_USD' | 'BILLING_CURRENCY_EUR' | 'BILLING_CURRENCY_GBP'
mode'ENTERPRISE_AI_USER_BUDGET_MODE_UNSPECIFIED' | 'ENTERPRISE_AI_USER_BUDGET_MODE_CREDITS' | 'ENTERPRISE_AI_USER_BUDGET_MODE_BYOK' required
monthlyCostLimitMicrounitsstring nullable

monthly_cost_limit_microunits is the BYOK monthly budget in micro-units of currency.

monthlyCreditLimitstring nullable

monthly_credit_limit is the credit/Ona Intelligence monthly budget in whole credits.

noCapboolean
organizationIdstring uuid required
userIdstring uuid nullable

Response

Success