Objective
It allows to change the metadata in the version of the document. DST must be provided.
Parameters
Parameter | Description | Type |
library | eDOCS library | String |
user | User name | String |
password | User password | String |
docNumber | Document number. Only one document number is allowed. | String |
version | Version number of the document. (1, 2, 3 …). | Long |
subVersion | Subversion letter (A, B, C, …). No letter will be used by default. | String |
properties | List of the metadata to be modified in the version. Fields and values must be correct and the only fields available are COMMNETS, AUTHOR, and TYPIST. | String |
client | Optional parameter for the client code | String |
project | Optional parameter for the project code | String |
Rest Invoke
- http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
- UriTemplate:
- “/ChangeVersionMetadata/?library={library}&user={user}&password={password}&docNumber={docNumber}&version={version}&subversion={subversion}&properties={properties}&client={client}&project={project}”
- “/ChangeVersionMetadataDST/?library={library}&user={user}&dst={dst}&docNumber={docNumber}&version={version}&subversion={subversion}&properties={properties}&client={client}&project={project}”
Example
http://localhost:8732/GSService/xml/ChangeVersionMetadata/?library=DMTESTLEGAL&user=admin&password=owc123&docNumber=747&version=1&subversion=!&properties=Pruebametadata2
The method returns 0 if the modification has been applied, or an error.
DST Example
http://localhost:8732/GSService/xml/ChangeVersionMetadataDST/?library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&docNumber=747&version=1&subversion=!&properties=Pruebametadata2
Error
Check the edocs.log file if errors arise in the update process, most likely related to wrong data or invalid field names in the properties parameter.