"description":"This feature is about merge train",
"description":"This feature is about merge train",
"active":true,
"version":"new_version_flag",
"version":"new_version_flag",
"created_at":"2019-11-04T08:13:51.423Z",
"created_at":"2019-11-04T08:13:51.423Z",
"updated_at":"2019-11-04T08:13:51.423Z",
"updated_at":"2019-11-04T08:13:51.423Z",
...
@@ -68,6 +69,7 @@ Example response:
...
@@ -68,6 +69,7 @@ Example response:
{
{
"name":"new_live_trace",
"name":"new_live_trace",
"description":"This is a new live trace feature",
"description":"This is a new live trace feature",
"active":true,
"version":"new_version_flag",
"version":"new_version_flag",
"created_at":"2019-11-04T08:13:10.507Z",
"created_at":"2019-11-04T08:13:10.507Z",
"updated_at":"2019-11-04T08:13:10.507Z",
"updated_at":"2019-11-04T08:13:10.507Z",
...
@@ -112,6 +114,7 @@ Example response:
...
@@ -112,6 +114,7 @@ Example response:
{
{
"name":"awesome_feature",
"name":"awesome_feature",
"description":null,
"description":null,
"active":true,
"version":"new_version_flag",
"version":"new_version_flag",
"created_at":"2020-05-13T19:56:33.119Z",
"created_at":"2020-05-13T19:56:33.119Z",
"updated_at":"2020-05-13T19:56:33.119Z",
"updated_at":"2020-05-13T19:56:33.119Z",
...
@@ -146,6 +149,7 @@ POST /projects/:id/feature_flags
...
@@ -146,6 +149,7 @@ POST /projects/:id/feature_flags
| `name` | string | yes | The name of the feature flag. |
| `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](feature_flags_legacy.md). |
| `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](feature_flags_legacy.md). |
| `description` | string | no | The description of the 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` | JSON | no | The feature flag [strategies](../operations/feature_flags.md#feature-flag-strategies). |
| `strategies:name` | JSON | no | The strategy name. |
| `strategies:name` | JSON | no | The strategy name. |
| `strategies:parameters` | JSON | no | The strategy parameters. |
| `strategies:parameters` | JSON | no | The strategy parameters. |
...
@@ -171,6 +175,7 @@ Example response:
...
@@ -171,6 +175,7 @@ Example response:
{
{
"name":"awesome_feature",
"name":"awesome_feature",
"description":null,
"description":null,
"active":true,
"version":"new_version_flag",
"version":"new_version_flag",
"created_at":"2020-05-13T19:56:33.119Z",
"created_at":"2020-05-13T19:56:33.119Z",
"updated_at":"2020-05-13T19:56:33.119Z",
"updated_at":"2020-05-13T19:56:33.119Z",
...
@@ -204,6 +209,7 @@ PUT /projects/:id/feature_flags/:name
...
@@ -204,6 +209,7 @@ PUT /projects/:id/feature_flags/:name
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding). |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding). |
| `name` | string | yes | The name of the feature flag. |
| `name` | string | yes | The name of the feature flag. |
| `description` | string | no | The description of the feature flag. |
| `description` | string | no | The description of the feature flag. |
| `active` | boolean | no | The active state of the flag. [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` | JSON | no | The feature flag [strategies](../operations/feature_flags.md#feature-flag-strategies). |
| `strategies:id` | JSON | no | The feature flag strategy id. |
| `strategies:id` | JSON | no | The feature flag strategy id. |
| `strategies:name` | JSON | no | The strategy name. |
| `strategies:name` | JSON | no | The strategy name. |
"description":"This feature is about merge train",
"description":"This feature is about merge train",
"active":true,
"created_at":"2019-11-04T08:13:51.423Z",
"created_at":"2019-11-04T08:13:51.423Z",
"updated_at":"2019-11-04T08:13:51.423Z",
"updated_at":"2019-11-04T08:13:51.423Z",
"scopes":[
"scopes":[
...
@@ -97,6 +98,7 @@ Example response:
...
@@ -97,6 +98,7 @@ Example response:
{
{
"name":"new_live_trace",
"name":"new_live_trace",
"description":"This is a new live trace feature",
"description":"This is a new live trace feature",
"active":true,
"created_at":"2019-11-04T08:13:10.507Z",
"created_at":"2019-11-04T08:13:10.507Z",
"updated_at":"2019-11-04T08:13:10.507Z",
"updated_at":"2019-11-04T08:13:10.507Z",
"scopes":[
"scopes":[
...
@@ -163,6 +165,7 @@ POST /projects/:id/feature_flags
...
@@ -163,6 +165,7 @@ POST /projects/:id/feature_flags
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding). |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding). |
| `name` | string | yes | The name of the feature flag. |
| `name` | string | yes | The name of the feature flag. |
| `description` | string | no | The description of the 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. |
| `scopes` | JSON | no | The feature flag specs of the feature flag. |
| `scopes` | JSON | no | The feature flag specs of the feature flag. |
| `scopes:environment_scope` | string | no | The environment spec. |
| `scopes:environment_scope` | string | no | The environment spec. |
| `scopes:active` | boolean | no | Whether the spec is active. |
| `scopes:active` | boolean | no | Whether the spec is active. |