Skip to main content
Removes a feature from a pricing plan. The feature itself is not deleted — it is only unassigned from the plan.

Endpoint

DELETE /api/v1/projects/{slug}/plans/{planId}/features

Authentication

Authorization
string
required
Bearer token with your API key. Requires read_write permission.

Path Parameters

slug
string
required
The project’s URL-friendly slug identifier.
planId
number
required
The plan’s unique ID.

Query Parameters

featureId
number
required
The ID of the feature to remove from the plan.

Response

success
boolean
true if the feature was successfully removed from the plan.

Example

curl -X DELETE "https://cuprice.io/api/v1/projects/my-saas-app/plans/201/features?featureId=103" \
  -H "Authorization: Bearer cpk_your_key_here"
{
  "success": true
}
This only removes the feature from the plan. The feature still exists in the project and can be assigned to other plans.

Errors

StatusDescription
400Missing featureId query parameter
401Invalid or missing API key
403API key does not have read_write permission
404Project, plan, or feature assignment not found