Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 2.95 KB

File metadata and controls

50 lines (43 loc) · 2.95 KB

FeatureFlagBody

Properties

Name Type Description Notes
name string A human-friendly name for the feature flag [default to undefined]
key string A unique key used to reference the flag in your code [default to undefined]
description string Description of the feature flag. Defaults to an empty string. [optional] [default to undefined]
includeInSnippet boolean Deprecated, use <code>clientSideAvailability</code>. Whether this flag should be made available to the client-side JavaScript SDK. Defaults to <code>false</code>. [optional] [default to undefined]
clientSideAvailability ClientSideAvailabilityPost [optional] [default to undefined]
variations Array<Variation> An array of possible variations for the flag. The variation values must be unique. If omitted, two boolean variations of <code>true</code> and <code>false</code> will be used. [optional] [default to undefined]
temporary boolean Whether the flag is a temporary flag. Defaults to <code>true</code>. [optional] [default to undefined]
tags Array<string> Tags for the feature flag. Defaults to an empty array. [optional] [default to undefined]
customProperties { [key: string]: CustomProperty; } [optional] [default to undefined]
defaults Defaults [optional] [default to undefined]
purpose string Purpose of the flag [optional] [default to undefined]
migrationSettings MigrationSettingsPost [optional] [default to undefined]
maintainerId string The ID of the member who maintains this feature flag [optional] [default to undefined]
maintainerTeamKey string The key of the team that maintains this feature flag [optional] [default to undefined]
initialPrerequisites Array<FlagPrerequisitePost> Initial set of prerequisite flags for all environments [optional] [default to undefined]
isFlagOn boolean Whether to automatically turn the flag on across all environments at creation. Defaults to <code>false</code>. [optional] [default to undefined]

Example

import { FeatureFlagBody } from 'launchdarkly-api-typescript';

const instance: FeatureFlagBody = {
    name,
    key,
    description,
    includeInSnippet,
    clientSideAvailability,
    variations,
    temporary,
    tags,
    customProperties,
    defaults,
    purpose,
    migrationSettings,
    maintainerId,
    maintainerTeamKey,
    initialPrerequisites,
    isFlagOn,
};

[Back to Model list] [Back to API list] [Back to README]