Feature Templates

Update Feature Template

PUT
/features/{id}.json

Updates the name, description, unit, value type, default value, or default periodicity of a feature template. key is rejected on every update. kind is rejected once any feature catalog item has been created from this template.

Archived feature templates are not addressable here and return 404. Restore a template first to update it.

Authorization

BasicAuth
AuthorizationBasic <token>

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

In: header

Path Parameters

id*integer

The Advanced Billing id of the feature template.

Request Body

application/json

feature*

key cannot be changed once set. kind cannot be changed once any feature catalog item has been created from this template.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/features/0.json" \  -H "Content-Type: application/json" \  -d '{    "feature": {}  }'
{  "feature": {    "id": 0,    "key": "string",    "name": "string",    "description": "string",    "kind": "access_right",    "unit": "string",    "value_type": "text",    "default_value": "string",    "default_periodicity_interval": 0,    "default_periodicity_unit": "hour",    "archived_at": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "products_count": 0,    "plans_count": 0  }}