Update a plan

Updates a plan by setting the values of the provided parameters.

Any parameters not included in the request payload will be left unchanged.

Returns the full plan object.

Authorized scopes:

  • owner
  • admin:full
  • admin:limited
  • application:update
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

The id of the application.

uuid
required

The id of the plan group.

uuid
required

The id of the plan.

Body Params
string

If provided, this will overwrite the existing name. If not provided, or if an empty string is sent, this parameter will be ignored.

periodicity
object

If provided, this will overwrite the existing periodicity for the plan. If not provided, this parameter will be ignored.

The recurring periodicity for the plan. Any potential discounts or offers should not be considered -- only the final recurring periodicity. Unless the underlying plan group is managed by the Promo billing system, the duration must be a positive, non-zero value.

If the plan group is managed by the Promo billing system, the duration can be zero, which indicates that the plan will last forever.

entitlements
array of strings

If provided, this will overwrite the entitlement associated with the plan. If not provided, or if an empty array is sent, this parameter will be ignored. Only the names of the application's entitlements are sent in this array; the entitlements themselves will be pulled from the application's defined entitlements.

entitlements
string

If provided, this will overwrite the existing callout. If provided as an empty string, the callout for this plan will be removed. If not provided, this parameter will be ignored.

boolean
Defaults to false

If provided, and set to true, these changes will be pushed to all active subscriptions that are currently based on this plan. This update will be batched and happen as a backend job worker, and will not happen in real-time. Use extreme care when using this flag!

Headers
integer
Responses

401

Unauthorized

Language
Credentials
Bearer
token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json