Users

Set a user plan

Changed on

Setting the current plan is a no-op. Upgrading resolves the associated pending usage request. Changes the applicable included allowance without purchasing seats. extraUsagePeriodSpend is null in the response.

put/billing/v1/bring-your-own-keys/users/{userId}/plan

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/billing/v1/bring-your-own-keys/users/{userId}/plan
  • Auth
    HTTP bearer

Request body

plan'standard' | 'power_user' required

Response

Updated resource. Spending is null; GET retrieves spending.

idstring uuid required
emailstring email

Present only when the key also has the USER_MANAGEMENT_API scope.

namestring nullable

Present only when the key also has the USER_MANAGEMENT_API scope.

plan'standard' | 'power_user' required
extraUsagePeriodSpendnumber nullable required

Changes