Copy feature flag
Copying flag settings is an Enterprise feature
Copying flag settings is available to customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Copy flag settings from a source environment to a target environment.
By default, this operation copies the entire flag configuration. You can use the includedActions
or excludedActions
to specify that only part of the flag configuration is copied.
If you provide the optional currentVersion
of a flag, this operation tests to ensure that the current flag version in the environment matches the version you’ve specified. The operation rejects attempts to copy flag settings if the environment’s current version of the flag does not match the version you’ve specified. You can use this to enforce optimistic locking on copy attempts.
Path parameters
Headers
Request
Optional list of the flag changes to copy from the source environment to the target environment. You may include either includedActions
or excludedActions
, but not both. If you include neither, then all flag changes will be copied.
Optional list of the flag changes NOT to copy from the source environment to the target environment. You may include either includedActions
or excludedActions
, but not both. If you include neither, then all flag changes will be copied.
Response
A human-friendly name for the feature flag
Which type of client-side SDKs the feature flag is available to
Migration-related settings for the flag
Details on the environments for this flag. Only returned if the request is filtered by environment, using the filterEnv
query parameter.
Deprecated, use clientSideAvailability
. Whether this flag should be made available to the client-side JavaScript SDK
Deprecated, use experiments
instead