RoscoLive API v1.0
  1. Driver Scoring / Coaching
RoscoLive API v1.0
  • Device
    • Get device list for multiple companies
      GET
    • Get current activity status of devices
      GET
  • Driver Scoring / Coaching
    • Get company event score weights
      GET
    • Update company event score weights
      POST
  • Event
    • Get company events
      GET
    • Request videos of an event
      PUT
    • Get events for a device
      GET
  • Fleet Configuration
    • Create new profile in a company
      POST
    • Get a company profile
      GET
  • Metadata
    • Get alerts and events of devices for company
      GET
  • Report
    • Get custom report data
      GET
    • Get all events report for company
      GET
    • Get event count summary report for company devices
      GET
    • Update custom report
      POST
    • Create custom report for user
      PUT
  • User
    • Get a user
      GET
    • Get own info
      GET
    • Get application notifications
      GET
    • SD card reformat reminder
      POST
    • Update notification by email
      POST
    • Get event / sms notification settings
      GET
  1. Driver Scoring / Coaching

Get company event score weights

GET
https://fleet.roscolive.com/api/v1.0/driver/scoring/weights
driver
Get 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
RolePermission
Partner
Partner View
Custom Partner
Fleet Manager
Group Manager
User
Custom User
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://fleet.roscolive.com/api/v1.0/driver/scoring/weights?company_id={{$number.int(min=0,max=9999)}}'
Response Response Example
200 - Success
{
	"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"
}

Request

Query Params
company_id
integer 
optional
ID of company
>= 0
Example:
{{$number.int(min=0,max=9999)}}

Responses

🟢200Success
application/json
Body
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
🔴500Internal Server Error
🟠404Resource Not Found
🟠401Login Required
Modified at 2024-11-26 18:46:39
Previous
Get current activity status of devices
Next
Update company event score weights
Built with