Skip to main content
POST
Create a feature

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
code
string
required

Unique key used to reference this feature in your code. Cannot be changed after creation.

feature_type
object
required

Fixed at creation — a feature never changes type.

name
string
required
description
string | null
entitlement
object

Feature-level (default) entitlement, applied to all subscriptions as the lowest-priority.

product_id
string<MeteroidId> | null

Product this feature belongs to. Omit for a tenant-global feature.

Example:

"prd_7n42DGM5Tflk9n8mt7Fhc7"

Response

Feature created

code
string
required

Unique key used to reference this feature in your code. Cannot be changed after creation.

created_at
string<date-time>
required
feature_type
object
required
id
string<MeteroidId>
required
Example:

"feat_7n42DGM5Tflk9n8mt7Fhc7"

name
string
required
status
enum<string>
required

Lifecycle status of a feature.

Available options:
ACTIVE,
DISABLED,
ARCHIVED
description
string | null
entitlement
object | null

Feature-level (default) entitlement, applied to all subscriptions as the lowest-priority.

product
object | null

Product this feature belongs to.