[Solution Added] 504 error in REST API changes via myopenHAB

I’m trying to add tags to items using myopenHAB’s REST API. I keep getting a 504 error with any attempted changes under “PUT” commands but “GET” commands work fine.

Below are some possibilities but it would be good to hear some input or advise:

  • I’m inputting the wrong format (I’ve tried multiple variants but I’m really new to “coding”)

  • I’m not on my local network (logging on to myopenHab trough work computer), do you have to be on the local network for any changes to be made?

Response body below:

<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.10.0 (Ubuntu)</center>
</body>
</html>

Looks like you cant make changes in REST API from myopenHAB. You must port into your device locally.