Requirements
- Authentication token
- File hash
1. Create a document from existing file
To create a new document from an existing file, you can use the following API call:- documentType: The type of document you want to create. (e.g. “d_default”)
- documentTitle: The title of the document.
- pdfFile: An object containing the content (file hash) of the existing file you want to use.
"path":"my_folder/nested_folder" etc…
If the folders do not exist, they will be created automatically
The response of the API call will include the ID of the newly created document:
2. Create an eDoc document
To create a new eDoc document, you can use the following API call:- documentType: The type of eDoc document you want to create. (e.g.
d_integration) - documentTitle: The title of the document.
- myField: A custom value for a field specific to this document definition.
Please note that in both cases, an authentication token is required as a parameter in the API call. Also, the user must also specify a
definitionType, documentType and workflow in order to properly configure and store the document.