Skip to main content
POST
/
api
/
v1
/
features
Create a feature
curl --request POST \
  --url https://api.example.com/api/v1/features \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "feature_type": {},
  "name": "<string>",
  "description": "<string>",
  "entitlement": {
    "entity": {
      "id": "<string>"
    },
    "value": {
      "enabled": true
    }
  },
  "product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "feature_type": {},
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "entitlement": {
    "created_at": "2023-11-07T05:31:56Z",
    "feature_id": "<string>",
    "id": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "value": {
      "enabled": true
    }
  },
  "product": {
    "id": "<string>",
    "name": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.meteroid.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
feature_type
object
required
name
string
required
description
string | null
entitlement
object

Inline entitlement to attach when creating the feature.

product_id
null | string<MeteroidId>

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

Example:

"prd_7n42DGM5Tflk9n8mt7Fhc7"

Response

Feature created

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

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

product
object

Product this feature belongs to.