comecerodocs

Update a feature

PUT
/features/{key}

Changes a feature. Only the fields you send change. The key never changes. type and metric_id can change until a feature set revision or an override grants the feature; after that they are fixed, because customers hold it as it is. Archive a feature to stop new revisions and overrides from granting it. 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

key*string

The feature's key.

Request Body

The fields to change.

application/json
  1. body

The fields to change. Only the fields you send change. The rules are the same as on create.

key?string

Must be the feature's own key, if sent (400 otherwise). A key never changes; create a new feature for a new key.

name?string

Up to 100 characters.

Lengthlength <= 100
type?string

Can change until the feature is granted (409 with code feature_in_use after). Changing to boolean or number clears metric_id.

Value in"boolean""number""metered"
metric_id?string

Metered features only. Can change until the feature is granted (409 with code feature_in_use after).

unit_label?string

Up to 96 characters. An empty string clears it.

Lengthlength <= 96
status?string

Archived keeps the feature with every customer who has it, but no new revision or override can grant it.

Value in"active""archived"

Response Body

Success.

application/json
  1. response

One thing you sell access to: on or off (boolean), a number setting such as seats (number), or a limit on something you count (metered). Your app asks for it by key.

object?string

Always feature.

feature_id?string

The id Comecero gives the feature, feat_ plus 32 characters.

key?string

The key your app checks. 1 to 64 of a-z 0-9 _ . -, unique in the account and mode. Never changes.

name?string

Up to 100 characters, shown in the dashboard.

type?string

How the feature is granted. Fixed once granted is true.

Value in"boolean""number""metered"
metric_id?string

Metered features only. The usage metric that counts it, a sum or latest metric. Left out on other types. Fixed once granted is true.

unit_label?string

Up to 96 characters, for example seat or request. Left out when not set.

status?string

An archived feature stays with every customer who has it, but no new feature set revision or override can grant it.

Value in"active""archived"
granted?boolean

True once a published feature set revision or an override grants the feature. From then on its type and metric_id never change.

test?boolean

Test or live.

date_created?string

When the feature was created.

Formatdate-time
date_modified?string

When the feature last changed.

Formatdate-time
Example Request
curl -X PUT 'https://api.comecero.com/api/v1/features/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "API requests"}'
Example Response
{  "object": "feature",  "feature_id": "feat_4f1c2a9e0b7d4c3a8e6f5d2b1a0c9e8d",  "key": "api_calls",  "name": "API requests",  "type": "metered",  "metric_id": "met_api_calls",  "unit_label": "request",  "status": "active",  "granted": true,  "test": true,  "date_created": "2026-11-01T09:00:00Z",  "date_modified": "2026-11-12T16:20:00Z"}