Entitlements

Create a feature

post/api/v1/features

Request body

descriptionstring nullable
namestring required
product_idstring MeteroidId

Example request

{
  "entitlement": {
    "entity": {
      "id": "feat_7n42DGM5Tflk9n8mt7Fhc7"
    }
  },
  "feature_type": {
    "metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
  },
  "product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}

Response

Feature created

created_atstring date-time required
descriptionstring nullable
idstring MeteroidId required
namestring required
status'ACTIVE' | 'DISABLED' | 'ARCHIVED' required

Lifecycle status of a feature.

Example response

{
  "entitlement": {
    "feature_id": "feat_7n42DGM5Tflk9n8mt7Fhc7",
    "id": "ent_7n42DGM5Tflk9n8mt7Fhc7"
  },
  "feature_type": {
    "metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
  },
  "id": "feat_7n42DGM5Tflk9n8mt7Fhc7",
  "product": {
    "id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
  }
}

Changes