v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Organizations

Set Org Spending Limit

Set the monthly spending limit for an organization.

When the limit is lowered, member and assistant limits that exceed the new org limit will be automatically capped to the org limit (eager cascade).

Setting to null removes the limit (no cap for members/assistants from this org).

put/v0/organizations/{organization_id}/spending-limit

Path parameters

organization_idinteger required

Request body

monthly_spending_capnumber nullable required

Monthly spending limit in dollars. Set to null to remove the limit.

Example request

{
  "monthly_spending_cap": 500
}

Response

Spending limit set successfully

organization_idinteger required

Organization ID.

monthly_spending_capnumber nullable

The set monthly spending limit.

cascaded_updatesobject nullable

Count of child entities that had their limits capped.

Example response

{
  "monthly_spending_cap": 500,
  "cascaded_updates": {
    "assistants_capped": 7,
    "users_capped": 3
  }
}