Give the attributes of the document.
Required attributes for create are:
-
Document Number
-
Document Name
-
Revision
-
File Id or file_hash
File Id is the unique identifier reference of the file from an external repository.
file_hash is the sha1 hash of the file if it was uploaded using EMT file uploader only. In this case, also provide file info in the payload as a json against “file” ex:
{
"contract": "contract_id",
"attribute": {
"Document Number": "TST-IMG_DOC-00000",
"Document Name": "test img doc",
"Revision": "test revision",
"file_hash": "sha1_hash of the file",
"file": {
"name": "test_image.png",
"type": "image/png",
"size": 192971,
"key": "azure_filestack_path"
}
}
}