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. Not able to create new project using V3 API

Not able to create new project using V3 API

Added by Ramkumar RN over 5 years ago

I am not able to create new project using V3 api.

Url : http://<<My DOMAIN>>/openproject/api/v3/projects/
Content-Type : application/json
Authorization : Basic Auth ==>  apikey / <<MY KEY>>

payload

{            "identifier": "new_project_identifier"
              "name": "Newprojectname"

}

Getting error : {

"_type": "Error",

"errorIdentifier": "urn:openproject-org:api:v3:errors:InternalServerError",

"message": "An internal error has occured."

}

In Open Project error logs we are getting below error.

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]: E, [2019-11-13T09:10:42.753203 #120295] ERROR -- :   Grape rescuing from error: API::Errors::InternalError

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]:   Original error: #<Grape::Exceptions::MethodNotAllowed: Grape::Exceptions::MethodNotAllowed>

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]:   Stacktrace:

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]:     /opt/openproject/vendor/bundle/ruby/2.6.0/gems/grape-1.2.3/lib/grape/endpoint.rb:254:in `block in run'

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]:     /opt/openproject/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/notifications.rb:170:in `instrument'

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]:     /opt/openproject/vendor/bundle/ruby/2.6.0/gems/grape-1.2.3/lib/grape/endpoint.rb:243:in `run'

Nov 13 09:10:42 hycopen openproject-web-1.service[37580]:     /opt/openproject/vendor/bundle/ruby/2.6.0/gems/grape-1.2.3/lib/grape/endpoint.rb:314:in `block in build_stack'


Loading...