Skip to main content
POST
/
api
/
v1
/
plans
/
{plan_id}
/
features
Add Feature to Plan
curl --request POST \
  --url https://api.example.com/api/v1/plans/{plan_id}/features \
  --header 'Content-Type: application/json' \
  --data '
{
  "feature_id": "<string>",
  "is_enabled": true,
  "usage_limit": 123,
  "usage_reset_period": "<string>",
  "is_soft_limit": true,
  "static_value": "<string>"
}
'
{
  "id": "...",
  "plan_id": "...",
  "feature_id": "...",
  "feature_type": "meter",
  "is_enabled": true,
  "usage_limit": 10000,
  "usage_reset_period": "month",
  "is_soft_limit": false,
  "static_value": null
}
plan_id
string
required
UUID of the plan
feature_id
string
required
UUID of the feature to attach
is_enabled
boolean
required
Whether this feature is active on this plan
usage_limit
integer
For meter features: max usage per reset period (null = unlimited)
usage_reset_period
string
When the limit resets: day, week, month, year
is_soft_limit
boolean
If true, access continues above the limit (no hard block)
static_value
string
For custom features: the entitlement value
{
  "id": "...",
  "plan_id": "...",
  "feature_id": "...",
  "feature_type": "meter",
  "is_enabled": true,
  "usage_limit": 10000,
  "usage_reset_period": "month",
  "is_soft_limit": false,
  "static_value": null
}