Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • 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

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

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

Content

Expand project menu
Development
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. Development
  5. Not able to create new project using V3 API

Not able to create new project using V3 API

Added by Ramkumar RN almost 6 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...