v2
admin
copilot
admin

Set User Rate Limit Tier

Set a user's rate-limit tier. Admin-only.

Returns 404 if the user does not exist in the database.

post/api/copilot/admin/rate_limit/tier

Request body

user_idstring required
tier'NO_TIER' | 'TRIAL' | '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

Response

Successful Response

user_idstring required
tier'NO_TIER' | 'TRIAL' | '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

Changes

Changed in 1 of the 165 revisions of this API.11

    • ●

      added the new TRIAL enum value to the response property for the response status

      response-property-enum-value-added

    • ○

      added the new TRIAL enum value to the request property

      request-property-enum-value-added