API v1 — Features
Update Feature
Update a feature’s properties
Updates an existing feature. Only the fields you include in the request body will be changed — all other fields remain untouched.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Update a feature’s properties
PUT /api/v1/projects/{slug}/features/{featureId}
curl -X PUT https://app.cuprice.io/api/v1/projects/my-saas-app/features/101 \
-H "Authorization: Bearer cpk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "AI Prompts (v2)",
"basePrice": 12,
"usageCount": 1000,
"countPrice": 0.015
}'
{
"id": 101,
"name": "AI Prompts (v2)",
"description": "Monthly AI prompt allowance",
"basePrice": 12,
"featureType": "Limits",
"isCountable": true,
"countableData": {
"usageCount": 1000,
"condition": "Up to",
"countPrice": 0.015,
"eventAggregationMethod": "count"
},
"createdAt": "2025-09-15T10:35:00.000Z",
"updatedAt": "2025-12-05T11:20:00.000Z"
}
| Status | Description |
|---|---|
400 | Invalid field value (e.g. negative basePrice) |
401 | Invalid or missing API key |
403 | API key does not have read_write permission |
404 | Project or feature not found |
