Pausing/Resuming device with REST call

hello everyone,

I would like to pause and reactivate devices via a REST call. I’ve already looked at the REST help page, but I don’t know which parameters to put in the string. I hope you can help me.

It tells you in the docs what parameters there are.

i tried this, but nothing happens:

curl -X POST -H "X-API-Key: MyAPIKeyTakenFromTheConfigXml" http://localhost:8384/rest/system/pause?device=SomeLongDeviceId

Can I debug this Post or I missing something here?

Try quoting the url

-v option to curl will print debug output

Works now, thank you! GUI was using https and the REST call is http.

Pause device:

curl -X POST -H "X-API-Key: apikey123" "http://localhost:8384/rest/system/pause?device=Some-Long-Device-ID"

Resume device:

curl -X POST -H "X-API-Key: apikey123" "http://localhost:8384/rest/system/resume?device=Some-Long-Device-ID"