Get company event score weights
GET
/driver/scoring/weightsGet 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
Query Params
company_id
integer
optional
ID of company
>= 0
Example:
{{$number.int(min=0,max=9999)}}
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
object
required
Contains response data
event_weights
array [object {3}]
required
result
string
required
"OK" if successful, else "Fail" if error
Example
{
"meta": {
"code": 200
},
"response": {
"event_weights": [
{
"enabled": true,
"name": "idling",
"weight": 4
},
{
"enabled": true,
"name": "adas_fcw",
"weight": 4
},
{
"enabled": true,
"name": "adas_ldw",
"weight": 4
},
{
"enabled": true,
"name": "adas_pcw",
"weight": 4
},
{
"enabled": true,
"name": "gsensor",
"weight": 4
},
{
"enabled": true,
"name": "distraction",
"weight": 5
},
{
"enabled": true,
"name": "drowsiness",
"weight": 5
},
{
"enabled": true,
"name": "yawning",
"weight": 5
},
{
"enabled": true,
"name": "phone_use",
"weight": 5
},
{
"enabled": true,
"name": "harshaccel",
"weight": 4
},
{
"enabled": true,
"name": "harshbraking",
"weight": 4
},
{
"enabled": true,
"name": "low_speeding",
"weight": 4
},
{
"enabled": true,
"name": "moderate_speeding",
"weight": 4
},
{
"enabled": true,
"name": "high_speeding",
"weight": 5
},
{
"enabled": true,
"name": "severe_speeding",
"weight": 4
},
{
"enabled": true,
"name": "max_speed",
"weight": 4
},
{
"enabled": true,
"name": "seatbelt",
"weight": 5
},
{
"enabled": true,
"name": "smoking",
"weight": 5
},
{
"enabled": true,
"name": "camera_block",
"weight": 5
}
]
},
"result": "OK"
}
Last modified: a month ago