Update Project Plan - Modify Subscription Settings via API
Modify an existing subscription plan's settings. Change the name, adjust pricing, update the billing cycle, or toggle payment options. Only the fields you include in the request body are updated—all other settings remain unchanged.
/v2/projects/{project_id}/plans/{plan_id}Authorization
Path Parameters
The unique identifier of the project.
The unique identifier of the plan to update.
Request Body
Display name of the plan.
Price amount for the plan as a string.
Three-letter currency code (e.g., USD, EUR).
Duration of the plan (e.g., '1 hour', '1 day', '1 month').
Formatted price display string (e.g., '$10.00').
Additional plan configuration options.
Whether the plan supports recurring payments.
Whether the plan supports one-time payments.
All fields are optional. Only provided fields will be updated.
curl -X PATCH "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/plans/YOUR_PLAN_ID" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"plan_name": "Pro Plan (Updated)",
"plan_price": "34.99",
"plan_price_formatted": "$34.99"
}'{
"ok": true,
"request_id": "11111111-1111-1111-1111-111111111111",
"method": "PATCH",
"path": "/v2/projects/YOUR_PROJECT_ID/plans/YOUR_PLAN_ID",
"code": 200,
"message": "Plan updated successfully",
"data": {
"plan_name": "Pro Plan (Updated)",
"plan_price": "34.99",
"plan_currency": "USD",
"plan_duration": "1 month",
"plan_price_formatted": "$34.99",
"plan_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"plan_data": {
"plan_recurring": false,
"plan_one_time": true
},
"plan_targets": []
}
}Last updated: