Using the Opmanager API

Using the Opmanager API

I've been trying to use CURL to access the Opmanager API to put devices into an unmanaged state.

The code I've been using is:

curl -vv -X POST "http://its-opmp-001/api/json/device/setManaged?apiKey=<from Admin RestAPI page>&manage=false&name=its-log-001"

To which I get the following response

< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=E629D5D4BD5F7B55FFBCCBF30A11AE69; Path=/; HttpOnly
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Vary: Accept-Encoding
< Date: Mon, 29 Jun 2015 05:19:23 GMT
<
{"result":{"message":"Device has been successfully unmanaged."}}
* Connection #0 to host its-opmp-001 left intact

However when I check Opmanager device snapsot page, the device is still showing as managed.

Am I doing something wrong?

                New to ADSelfService Plus?