summaryrefslogtreecommitdiff
path: root/doc/api/features.md
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-01-07 11:07:14 +0100
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-01-14 14:29:51 +0100
commit5396594a831de3f467f28c25c5856ba441b07ea7 (patch)
tree67adf2e591c65446a1d73ac90685e6073f867ad4 /doc/api/features.md
parent604073ffc38f938e36f613c592c444d56c99f49c (diff)
downloadgitlab-ce-5396594a831de3f467f28c25c5856ba441b07ea7.tar.gz
Allow setting of feature gates per project
For features the feature gates are sometimes projects, not groups or users. For example for git object pools: https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5872 This commit allows for setting feature group gates based on projects, by its path as that seems most convenient.
Diffstat (limited to 'doc/api/features.md')
-rw-r--r--doc/api/features.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/features.md b/doc/api/features.md
index 59f1005ef72..47f104e1f20 100644
--- a/doc/api/features.md
+++ b/doc/api/features.md
@@ -60,9 +60,10 @@ POST /features/:name
| `value` | integer/string | yes | `true` or `false` to enable/disable, or an integer for percentage of time |
| `feature_group` | string | no | A Feature group name |
| `user` | string | no | A GitLab username |
+| `project` | string | no | A projects path, for example 'gitlab-org/gitlab-ce' |
-Note that you can enable or disable a feature for both a `feature_group` and a
-`user` with a single API call.
+Note that you can enable or disable a feature for a `feature_group`, a `user`,
+and a `project` in a single API call.
```bash
curl --data "value=30" --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/features/new_library