Skip to content
Snippets Groups Projects
Commit dd653f62 authored by Matt Humphrey's avatar Matt Humphrey
Browse files

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'.
parent 1cfc2b6f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment