v4

latestOpenAPI 3.0.02026-08-04109113304.5 KB
Features

Get Features by Project

Get all of the Features that have been created in a given Project. Note this endpoint is incompatible with Full Stack Targeted Rollouts projects (default in accounts created after July 2020) and with non-legacy Full Stack projects (default in projects created after February 2021). See the compatible API at https://library.optimizely.com/docs/api/flags/v1/index.html#tag/Flags.

get/features

Query parameters

per_pageinteger

Optional pagination argument that specifies the maximum number of objects to return per request

pageinteger

Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.

project_idinteger required

The ID of the project for which you would like to get Features

Response

Return all Features in a specified Project

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"
      }
    ]
  }
]