Skip to main content
POST
JavaScript

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Body

application/json

Create a new feature with type, optional metering, and configuration.

id
string
required

The unique identifier for the feature

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$
displayName
string
required

The display name for the feature

Maximum string length: 255
featureType
enum<string>
required

The type of the feature

Available options:
BOOLEAN,
NUMBER,
ENUM
description
string

The description for the feature

Maximum string length: 255
meterType
enum<string>

The meter type for the feature

Available options:
None,
FLUCTUATING,
INCREMENTAL
featureStatus
enum<string>
default:ACTIVE

The status of the feature

Available options:
NEW,
SUSPENDED,
ACTIVE
featureUnits
string

The units for the feature

Maximum string length: 255
featureUnitsPlural
string

The plural units for the feature

Maximum string length: 255
metadata
object

The additional metadata for the feature

unitTransformation
object | null

Unit transformation to be applied to the reported usage

enumConfiguration
object[]

The configuration data for the feature

Required array length: 1 - 255 elements

Response

The newly created feature object.

Response object

data
Feature · object
required

Feature configuration object