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.Documentation Index
Fetch the complete documentation index at: https://docs.cuprice.io/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
Bearer token with your API key. Requires
read_write permission.Path Parameters
The project’s URL-friendly slug identifier.
The plan’s unique ID.
Body Parameters
You can use either the single-feature format or the batch format.Single Feature
The ID of the feature to assign to the plan.
Multiplier for the feature (e.g.
3 means 3x the base limit). Defaults to 1.Batch (Multiple Features)
Array of feature assignments to add in a single request.
Response
Number of features newly assigned to the plan.
Number of features skipped because they were already assigned.
Updated list of all plan-feature associations with full feature details.
Example — Single Feature
Example — Batch Add
In the batch example, feature
101 was already assigned to the plan, so it was skipped (added: 2, skipped: 1).Errors
| Status | Description |
|---|---|
400 | Missing featureId or invalid feature IDs |
401 | Invalid or missing API key |
403 | API key does not have read_write permission |
404 | Project, plan, or feature not found |
