Create CreditLimit
Create a per-user monthly AI credit limit for the whole tenant, a team, or an organization.
A user’s effective limit is the maximum of the tenant-wide limit and the limits of every team and organization they belong to.
Fields by group type
Notes
- Requires tenant admin permission.
monthlyLimitmust be a positive integer.- Each group may have at most one limit. Creating a second limit for the same group returns a
400; update the existing limit instead. - The organization ID is the organization’s
ent_ID. - Returns
403if credit limits are not enabled for the tenant. Team- and organization-scoped limits require group credit limits to be enabled as well. - The change is recorded in the audit log. Affected users’ effective limits are recomputed asynchronously, so the new limit may take a short time to apply.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
EARLY-ACCESS
Set to true to access beta operations via /api/v3.
Request
This endpoint expects an object.
groupType
The group scope the limit applies to: the whole tenant, a single team, or a single organization.
Allowed values:
monthlyLimit
The maximum number of AI credits each user in the group may consume per month. Must be a positive integer.
organizationId
The ID of the organization the limit applies to. Required when groupType is ORGANIZATION and must be omitted otherwise.
teamId
The ID of the team the limit applies to. Required when groupType is TEAM and must be omitted otherwise.
Response
Created
__typename
createdAt
groupType
Allowed values:
id
modifiedAt
monthlyLimit
organization
team
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error