update total distance counter for a device - StatusCode: 404

Donald P6 years ago

http://uat.mydomain.com:8082/api/devices/31/distance
I checked in tc_devices: there is id 31

I m trying to update total distance counter for a device but it always return

{StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  access-control-allow-headers: origin, content-type, accept, authorization
  access-control-allow-credentials: true
  access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
  access-control-allow-origin: *
  Date: Fri, 23 Nov 2018 17:23:29 GMT
  Server: Jetty(9.4.12.v20180830)
  Content-Length: 44
}}
Donald P6 years ago

resolved -- just want to share..
it changed to -->
/api/devices/{id}/accumulators

so in my case, should be:

http://uat.mydomain.com:8082/api/devices/31/accumulators

please update the doc

Anton Tananaev6 years ago

Updated, thanks.