Update company event score weights
POST
/driver/scoring/weightsUpdate event score weights for driver scoring in a company. Driver score weights are on a scale of 1 to 5 with 1 being the least impactful.
Roles with endpoint access
Role | Permission |
---|---|
Partner | |
Partner View | |
Custom Partner | |
Fleet Manager | |
Group Manager | |
User | |
Custom User |
Request
Body Params multipart/form-data
company_id
integer
optional
ID of company. Required only for partner
user roles
Example:
{{$number.int(min=0,max=9999)}}
weights
string <json>
required
Stringified JSON object containing the updates to the desired fields. Only fields passed will have their values updated.
Example:
{
"idling": {
"weight": 2,
"enabled": true
},
"adas_fcw": {
"weight": 3,
"enabled": true
},
"adas_pcw": {
"weight": 3,
"enabled": true
},
"adas_ldw": {
"weight": 3,
"enabled": true
},
"gsensor": {
"weight": 3,
"enabled": true
},
"distraction": {
"weight": 5,
"enabled": true
},
"drowsiness": {
"weight": 4,
"enabled": true
},
"yawning": {
"weight": 3,
"enabled": true
},
"phone_use": {
"weight": 4,
"enabled": true
},
"harshaccel": {
"weight": 3,
"enabled": true
},
"harshbraking": {
"weight": 2,
"enabled": true
},
"low_speeding": {
"weight": 1,
"enabled": true
},
"moderate_speeding": {
"weight": 2,
"enabled": true
},
"high_speeding": {
"weight": 4,
"enabled": true
},
"severe_speeding": {
"weight": 5,
"enabled": true
},
"max_speed": {
"weight": 5,
"enabled": true
},
"seatbelt": {
"weight": 4,
"enabled": true
},
"smoking": {
"enabled": false,
"weight": 5
},
"camera_block": {
"weight": 2,
"enabled": true
}
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
Request metadata object
code
integer
required
HTTP status code returned by response
response
string
required
Contains response data
result
string
required
"OK" if successful, else "Fail" if error
Example
{
"meta": {
"code": 200
},
"response": "success",
"result": "OK"
}
Last modified: 3 months ago