v4

latestOpenAPI 3.0.02026-08-04109113304.5 KB
Features

Update a Feature

Update a feature by ID.

patch/features/{feature_id}

Path parameters

feature_idinteger required

The unique identifier for the Feature

Request body

archivedboolean

Whether the Feature has been archived

descriptionstring

A short description of this Feature

environmentsobject

The configuration for this Feature's Rollout within each Environment, keyed by Environment key.

keystring

Unique string identifier for this Feature within the Project

namestring

Name of the Feature

Example request

{
  "key": "new_checkout_page",
  "name": "the checkout feature",
  "variables": [
    {
      "default_value": "0.05"
    }
  ]
}

Response

Successfully updated the Feature

archivedboolean

Whether the Feature has been archived

createdstring date-time

Time when the Feature was created

descriptionstring

A short description of this Feature

environmentsobject

The configuration for this Feature's Rollout within each Environment, keyed by Environment key

idinteger

The ID of this Feature

keystring required

Unique string identifier for this Feature within the Project

last_modifiedstring date-time

Date last modified

namestring

Name of the Feature

project_idinteger required

The ID of the Project this Feature belongs to

Example response

{
  "key": "new_checkout_page",
  "name": "the checkout feature",
  "variables": [
    {
      "default_value": "0.05",
      "type": "double"
    }
  ]
}