Assigns features to a pricing plan. You can add a single feature or multiple features in a batch request. Features that are already assigned to the plan are silently skipped.
Endpoint
POST /api/v1/projects/{slug}/plans/{planId}/features
Authentication
string
required
Bearer token with your API key. Requires read_write permission.
Path Parameters
string
required
The project’s URL-friendly slug identifier.
number
required
The plan’s unique ID.
Body Parameters
You can use either the single-feature format or the batch format.
Single Feature
number
required
The ID of the feature to assign to the plan.
number
Multiplier for the feature (e.g. 3 means 3x the base limit). Defaults to 1.
Batch (Multiple Features)
array
Array of feature assignments to add in a single request.
Show Feature assignment object
number
required
The ID of the feature to assign.
number
Multiplier for the feature. Defaults to 1.
Response
number
Number of features newly assigned to the plan.
number
Number of features skipped because they were already assigned.
array
Updated list of all plan-feature associations with full feature details.