Hi All,
I'm trying to update property (attribute) of a particular category with below ReST API. This is working fine when tested with Postman client. However, the same is not working when trying with Apache HttpClient (in Java). The issue is its returning 200 as response but property isn't getting updated in CS (v10.5).
Appreciate your help in pointing out the error and thanks in advance for your help!
REST API: /nodes/{id}/categories/{category_id}/
Java Program:
PutMethod put = new PutMethod("http://xxxxx/OTCS/cs.exe/api/v1/nodes/274613/categories/110000");
put.setRequestHeader("OTCSTICKET", "Xvz7NzQK59RPt6r0kTo+GPl7qqk9oKqj+h+304VED3C1bvEsejdhtMKGt1dfEWU9");
NameValuePair[] params = new NameValuePair[1];
params[0] = new NameValuePair("110000_5", "xx1234563");
put.setQueryString(params);
//put.setQueryString("110000_5=123456"); // this too is not working
int statusCode = httpClient.executeMethod(put); // this is retruning as 200
Regards,
Maqsood