summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authormiks <miks@cubesystems.lv>2012-09-05 23:01:03 +0300
committermiks <miks@cubesystems.lv>2012-09-05 23:01:03 +0300
commit8f7360f3901ae27a457f252b1a9a091a857434ee (patch)
treeb93b90cea3c78bdb9fb43f0e69ba6dc518747304 /lib/api/projects.rb
parent19a52197462b9b508af6e90ed3ae55b653d4949e (diff)
downloadgitlab-ce-8f7360f3901ae27a457f252b1a9a091a857434ee.tar.gz
API on adding users to project implemented
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 3d4fde9270f..46e688e47f0 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -44,6 +44,18 @@ module Gitlab
end
end
+ # Add users to project with specified access level
+ #
+ # Parameters:
+ # id (required) - The ID or code name of a project
+ # user_ids (required) - The ID list of users to add
+ # project_access (required) - Project access level
+ # Example Request:
+ # PUT /projects/:id/add_users
+ put ":id/add_users" do
+ user_project.add_users_ids_to_team(params[:user_ids], params[:project_access])
+ end
+
# Get a project repository branches
#
# Parameters: