diff options
-rw-r--r-- | doc/api/projects.md | 1 | ||||
-rw-r--r-- | lib/api/projects.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 53acc4a025e..559553a1108 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -239,6 +239,7 @@ Parameters: + `snippets_enabled` (optional) + `public` (optional) - if `true` same as setting visibility_level = 20 + `visibility_level` (optional) +* `import_url` (optional) ### Create project for user diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 003533fb59a..66e0d1ba3ef 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -99,7 +99,8 @@ module API :snippets_enabled, :namespace_id, :public, - :visibility_level] + :visibility_level, + :import_url] attrs = map_public_to_visibility_level(attrs) @project = ::Projects::CreateContext.new(current_user, attrs).execute if @project.saved? |