v2
admin
copilot
admin

Reset User Rate Limit Usage

Reset a user's daily usage counter (and optionally weekly). Admin-only.

post/api/copilot/admin/rate_limit/reset

Request body

user_idstring required
reset_weeklyboolean

Response

Successful Response

user_idstring required
user_emailstring nullable
daily_cost_limit_microdollarsinteger required
weekly_cost_limit_microdollarsinteger required
daily_cost_used_microdollarsinteger required
weekly_cost_used_microdollarsinteger required
tier'NO_TIER' | 'BASIC' | 'PRO' | 'MAX' | 'BUSINESS' | 'ENTERPRISE' required

Subscription tiers with increasing cost allowances.

Mirrors the SubscriptionTier enum in schema.prisma. Once prisma generate is run, this can be replaced with::

from prisma.enums import SubscriptionTier
tier_multipliersobject

Changes

Changed in 2 of the 92 revisions of this API.11

    • added the optional property tier_multipliers to the response with the 200 status

      response-optional-property-added

    • removed the optional property tier_multipliers from the response with the 200 status

      response-optional-property-removed

    This revision also has 96 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog