Update a plan
Partial update. If the latest version is already published (isLatest=true), a new draft version is created automatically; otherwise the existing draft is mutated.
Authorizations
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Path Parameters
Plan identifier (slug). Stable across versions.
Query Parameters
Specific version number to fetch / update. Defaults to the latest version.
Body
Patch payload for a plan. If applied to a published (is_latest) plan, a new version is created automatically.
"Pro Monthly (v2)"
"Updated description."
{}
true
License configuration for a plan (used when issuing license keys).
Additional temporary S3 keys (from POST /media/) to append to the plan's files. Existing files are left untouched.
[
"tmp/9b1c8af2-3d4e-4f9a-8b2c-1f3e5a7b9d12/plan-terms.pdf"
]
Response
Updated plan.
A versioned plan attached to a product. Updates create new versions; only the published version is is_latest=true.
URL-safe slug. Stable across versions.
"pro-monthly"
"Pro Monthly"
"Pro tier billed monthly."
UUID of the parent product.
"0d65f7c0-7e91-4f56-9b32-13a9a6a7c1de"
{}
3
True only for the currently published version.
true
"2025-04-12T08:21:14.910Z"
"2025-03-01T08:21:14.910Z"
Provider-side identifiers (e.g. stripeProductId).
{ "stripeProductId": "prod_ABC123" }
true
false
["US", "IN"]
License configuration for a plan (used when issuing license keys).
1