Create Feature Template
Defines a new feature at the site level. Feature templates aren't billable on their own. Attach a template to products or components to grant the feature to subscribers.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/features.json" \ -H "Content-Type: application/json" \ -d '{ "feature": { "key": "sso", "name": "Single Sign-On", "kind": "access_right" } }'{ "feature": { "id": 1001, "key": "sso", "name": "Single Sign-On", "description": null, "kind": "access_right", "unit": null, "value_type": "boolean", "default_value": "true", "default_periodicity_interval": null, "default_periodicity_unit": null, "archived_at": null, "created_at": "2024-01-15T10:00:00-05:00", "updated_at": "2024-01-15T10:00:00-05:00", "products_count": 0, "plans_count": 0 }}List Feature Templates GET
Lists the feature templates defined for your site, active (non-archived) ones by default. Pass `status=archived` or `status=all` to widen the result set. Supply `page` or `per_page` to paginate. Without either parameter, the response includes the full result set.
Read Feature Template GET
Returns a single feature template. Archived feature templates are not addressable here and return `404`. Restore a template first to read or update it.