Skip to content

Variable: SetAppInstallLimitsInput ​

ts
const SetAppInstallLimitsInput: z.ZodObject<{
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
     max: z.ZodNumber;
     metric: z.ZodEnum<{
        calls: "calls";
        http_requests: "http_requests";
        spend: "spend";
     }>;
     period: z.ZodEnum<{
        day: "day";
        month: "month";
     }>;
  }, z.core.$strip>>>;
  currency: z.ZodDefault<z.ZodNullable<z.ZodString>>;
  prices: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
}, z.core.$strip>;

PUT /app-installs/:install/limits: the install's whole limits, replacing what it had. A price or a spend budget needs a currency, and an install has one budget per metric and period at most. The API also refuses a price for an action the install's version does not declare. Audited as app.limits.updated.

Released under the Apache-2.0 License.