Commit 6579de07 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #5799 from criteo/import_url_api

Add import_url param in API projects create
parents 651a0dd5 cd8a90ee
......@@ -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
......
......@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment