Hello, friends! How are you?
Recently, I've used Traccar REST API to create a user with success BUT devicelimit is always in 0 (zero) by default. Why?
I tried to set it into JSON body but it doesn't work... Is this a bug or not?
Someone knows how can I set devicelimit value to -1 or 1?
I've used JSON body like that below to create a user with success but with devicelimit = 0:
{
'name': 'Johnny'
'email': 'johnny@gmail.com',
'password': 'abc1234',
'readonly': 0,
'administrator': 1,
'map': '',
'latitude': 0,
'longitude': 0,
'zoom': 0,
'phone': '+12341234123'
}
I will appreciate your help, my friends.
Thank you!
try this
{
"id" : -1,
"name" : myname,
"login" : ,
"email" : myemail,
"password" : mypassword,
"phone" : ,
"readonly" : false,
"administrator" : false,
"map" : custom,
"latitude" : -5.20907,
"longitude" : 102.839307,
"zoom" : 16,
"twelveHourFormat" : false,
"coordinateFormat" : ,
"disabled" : false,
"expirationTime" : 2019-09-24T00:00:00+07:00,
"deviceLimit" : -1,
"userLimit" : 0,
"deviceReadonly" : false,
"limitCommands" : false,
"poiLayer" : ,
"token" :
}
Thanks, my friend! I changed devicelimit to deviceLimit and BINGOO!! Good job!
Hello, friends! How are you?
Recently, I've used Traccar REST API to create a user with success BUT devicelimit is always in 0 (zero) by default. Why?
I tried to set it into JSON body but it doesn't work... Is this a bug or not?
Someone knows how can I set devicelimit value to -1 or 1?
I've used JSON body like that below to create a user with success but with devicelimit = 0:
I will appreciate your help, my friends.
Thank you!