diff options
Diffstat (limited to 'doc/api/feature_flags.md')
-rw-r--r-- | doc/api/feature_flags.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/feature_flags.md b/doc/api/feature_flags.md index c4d766a6319..1aec1006610 100644 --- a/doc/api/feature_flags.md +++ b/doc/api/feature_flags.md @@ -144,14 +144,14 @@ POST /projects/:id/feature_flags | ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------| | `id` | integer/string | yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding). | | `name` | string | yes | The name of the feature flag. | -| `version` | string | yes | The version of the feature flag. Must be `new_version_flag`. Omit or set to `legacy_flag` to create a Legacy feature flag. | +| `version` | string | yes | The version of the feature flag. Must be `new_version_flag`. Omit to create a Legacy feature flag. | | `description` | string | no | The description of the feature flag. | | `active` | boolean | no | The active state of the flag. Defaults to true. [Supported](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38350) in GitLab 13.3 and later. | | `strategies` | JSON | no | The feature flag [strategies](../operations/feature_flags.md#feature-flag-strategies). | | `strategies:name` | JSON | no | The strategy name. Can be `default`, `gradualRolloutUserId`, `userWithId`, or `gitlabUserList`. In [GitLab 13.5](https://gitlab.com/gitlab-org/gitlab/-/issues/36380) and later, can be [`flexibleRollout`](https://docs.getunleash.io/user_guide/activation_strategy#gradual-rollout). | | `strategies:parameters` | JSON | no | The strategy parameters. | | `strategies:scopes` | JSON | no | The scopes for the strategy. | -| `strategies:scopes:environment_scope` | string | no | The environment spec for the scope. | +| `strategies:scopes:environment_scope` | string | no | The environment scope of the scope. | ```shell curl "https://gitlab.example.com/api/v4/projects/1/feature_flags" \ @@ -213,8 +213,8 @@ PUT /projects/:id/feature_flags/:feature_flag_name | `strategies:name` | JSON | no | The strategy name. | | `strategies:parameters` | JSON | no | The strategy parameters. | | `strategies:scopes` | JSON | no | The scopes for the strategy. | -| `strategies:scopes:id` | JSON | no | The scopes ID. | -| `strategies:scopes:environment_scope` | string | no | The environment spec for the scope. | +| `strategies:scopes:id` | JSON | no | The environment scope ID. | +| `strategies:scopes:environment_scope` | string | no | The environment scope of the scope. | ```shell curl "https://gitlab.example.com/api/v4/projects/1/feature_flags/awesome_feature" \ |