Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Body

application/json
id
string
required

A unique key name for the feature. Feature keys can only include letters, numbers, hyphens, and underscores.

Minimum string length: 1
valueType
enum<string>
required

The data type of the feature payload. Boolean by default.

Available options:
boolean,
string,
number,
json
defaultValue
string
required

Default value when feature is enabled. Type must match valueType.

archived
boolean
description
string

Description of the feature

Maximum string length: 10000
owner
string

The userId or email address of the owner. If an email address is provided, it will be used to look up the userId of the matching organization member. If an ID is provided, it will be validated as existing in the organization. When omitted, it defaults to the user associated with the request's Personal Access Token (PAT), if one is being used.

project
string

An associated project ID

tags
string[]

List of associated tags

environments
object

A dictionary of environments that are enabled for this feature. Keys supply the names of environments. Environments belong to organization and are not specified will be disabled by default.

prerequisites
string[]

Feature IDs. Each feature must evaluate to true

jsonSchema
string

Use JSON schema to validate the payload of a JSON-type feature value (enterprise only).

customFields
object

Response

200 - application/json

Resource created

feature
object
required