admin

Update Rate Limits

Update a user's rate limits.

Distinguishes "field not in request" from "explicit null":

  • field absent → leave the stored value untouched
  • field present and null → reset to type defaults (clear the stored value)
  • field present and numeric → set to that number
put/v1/admin/accounts/{user_id}/rate-limits

Path parameters

user_idstring required

Headers

authorizationstring

Request body

rpm_limitinteger nullable

Requests per minute limit

concurrency_limitinteger nullable

Max concurrent generation jobs

Response

Successful Response

user_idstring required

User ID

emailstring nullable

Account email

billing_typestring

'prepaid' or 'postpaid'

spending_limitinteger nullable

Spending limit per period in dollars

balance_dollarsnumber nullable

Prepaid shadow balance (dollars)

created_atstring nullable

Account creation timestamp

updated_atstring nullable

Last update timestamp

Example response

{
  "rate_limits": {
    "rpm": {
      "usage": 12,
      "limit": 100
    },
    "concurrency": {
      "usage": 12,
      "limit": 100
    }
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.