Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Create a project with API

Create a project with API

Added by Adrien BALTARDIVE about 8 years ago

Hi everyone,

This is my first post on your forum.
I have been testing OpenProject API v3. I can create a new workpackage, all good.

However, I wish to create a new project using API, I can’t see it in the documentation so far.

Is it possible? If not, an alternative would be to use command line via ssh ?

Thanks.
Adrien.


Replies (8)

RE: Create a project with API - Added by Oliver Günther about 8 years ago

Hi Adrien,

it is not yet possible to create projects through the API.

You should easily be able to create one through the commandline, though. Use the following command as a starter point (packaged installation)

openproject run bundle exec rails runner “Project.create(identifier: ‘my-new-myproject’, name: ‘My new project’);”

Best,
Oliver

RE: Create a project with API - Added by Adrien BALTARDIVE about 8 years ago

Thanks Oliver, I’ll try that.

RE: Create a project with API - Added by Niels Lindenthal about 8 years ago

There is also a feature request for this in the wish list:

RE: RE: Create a project with API - Added by sifudam . almost 7 years ago

if any progress was made regarding the creation of project through api ? or is there any other way to “trigger” project creation except by web browser ?

RE: Create a project with API - Added by Various Interactive over 6 years ago

Is it also possible to assign a user to a project via command line?

RE: Create a project with API - Added by Various Interactive over 6 years ago

I found out, it's working with:

openproject run bundle exec rails runner "Member.create(project_id: 111, role_ids: [9], user_id: 46);"

RE: Create a project with API - Added by Ehsan Aleem Avee over 6 years ago

Hi Everyone,

I would really appreciate, if you could also let me know whether I can generate api access token for users except by web browser? Is there any way to do that via api call or bash script? Basically I would like to create an user by api call using admin user and then generate the access token for newly created user.

RE: Create a project with API - Added by Ralph Anthony Planteras over 5 years ago

Using this does creates a project with limited modules. Is there a way to add modules via API?

Im sorry for the question, im new to OPenProject APIs.

Oliver Günther wrote:

Hi Adrien,

it is not yet possible to create projects through the API.

You should easily be able to create one through the commandline, though. Use the following command as a starter point (packaged installation)

openproject run bundle exec rails runner “Project.create(identifier: ‘my-new-myproject’, name: ‘My new project’);” 

Best,
Oliver

  • (1 - 8/8)
Loading...