Skip to main content

Get all feature types

GET 

/api/admin/feature-types

Retrieves all feature types that exist in this Unleash instance, along with their descriptions and lifetimes.

Responses

featureTypesSchema

Schema

    version integerrequired

    The schema version used to describe the feature flag types listed in the types property.

    Possible values: [1]

    Example: 1

    types

    object[]

    required

    The list of feature flag types.

  • Array [

  • id stringrequired

    The identifier of this feature flag type.

    Example: kill-switch
    name stringrequired

    The display name of this feature flag type.

    Example: Kill switch
    description stringrequired

    A description of what this feature flag type is intended to be used for.

    Example: Kill switch feature flags are used to quickly turn on or off critical functionality in your system.
    lifetimeDays integernullablerequired

    How many days it takes before a feature flag of this typed is flagged as potentially stale by Unleash. If this value is null, Unleash will never mark it as potentially stale.

    Example: 40
  • ]

Loading...