Update plan feature
Update limits, overage, or enabled status of a feature on a plan.
Update limits, overage, or enabled status of a feature on a plan.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
id*string
featureId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
enabled?boolean
includedAmount?integer
unlimited?boolean
overage?
creditsPerUnit?|null
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/plans/string/features/string" \ -H "Content-Type: application/json" \ -d '{}'{ "success": true, "data": { "planId": "string", "featureId": "string", "enabled": true, "includedAmount": -9007199254740991, "unlimited": true, "overage": { "enabled": true, "unitPrice": -9007199254740991 }, "creditsPerUnit": -9007199254740991, "pricingMode": "fixed", "margin": -9007199254740991, "object": "plan", "livemode": true }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}