Using restful API, testing via below and command line:
http://<internal>/OpenKM/services/rest/api-docs?url=/OpenKM/services/rest/swagger.json#/gropertyGroup-service/setPropertiesSimple
You can use the swagger page to test out different curls etc. Everything on the page works except for changing/editing the metadata value for a node.
IE// I can the metadata group to the node (file). Would I not just use setPropertiesSimple on that node and use the okp.<groupname>.<field> and input the new value?
I can query the node and get all the metadata properties and their values, just can't seem to change? Any tips?
http://<internal>/OpenKM/services/rest/api-docs?url=/OpenKM/services/rest/swagger.json#/gropertyGroup-service/setPropertiesSimple
You can use the swagger page to test out different curls etc. Everything on the page works except for changing/editing the metadata value for a node.
IE// I can the metadata group to the node (file). Would I not just use setPropertiesSimple on that node and use the okp.<groupname>.<field> and input the new value?
I can query the node and get all the metadata properties and their values, just can't seem to change? Any tips?
Code: Select all
Like i said, i can accomplish everything else but this one thing, editing a files metadata values. Thanks in advance.curl -u <user>:<pass> -X POST "http://<internal>/OpenKM/services/rest/propertyGroup/setPropertiesSimple?nodeId=9934c690-ce23-4fd6-b397-4afcb917ed10&grpName=okg%3AIandT" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"list\": [ { \"name\": \"okp.IandT.issue\", \"value\": \"testing\" } ]}"
Attachments
web page
Capture.PNG (36 KiB) Viewed 1659 times
Capture.PNG (36 KiB) Viewed 1659 times