Import URL not available when creating project for a given user
Created by: minorOffense
I'm not sure if this is a bug in the docs or if in fact you can't set an import_url value when creating a project for a given user.
See http://doc.gitlab.com/ce/api/projects.html for more details but here's the gist of it
If you create a project directly, you can specify the import_url
Create project
Creates new project owned by user.
POST /projects Parameters:
name (required) - new project name namespace_id (optional) - namespace for the new project (defaults to user) description (optional) - short project description issues_enabled (optional) wall_enabled (optional) merge_requests_enabled (optional) wiki_enabled (optional) snippets_enabled (optional) public (optional) - if true same as setting visibility_level = 20 visibility_level (optional) import_url (optional)
But the next set of docs don't list import_url as an option
Create project for user
Creates a new project owned by user. Available only for admins.
POST /projects/user/:user_id Parameters:
user_id (required) - user_id of owner name (required) - new project name description (optional) - short project description default_branch (optional) - 'master' by default issues_enabled (optional) wall_enabled (optional) merge_requests_enabled (optional) wiki_enabled (optional) snippets_enabled (optional) public (optional) - if true same as setting visibility_level = 20 visibility_level (optional)
Is it in fact the case that import_url isn't valid? Or a typo in the docs. If it's a typo, I can submit a pull request. If not, then I'll go make a feature request in the appropriate spot.
Thanks!