comecerodocs

Publish a feature set revision

POST
/feature_sets/{feature_set_id}/revisions

Publishes the set's next revision: every feature it grants and what each is worth. A published revision never changes; to change a set, publish another. With rollout: all every customer who holds the set gets it; with new_only only purchases from now on do. The revision is checked against every product that points at the set (a one-time product needs reset never or a fixed period, and no rate plan; a priced entry needs a subscription billed monthly or more often, in the rate plan's currency). Publishing fixes the type and metric_id of every feature it lists. Secret and trusted tokens may call it; a limited token may not (403).

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

feature_set_id*string

The feature set id.

Request Body

The revision.

application/json
  1. body

The next revision of a feature set.

rollout*string

all gives the revision to every customer who holds the set. new_only gives it to purchases from now on, while earlier buyers keep the revision they had.

Value in"all""new_only"
entries*array<>

Every feature the set grants, each listed once. A feature left out is no longer granted by this revision.

Itemsitems <= 200

Response Body

Success.

application/json
  1. response

One published version of a feature set: what each of its features is worth. A revision never changes; a change publishes a new one.

object?string

Always feature_set_revision.

feature_set_id?string

The feature set.

revision?integer

1 for the first revision, then one more each time.

published_at?string

When it was published.

Formatdate-time
rollout?string

all gives it to every customer who holds the set. new_only gives it to purchases from now on, while earlier buyers keep the revision they had.

Value in"all""new_only"
entries?array<>

The features and what each is worth, as stored (defaults filled in, decimals without trailing zeros).

test?boolean

Test or live.

Example Request
curl -X POST 'https://api.comecero.com/api/v1/feature_sets/string/revisions' \  -H 'Content-Type: application/json' \  -d '{  "rollout": "all",  "entries": [    {      "feature_key": "sso",      "value": true    },    {      "feature_key": "seats",      "limit_per_unit": "1"    },    {      "feature_key": "api_calls",      "limit": "10000"    }  ]}'
Example Response
{  "object": "feature_set_revision",  "feature_set_id": "fs_pro",  "revision": 2,  "published_at": "2026-11-10T12:00:00Z",  "rollout": "all",  "entries": [    {      "feature_key": "sso",      "value": true    },    {      "feature_key": "seats",      "limit_per_unit": "1"    },    {      "feature_key": "api_calls",      "limit": "10000",      "reset": "billing_period",      "hard_limit": false    }  ],  "test": true}