Objective
It allows to change the metadata in the document profile. Storage Type and Retention values are automatically updated when the “DocumentType” value is modified. DST must be provided.
Parameters
Parameter | Description | Type |
library | eDOCS library | String |
docNumber | Document number. Only one document number is allowed. | String |
user | User name | String |
password | User password | String |
searchForm | The name of the search form. | String |
updateForm | The name of the document profile form. | String |
properties | List of the metadata to be modified in the profile. Fields and values must be correct and must exist in the DM lookups tables. | 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:
- “/ChangeMetadata/?library={library}&docNumber={docNumber}&user={user}&password={password}&searchForm={searchForm}&updatedForm={updatedForm}&properties={properties}&client={client}&project={project}”
- “/ChangeMetadataDST/?library={library}&docNumber={docNumber}&user={user}&dst={dst}&searchForm={searchForm}&updatedForm={updatedForm}&properties={properties}&client={client}&project={project}”
Example
http://localhost:8732/GSService/xml/ChangeMetadata/?library=DMTESTLEGAL&docNumber=310&user=admin&password=owc123&searchForm=LAWPROF&updatedForm=LAWPROF&properties=Pruebametadata
The method returns 0 if the modification has been applied, or an error.
DST Example
http://localhost:8732/GSService/xml/ChangeMetadataDST/?library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&docNumber=747&searchForm=LAWPROF&updatedForm=LAWPROF&properties=Pruebametadata
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.