Update Project Plan
Update an existing subscription plan for a project.
PATCH
/v2/projects/{project_id}/plans/{plan_id}Authorization
Bearer TokenRequired
Path Parameters
project_idstringRequired
The unique identifier of the project.
plan_idstringRequired
The unique identifier of the plan to update.
Request Body
plan_namestring
Display name of the plan.
plan_pricestring
Price amount for the plan as a string.
plan_currencystring
Three-letter currency code (e.g., USD, EUR).
plan_durationstring
Duration of the plan (e.g., '1 hour', '1 day', '1 month').
plan_price_formattedstring
Formatted price display string (e.g., '$10.00').
plan_dataobject
Additional plan configuration options.
plan_data.plan_recurringboolean
Whether the plan supports recurring payments.
plan_data.plan_one_timeboolean
Whether the plan supports one-time payments.
All fields are optional. Only provided fields will be updated.
Request
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: