v2
admin
copilot
admin

Set User Rate Limit Tier

Changed on

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

  • The document declares no server URL.
  • Auth
    HTTP bearer

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
warningstring nullable

Changes

    • info

      added the optional property to the response with the status

    • warning

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

    • info

      added the new TRIAL enum value to the request property