PATCH /v1/catalog/plans/{plan_id}
Saves a plan draft or forks a published plan into a new draft revision.
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
plan_idpath · string · required
Request body
billing_periodstringexpected_version_nointeger · int32interval_countinteger · int32itemsarrayExpand fields
included_quantitystringmeter_idstringquantitystringsku_version_idstringsort_orderinteger · int32
namestringplan_idstringtrial_daysinteger · int32
cURL
curl --request PATCH 'https://nexus-api.rainlib.com/v1/catalog/plans/{plan_id}' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"billing_period": "<value>",
"expected_version_no": 0,
"interval_count": 0,
"items": [
{
"included_quantity": "<value>",
"meter_id": "<value>",
"quantity": "<value>",
"sku_version_id": "<value>",
"sort_order": 0
}
],
"name": "<value>",
"trial_days": 0
}'Response contract
200 · OK
billing_periodstringcodestringidstringinterval_countinteger · int32itemsarrayExpand fields
included_quantitystringmeter_codestringmeter_idstringquantitystringsku_codestringsku_display_namestringsku_idstringsku_version_idstringsort_orderinteger · int32
namestringproduct_idstringstatusstringtrial_daysinteger · int32version_idstringversion_nointeger · int32version_statusstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.