Mikrotik RouterOS HTTP request to OH

This script runs every minute on Mikrotik router.

:global mac "88:88:88:6E:74:49"
:global OldChek
:global chek
if ([/interface wireless registration-table find mac-address=$mac] != "") do={set chek true} else={set chek false}
if (($chek != $OldChek) and ($chek = true)) do={
/log warning  ($mac . " -ON")

**** this line do not work ********
/tool fetch mode=http url="http://192.168.1.11:8080/rest/items/Test_Item/state"  http-method=put content-type="text/plain" http-data="payload={ \"ON\"}" 

}

if (($chek != $OldChek) and ($chek = false)) do={
/log warning  ($mac . " -OFF")

**** this line do not work ********
/tool fetch mode=http url="http://192.168.1.11:8080/rest/items/Test_Item/state"  http-method=put content-type="text/plain" http-data="payload={ \"OFF\"}" 

}
set OldChek $chek

Script is work ok.
PUT - to update item state.
POST - to send command.