Set custom role credit limit
This endpoint sets or clears the monthly credit limit of a custom role. The limit applies to each member of the role individually and takes effect immediately: member allowances are recalculated while preserving credits already used in the current billing cycle. Send "monthly_credit_limit": null to clear the role-level limit so members revert to the organization default. When a user belongs to multiple roles, the highest limit across their roles wins. Requests that do not change the stored value are no-ops. Changes are recorded in the organization audit trail.
Authorizations
Path Parameters
The ID of the organization the custom role belongs to.
The ID of the custom role (the same ID used as group_id by the Manage custom role users endpoint).
Body
Response
The custom role with its updated credit limit
The ID of the custom role.
The name of the custom role.
Whether this is a default role that new organization members are assigned to.
Number of users currently assigned to this role.
The monthly credit limit applied to each member of this role, or null when the role sets no limit.
