HTTP POST not working


This is what I send:

POST /app/devices/< my device id > HTTP/1.1
X-Auth-token:" "
Content-Type: application/json
Content-Length: 52

[{“variable”:" my variable id ",“value”:50}]

I get this in return:
HTTP/1.1 302 Found
Cache-Control: no-cache
Content-length: 0
Connection: close

No data is generated, do anyone see a basic error?

I’ve tried both port 80 and 443 using, but then I get 302 Moved Temporarily.

Any hints or tips are appreciated. Thanks.


Solved it using:

POST /api/v1.6/devices//?token=my token HTTP/1.1
Content-Type: application/json
Content-Length: 11



Greetings, the endpoint below does not fit our REST API if you are planning to use the variable ID:

Referencing our [docs]( Variable Value), the endpoint should be{id}/values/. Also, your JSON does not fit the our REST API, please refer to the [docs]( Variable Value) for more information.

All the best