Content
You are here:
API: Create project from template
Added by Marco Kreuzer over 1 year 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)
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/
Thank you very much for your answer. This indeed solves a few of our issues.