Merge pull request #5799 from criteo/import_url_api
Add import_url param in API projects create
This commit is contained in:
commit
6579de0727
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue