summaryrefslogtreecommitdiff
path: root/lib/api/features.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/features.rb')
-rw-r--r--lib/api/features.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/features.rb b/lib/api/features.rb
index 4e10e36fce9..e426bc050eb 100644
--- a/lib/api/features.rb
+++ b/lib/api/features.rb
@@ -42,6 +42,7 @@ module API
requires :value, type: String, desc: '`true` or `false` to enable/disable, an integer for percentage of time'
optional :flipper_group, type: String, desc: 'A Flipper group name'
optional :user, type: String, desc: 'A GitLab username'
+ mutually_exclusive :flipper_group, :user
end
post ':name' do
feature = Feature.get(params[:name])