Skip to main content

Get all features in a project

GET 

/api/admin/projects/:projectId/features

A list of all features for the specified project.

Request

Path Parameters

    projectId stringrequired

Responses

projectFeaturesSchema

Schema

    version integerrequired

    The version of the feature's schema

    features

    object[]

    required

    A list of features

  • Array [

  • name stringrequired

    Unique feature name

    Example: disable-comments
    type stringrequired

    Type of the flag e.g. experiment, kill-switch, release, operational, permission

    Example: kill-switch
    description stringnullablerequired

    Detailed description of the feature

    Example: Controls disabling of the comments section in case of an incident
    stale booleanrequired

    true if the feature is stale based on the age and feature type, otherwise false.

    Example: false
    favorite booleanrequired

    true if the feature was favorited, otherwise false.

    Example: true
    impressionData booleanrequired

    true if the impression data collection is enabled for the feature, otherwise false.

    Example: false
    createdAt date-timerequired

    The date the feature was created

    Example: 2023-01-28T15:21:39.975Z
    lastSeenAt date-timenullablerequireddeprecated

    The date and time when metrics where last collected for this flag in any environment. This field was deprecated in v5. You should instead use the lastSeenAt property on the individual environments listed under the environments property.

    Example: 2023-01-28T16:21:39.975Z

    environments

    object[]

    required

    The list of environments where the feature can be used

  • Array [

  • name stringrequired

    The name of the environment

    Example: my-dev-env
    type stringrequired

    The type of the environment

    Example: development
    enabled booleanrequired

    true if the feature is enabled for the environment, otherwise false.

    Example: true
    sortOrder numberrequired

    The sort order of the feature environment in the feature environments list

    Example: 3
    variantCount numberrequired

    The number of defined variants

    lastSeenAt date-timenullablerequired

    The date when metrics where last collected for the feature environment

    Example: 2023-01-28T16:21:39.975Z
    hasStrategies boolean

    Whether the feature has any strategies defined.

    hasEnabledStrategies boolean

    Whether the feature has any enabled strategies defined.

  • ]

  • tags

    object[]

    nullable

    The list of feature tags

  • Array [

  • value stringrequired

    The value of the tag.

    Possible values: >= 2 characters and <= 50 characters

    Example: a-tag-value
    type stringrequired

    The type of the tag

    Possible values: >= 2 characters and <= 50 characters

    Example: simple
  • ]

  • ]

Loading...