-
I tried to find out, why posting limit via API does not work after update. i tried to send a post cmd from windows cmd console: C:>curl -u "admin:password" http://192.168.xxx.xxx/api/limit/config -d "data={"serial":"xxxxxxxxxxxx", "limit_type":1, "limit_value":20}" (instead of xxxxx i typed the real actual values!) I also tried it with Postman - same result Authorization is OK, otherwise no result would be sent. I canot found in any docu which value is missing! Same, when posting power on / off thanks for any advise! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Does |
Beta Was this translation helpful? Give feedback.
-
for everyone who also uses Windows: |
Beta Was this translation helpful? Give feedback.
-
Solution for ioBroker. I use following function (JavaScript):
|
Beta Was this translation helpful? Give feedback.
for everyone who also uses Windows:
Use PowerShell. Then you can use the single quotes as shown in the examples.
When Content-Type is used, then it have to be: 'Content-Type': 'application/x-www-form-urlencoded'
This is default, so you don't have to set this by using -H parameter.