Update a feature flag

Updates the specified feature flag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/feature-flags/{id}
JWT
featureFlag:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the feature flag.

Request Body Schema

PropertyTypeDescriptionConstraints
namestringName of the feature flag.min: 1, max: 256, pattern: ^[a-zA-Z0-9_-]+$
descriptionstringDescription for the feature flag.min: 1, max: 256

Request Example

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

Responses

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