REST API POST Request

Hi,
I’m trying to send a POST request to change the value of the channel in my custom controller. I’m using Postman.

The HTTP address: http://admin:admin@localhost:8084/rest/channel/ctrlio.openems.edge.controller.LoadManagement0/Yesterday,

and the body of the request:
{
“value”: 0.1
}

The request goes through, the response is “{}”, but the value of the channel is not changed.

Am I using the wrong body of the request? Maybe I should use parameters? I’m not quite sure, I would appreciate some help here.

All the best,
Karolina

Hi Karolina,

your request looks ok. It is eventually handled by this method: openems/ApiWorker.java at fadef80128bcf923e2da22af2eac942066467c1e · OpenEMS/openems · GitHub

Do you see any logs?
Is Yesterday a WriteChannel?

Regards,
Stefan