This is GET output of my users.
GET
http://127.0.0.1:8082/api/users
[
{
"id": 1,
"attributes":{},
"name": "admin",
"email": "admin",
"readonly": false,
"admin": true,
"map": "osm",
"distanceUnit": "km",
"speedUnit": "kmh",
"latitude": -23.615018,
"longitude": -48.420005,
"zoom": 7,
"twelveHourFormat": false,
"password": null
},
{
"id": 28,
"attributes":{},
"name": "old user",
"email": "oldmail@mydomain.com",
"readonly": true,
"admin": false,
"map": "osm",
"distanceUnit": "km",
"speedUnit": "kmh",
"latitude": -15.798272,
"longitude": -50.726411,
"zoom": 4,
"twelveHourFormat": false,
"password": "password"
}
I was sent this rest to change 3 parameters on Id 28
PUT
http://127.0.0.1:8082/api/users/28
{
"email": "oldmail@mydomain.com",
"name": "new_user",
"password": "NEWPASSWORD"
}
this is the new GET output. Traccar server was created a new ID 0. And did not change de parametres of ID 28
http://127.0.0.1:8082/api/users
GET AGAIN
[
{
"id": 0,
"attributes":{},
"name": "new_user",
"email": "oldmail@mydomain.com",
"readonly": false,
"admin": false,
"map": null,
"distanceUnit": null,
"speedUnit": null,
"latitude": 0,
"longitude": 0,
"zoom": 0,
"twelveHourFormat": false,
"password": "NEWPASSWORD"
},
{
"id": 1,
"attributes":{},
"name": "admin",
"email": "admin",
"readonly": false,
"admin": true,
"map": "osm",
"distanceUnit": "km",
"speedUnit": "kmh",
"latitude": -23.615018,
"longitude": -48.420005,
"zoom": 7,
"twelveHourFormat": false,
"password": null
},
{
"id": 28,
"attributes":{},
"name": "old user",
"email": "oldmail@mydomain.com",
"readonly": false,
"admin": false,
"map": "osm",
"distanceUnit": "km",
"speedUnit": "kmh",
"latitude": -15.798272,
"longitude": -50.726411,
"zoom": 4,
"twelveHourFormat": false,
"password": null
}
]
This is GET output of my users.
I was sent this rest to change 3 parameters on Id 28
this is the new GET output. Traccar server was created a new ID 0. And did not change de parametres of ID 28