UpdateDocument |
This Web service operation is used for updating a document. This Web service operation is part of the Document Store Web service interface in the Repository service group.
SOAP Request
<ns:UpdateDocument> <!--type: string--> <ns:DocumentURL>complete path to the document in repository</ns:DocumentURL> <!-- If isUrl is true, DocumentContent must contain the URL of the file to be stored. Else, it contains base64 content(deprecated) --> <ns:DocumentContent isUrl="true">url of the document to be updated in repository</ns:DocumentContent> </ns:UpdateDocument>
Request Parameters
Parameter |
Description |
---|---|
DocumentContent |
The content of document. If the isUrl attribute in the DocumentContent element is true, one has to provide the path of the document. The document store connector reads the file from the given path and updates the document in the configured DMS. The default value of isUrl is true. Note: When isUrl attribute is false, one has to provide the document content in a Base64 encoded format and embed it inside the DocumentContent element. This feature has been deprecated. The recommended approach is to set isUrl to true and provide the path of the document in the DocumentContent element. Consumers must leverage streaming option for optimal performance and resource consumption. |
DocumentURL |
The URL of the document within the repository starting with the |
SOAP Response
This operation returns the URL of the document within the repository.
<ns:UpdateDocumentResponse> <!--type: string--> <ns:DocumentURL>documentstoreroot/foldername/documentname</ns:DocumentURL> </ns:UpdateDocumentResponse>
Response Parameters
Parameter |
Description |
---|---|
DocumentURL |
The URL of the document within the repository. |