pai
    Preparing search index...

    Function setPlan

    • Sets or clears a plan: a cap of amount_usd over days (PATCH /key/budget with budget_usd and period_days). days null means one calendar month. Setting an amount starts a fresh period.

      Parameters

      • apiKey: string
      • opts: { amount_usd: number | null; days?: number | null }
      • OptionalbaseUrl: string

      Returns Promise<BudgetResult>