Set custom role credit limit
set_role_credit_limitSet or clear a custom role's monthly credit limit per member, applying changes immediately; send null to revert members to the organization default.
Instructions
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.
Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete JSON request body instead of body flags. Preserves current endpoint fields and values. | |
| role_id | Yes | The ID of the custom role (the same ID used as `group_id` by the Manage custom role users endpoint). | |
| user_id | No | Your user id -- you must be an organization admin to manage custom role credit limits. | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. | |
| organization_id | Yes | The ID of the organization the custom role belongs to. | |
| monthly_credit_limit | No | The monthly credit limit applied to each member of this role, or null to clear the role-level limit. |