REST API doesn't get newly created geofence

alexbk664 years ago

If I create a new geofence via demo.traccar.org - the API doesn't return it in the list of geofences, even if I set refresh=true

http://demo.traccar.org/api/geofences?refresh=true&deviceId=13133: [{"id":924,"attributes":{},"calendarId":0,"name":"Home","description":"","area":"CIRCLE (-37.91334696050819 145.06651985554848, 231.8)"},{"id":925,"attributes":{},"calendarId":0,"name":"Work","description":"","area":"CIRCLE (-37.89923340412898 145.0899048868502, 434.3)"}] 

Is there anything I can do on the server? Or open a ticket?

Anton Tananaev4 years ago

What makes you think it was created successfully?

Anton Tananaev4 years ago

Btw, why do you have device id there?

alexbk664 years ago

Hi Anton, I didn't assign the new geofence to the device. It works. And I didn't mean to submit this post, probably by accident. Sorry.