Create a feature flag

Creates a new feature flag.

POST/v3/feature-flags
JWT
featureFlag:write

Request Body Schema

PropertyTypeDescriptionConstraints
name*stringName of the feature flag.min: 1, max: 256, pattern: ^[a-zA-Z0-9_-]+$
description*stringDescription for the feature flag.min: 1, max: 256
productId*stringUnique identifier for the product.min: 1, max: 256

Request Example

{
  "name": "a",
  "description": "string",
  "productId": "string"
}
Triggers webhook: featureFlag.created
POST <your-webhook-url>
{
  "event": "featureFlag.created",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "description": "string",
    "productId": "string"
  },
  "triggeredAt": "string"
}

Responses

201 Created
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "description": "string",
  "productId": "string"
}