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

ParameterDescriptionType
libraryeDOCS libraryString
docNumberDocument number. Only one document number is allowed.String
userUser nameString
passwordUser passwordString
searchFormThe name of the search form.String
updateFormThe name of the document profile form.String
propertiesList of the metadata to be modified in the profile. Fields and values must be correct and must exist in the DM lookups tables.

New NameINVOICE

String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString

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.