I'm using the traccar api (api/geofences) post method to create geofence but the data inserted into db would be the autoincrement id instead of id I passed into body request.
Body sent out :
--data-raw '{ "id": 1000, "name": "testing", "area":"CIRCLE (22 3.1585142019564785,101.71237558177407)" }'
Output:
{ "id": 18, "attributes": {}, "calendarId": 0, "name": "testing", "description": null, "area": "CIRCLE (22 3.1585142019564785,101.71237558177407)" }
You can't set the id. It's generated in the database.
I'm using the traccar api (api/geofences) post method to create geofence but the data inserted into db would be the autoincrement id instead of id I passed into body request.
Body sent out :
--data-raw '{ "id": 1000, "name": "testing", "area":"CIRCLE (22 3.1585142019564785,101.71237558177407)" }'
Output:
{ "id": 18, "attributes": {}, "calendarId": 0, "name": "testing", "description": null, "area": "CIRCLE (22 3.1585142019564785,101.71237558177407)" }