Update a plan
Updates an existing plan. Creates a new version unless disableVersion is set.
Use this to modify plan properties, pricing, or feature configurations. See Adding features to plans for item configuration.
Updating Items
When updatingitems, you must provide the complete items array. The new array replaces the existing configuration entirely.
To update a single feature’s configuration while keeping others unchanged, include all existing items with the modified values.
Common Use Cases
Body Parameters
Response
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
The ID of the plan to update.
1^[a-zA-Z0-9_-]+$Display name of the plan.
1Whether the plan is an add-on.
Whether the plan is automatically enabled.
The price of the plan. Set to null to remove the base price.
Feature configurations for this plan. Each item defines included units, pricing, and reset behavior.
Plans offered as assignable licenses under this plan. The full set replaces existing links.
The free trial of the plan. Set to null to remove the free trial.
Miscellaneous plan-level configuration flags.
Plan-level billing controls used as customer defaults.
Arbitrary key-value metadata defined by you for your own use (e.g. UI copy, feature highlights). Values can be any JSON-serializable value. Shared across all versions of the plan.
The base plan this plan should be linked to as a variant. Set to null to detach it from its base plan.
1^[a-zA-Z0-9_-]+$The new ID to use for the plan. Can only be updated if the plan has not been used by any customers.
1^[a-zA-Z0-9_-]+$Apply the update diff to all versions of this plan. Mutually exclusive with disable_version.
Force versioning even when no customers exist. Mutually exclusive with disable_version.
Variant plan IDs to apply this update to. Empty or omitted means no propagation.
Parent plan versions that should receive this license-plan update.
Additive variant updates for this base plan. Missing variants are created when name is provided.
Whether this is the org's default plan. Cannot be true on a variant.
Response
OK
A plan defines a set of features, pricing, and entitlements that can be attached to customers.
Unique identifier for the plan.
Display name of the plan.
Optional description of the plan.
Group identifier for organizing related plans. Plans in the same group are mutually exclusive.
Version number of the plan. Incremented when plan configuration changes.
Whether this is an add-on plan that can be attached alongside a main plan.
If true, this plan is automatically attached when a customer is created. Used for free plans.
Base recurring price for the plan. Null for free plans or usage-only plans.
Feature configurations included in this plan. Each item defines included units, pricing, and reset behavior for a feature.
Unix timestamp (ms) when the plan was created.
Environment this plan belongs to ('sandbox' or 'live').
sandbox, live Whether the plan is archived. Archived plans cannot be attached to new customers.
Deprecated. Use variant_details.base_plan_id instead. If this is a variant, the ID of the base plan it was created from.
Miscellaneous plan-level configuration flags.
Arbitrary key-value metadata defined by you for your own use. Shared across all versions of the plan.
Free trial configuration. If set, new customers can try this plan before being charged.
Details about how this variant relates to its latest base plan.
Plan-level billing controls used as customer defaults.