Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6811

Closed
Open
Created Apr 17, 2014 by Administrator@rootOwner

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!

Assignee
Assign to
Time tracking