POST /ws/rest/dm/document/create
Purpose and Usage:
- Enables users to add documents (files), and their metadata, to a particular folder.
- Supports adding revision to an existing document.
Input:
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.
- projectnumber (String) Optional
Not required for Company level.
- 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 the field and values for the document attribute form.
- Path
Full path where the document will be created.The folder path must exists for the document to be created.
- Name
Name of the document that needs to be created.
- Path
Output:
JSON object containing 'status', 'data', 'message'