ClockNext: update plan
clocknext_update_planReplace an existing billing plan with a complete new definition (a full rewrite, not a patch). Read it first, edit, then submit the whole thing to change terms going forward.
Instructions
Replace a plan by id with a COMPLETE new definition (same shape as create — a full rewrite, not a patch; omitted fields are dropped). Changes the plan going forward; customers already on it keep their terms. Read it first with clocknext_get_plan, edit, then send the whole thing back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The plan id to update. | |
| name | Yes | Plan name. | |
| isActive | No | Whether the plan is active/sellable. | |
| components | Yes | At least one entitlement line. CREDIT/OUTCOME/UNIT components reference an existing resource by id — create those first. | |
| description | No | Optional description. | |
| billingCycle | Yes | Billing cadence. FREE plans must be ADVANCE-only with no FLAT component. | |
| carryForward | No | Carry an unused balance into the next cycle. Default true. | |
| currencyCode | No | ISO 4217 (3 letters). Default USD. |