How to create a new Document?

Heyho,

my current situation is, that i have a DocumentModelId and i need to create an empty Document. Within the Model is a specific annotated Group, and i have to create all Groups according to the path. In the model it is a repeatable group which is an include. I have documents of the related include and would then put them into the group.

Currently i don’t know if there is already an easy solution for creating an empty document (with a unknown model at compile time) and how to create all necessary groups, before inserting the included groups.

Happy regards,
Tjorben

As soon as you have obtained the paths from your DocumentModel, creating the document is very simple. For this, refer to the DocumentV2 API.

Hello @tjorben-atomic-moss , I am a member of the Discourse team. I can see that there was a new response to your question on the Topic of the discussion. Do you find it helpful, or should the question remain open?

Thanks ahead for your feedback and have a nice rest of the day!

Heyho,

yeah this helped a lot. I was just blind and didn’t saw the obvious solution.

Thanks to @stefan-cold-haze :slight_smile:

Case can be closed