I'm using REST API to update file name and tags.
I tested it using this curl request:
Code: Select all
curl -i -u myusername:mypassword -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' -d '{ "id": 3866653, "fileName": "New Filename" }' 'https://doc.mydmsurl.com/services/rest/document/update'
Code: Select all
HTTP/1.1 406 Not Acceptable
Cache-Control: private
Expires: Thu, 01 Jan 1970 00:00:00 UTC
Date: Thu, 13 Oct 2016 10:51:22 GMT
Content-Length: 0
Server: Undisclosed/8.41
Code: Select all
2016-10-13 11:08:41.223 WARN org.apache.cxf.jaxrs.utils.JAXRSUtils No operation matching request path "/services/rest/document/update" is found, Relative Path: /update, HTTP Method: PUT, ContentType: application/json, Accept: text/html,. Please enable FINE/TRACE log level for more details.
2016-10-13 11:08:41.234 WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper javax.ws.rs.ClientErrorException: HTTP 406 Not Acceptable at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117) at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:162) at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:530) at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:177) at ... [message is very long here - can post if needed]
*Tried to setup CE 7.5.1 locally, have the same problem.