Updated the version number, but the content should already be up to date.
i did not find a command to disable user using restapi, was it not implemeted yet?
It is implemented. See this pull request:
Hello, i sent this rest PUT command bellow
and receive this error, is it a bug? I'm using the latest version.
xx.xx.xx.xx:8082/api/users/4
json
{
"attributes":{},
"name": "ads",
"email": "ads1@ads.com",
"readonly": false,
"admin": true,
"latitude": 0,
"longitude": 0,
"zoom": 0,
"twelveHourFormat": false,
"expirationTime": "2016-12-02T02:00:00.000+0000",
"deviceLimit": 2,
"token": null,
"password": "xxx"
}
ERROR
Unrecognized field "expirationTime" (class org.traccar.model.User), not marked as ignorable (14 known properties: "readonly", "name", "speedUnit", "latitude", "admin", "longitude", "zoom", "twelveHourFormat", "attributes", "distanceUnit", "id", "password", "email", "map"]) at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@f2e3703; line: 11, column: 20] (through reference chain: org.traccar.model.User["expirationTime"])
Looks like you are not using version 3.8.
Can you update swagger.json to 3.8 version, please.
https://raw.githubusercontent.com/tananaev/traccar/master/swagger.json
tks