POST /ws/rest/dm/document/create/<parent_folder_id>
Purpose and Usage:
- Enables users to add documents under a particular folder, by using the folder node ID.
- Supports adding revision to an existing document.
Input:
Path Parameter:
- parent_folder_id
Parent folder node id under which the documents will be created. Use "Get Folder or Document metadata" REST Service to get the node_id value for the parent folder.
Form Data:
This a multi-part request, and all the parameters, must appear before all file parts and in the following order:
- Shortname (String) Required
Company short name.
- authcode (String) Required
Company authentication key.
- dorevise: (String) Optional
This flag is used to automatically revise file with same file name. Expected values are "yes" or "no". The default value is, "no."
- data (JSON String) Required
List of field and values for the document attribute form.
- Name
Name of the document that needs to be created.
- Name
Output:
JSON object containing 'status', 'data', 'message'