From dd653f62f3bf07e1ea2260b06cd44ab1aaba028b Mon Sep 17 00:00:00 2001 From: Matt Humphrey <matt@tomatto.co.uk> Date: Fri, 1 Mar 2013 16:34:11 +0000 Subject: [PATCH] Added namespace_id to project creation via API This allows you to set the namespace ID for projects via the the API. By default it is created for the current user. You can assign it to the global namespace by passing `GLN` which translates to 'Global Namespace'. --- lib/api/projects.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/projects.rb b/lib/api/projects.rb index c4d9cd96960..851e54c59b7 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -42,7 +42,8 @@ module Gitlab :issues_enabled, :wall_enabled, :merge_requests_enabled, - :wiki_enabled] + :wiki_enabled + :namespace_id] @project = ::Projects::CreateContext.new(current_user, attrs).execute if @project.saved? present @project, with: Entities::Project -- GitLab