Users

Set a user plan

Changed on

Setting the current plan is a no-op. Upgrading resolves the associated pending usage request. May add paid seats; subscription synchronization follows the saved seat change. extraUsagePeriodSpend is null in the response.

put/billing/v1/ai-models-included/users/{userId}/plan

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/billing/v1/ai-models-included/users/{userId}/plan
  • Auth
    HTTP bearer

Request body

plan'business' | 'business_max' 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'business' | 'business_max' required
extraUsagePeriodSpendnumber nullable required

Changes