Information Classification: External Restricted.
See https://www.chili-publish.com/security
Creating documents using the API
To create documents, you have a number of possibilities. These are demonstrated as well in the CHILI_API_SAMPLE Website.
Create New Blank Document
For this you can use the ResourceItemAdd function, providing only "<document/>" as the items XML.
Create New Document based on Blank Document Template
The DocumentCreateFromBlankDocTemplate webservice function allows you to automate this function
Copy an existing Document
Use the ResourceItemCopy function to duplicate an existing document
Create from scratch
You can also create a new document with inital XML.
NOTE: this approach requires intensive knowledge about the underlying document XML structure. It is best to only follow this way after consultation with a CHILI representative.
Setting inital content
Regardless of the followed approach, after creating the new document you can use various other webservice functions to populate the document with initial content (variable definitions, annotations, ...). There are multiple functions allowing you to get (and set) subsets of the document (eg: annotations, variables, ...). The complete XML can be retrieved and saved using ResourceItemGetXML and ResourceItemSave
All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security