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
General discussion
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. General discussion
  5. API: Create project from template

API: Create project from template

Added by Marco Kreuzer about 2 years ago

Hello

Is it possible to create a project via API with a pre-defined template?

This could be very helpful for customizing the layout. But more important: Some of the API features are not yet implemented. For example, after opening of a default project, the wiki page as well as the documents page are not yet indexed with an id. This only happens after creating an entry. Therefore, there is no way to add an attachment programmatically. However, this could be circumvented by using a template, where the pages are already initialized. Then, attachments can be added.


Replies (2)

RE: API: Create project from template - Added by Alexander Stock about 2 years ago

Hello Marco

while there is no create-from-template API functionality, you could eventually use the copy function [1]. This would allow you to copy an existing project which you could set up for just his purpose.

Best
Alexander

[1] https://www.openproject.org/docs/api/endpoints/projects/

RE: API: Create project from template - Added by Marco Kreuzer about 2 years ago

Thank you very much for your answer. This indeed solves a few of our issues.

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