Feature Templates

Create Feature Template

POST
/features.json

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
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Request Body

application/json

feature*

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  }}