RoscoLive API v1.0
  1. Company
RoscoLive API v1.0
  • Authentication
    • Login
      POST
    • Logout
      GET
    • mark eula as viewed
      POST
    • password change
      POST
    • password reset
      POST
  • Company
    • get camera health error
      GET
    • create a company
      PUT
    • get partner settings
      GET
    • get audit logs of a company
      GET
    • get input sensors notifications of a company
      GET
    • get ignition notifications of a company
      GET
    • get a company by ID
      GET
    • update a company by ID
      POST
    • update company
      POST
    • search companies
      GET
    • get companies list
      GET
    • get a company
      GET
    • get companies
      GET
    • get partner companies list
      GET
    • get own partner company
      GET
  • Custom Role Permissions
    • get full list of available custom user permission
      GET
  • Device
    • get company devices
      GET
    • search devices
      GET
    • update a device
      POST
    • get a device data usage
      GET
    • Play in-cab audible alert sound for device
      POST
    • get devices data usage
      GET
    • get a company devices by company ID
      GET
    • restart a device
      GET
    • get company devices with modems
      GET
    • get distance
      GET
    • get installed report of a device
      GET
    • get an installed report
      GET
    • merge profile with device config
      POST
    • get audit logs of a device
      GET
    • get list of trip dates for device
      GET
    • get list of trips for passed device and date
      GET
    • Get a device
      GET
    • get list of company devices
      GET
    • get device with driver id
      GET
    • create devices (legacy/DV4)
      PUT
    • create devices (auto-prov/DV6)
      PUT
    • get company device using IMEI/SN
      GET
    • check red bubble in manage vehicles
      GET
    • bulk device creation
      PUT
    • get devices for all companies available for user
      GET
    • get list of trip related snapshots
      GET
    • reset status of sd card
      POST
    • get list of all available dates
      GET
    • get available video list for date
      GET
    • replace device
      POST
    • get replace history by device id
      GET
    • clear device channel status
      POST
    • get camera health error by device id
      GET
    • get camera health definitions
      GET
    • update camera health error by error id
      POST
    • update camera health errors
      POST
    • Get device list for multiple companies
      GET
    • Get current activity status of devices
      GET
  • Device Firmware
    • get available firmware versions
    • get list of latest firmware versions
    • push firmware to device
    • cancel pending firmware update to devices
    • get firmware updates history for company
  • Driver Scoring / Coaching
    • get company drivers list
    • get a list of trips
    • associate a driver with a trip
    • get driver by event_id
    • update a driver
    • get driver by trip_photo_id
    • get driver scores
    • add driver photo
    • add a driver
    • remove a driver
    • upload a driver from csv file
    • get unknown driver trips
    • associate trip with the driver.
    • Get company event score weights
    • Update company event score weights
    • Get drivers coaching events
  • Event
    • Get company events
    • get an event
    • send an event
    • get status of an event
    • Request videos of an event
    • get uploaded videos of an event
    • get events summary of devices
    • get events summary of a device
    • get a company events by company ID
    • get status of an event by company ID
    • get snapshots of an event or alert
    • get snapshots of an event or alert by company ID
    • get a last event
    • get a last event of devices
    • get events log of a device
    • get dates of events
    • get events for charts and graphs
    • get events for charts and graphs by company ID
    • get an event by company ID
    • get events summary of a device by company ID
    • request videos of an event by company ID
    • get dates of an events by company ID
    • get a last event of company device
    • clear last event
    • get dates of events of a device
    • push custom event
    • delete an event
    • request videos of an alert
    • share an event
    • get an event by a permalink
    • get geotab events
    • get a last updated event of devices
    • download a blocked event
    • Get flagged company events
    • flag an event
    • unflag an event
    • generate snapshots
    • local geocoding service
    • update an event
    • get snapshot/location of event
    • Get events for a device
    • Request custom video from device
    • get snapshot on demand
    • get an event by a permalink hash
    • Set Event Label for Event
    • Restore event video from archive
    • Add users for notification of event restore from archive
    • Add event label
    • Add user feedback to event
    • Get event user feedback
    • Get event filters list for date range in company
  • External Service
    • Get an external service account
    • Pair RL device with external device
    • Get RL device data via external device unique serial number
    • external service login
    • get a device
  • Fleet Configuration
    • Get profiles of a company
    • Create new profile in a company
    • Get a company profile
    • get profile history
    • Update a company profile
  • Group
    • get company groups
    • add a group
    • remove a group
    • get devices of a group
    • add a device to a group
    • remove a device from a group
    • get users of a group
    • add a user to a group
    • remove a user from a group
    • get company groups by company ID
    • add a device to a group by company ID
    • get devices of a group by company ID
    • remove a device from a group by company ID
    • remove a group by company ID
    • add a group by company ID
    • add an user to a group by company ID
    • get users of a group by company ID
    • remove an user from a group by company ID
    • edit group
    • get groups with ID
    • get group of a company by group ID
  • Live streaming
    • start live streaming
    • stop live streaming
    • start multi-channel live streaming
    • stop multi-channel live streaming
  • Metadata
    • get metadata of a device
    • get metadata of devices
    • Get alerts and events of devices for company
    • get alerts for charts and graphs
    • get metadata of device(s) for last 24 hours
    • get alerts of a device
    • get alerts of a driver
  • Modem Administration
    • get list of available modems
    • upgrade modem firmware
    • upgrade modem firmware for group of devices
  • Report
    • get data usage report
    • Get custom report data
    • get data usage report by device id
    • get list of companies with data usage for date range
    • get data usage for active devices for specified companies
    • get companies with data usage for date range
    • get data usage report for devices in company
    • get data tracking report
    • get all events report
    • Get all events report for company
    • get vehicle activity report
    • get firmware report
    • Get event count summary report for company devices
    • get driver event breakdown report
    • get driver event performance report
    • Update custom report
    • get custom reports by user email
    • get custom report by report id
    • put subscribe to a report
    • get report subscriptions
    • get list of standard reports
    • get speeding summary report
    • get speeding breakdown report
    • get idling summary report
    • get idling breakdown report
    • Create custom report for user
  • Partner Portal
    • get full list of devices per partner
    • get full list of companies per partner
    • get user custom presets
    • create custom presets
    • update custom preset
    • delete custom preset by name
  • Releases
    • get last release
    • view a release
  • Remote Device Management
    • get config values from device
    • verify of device token
    • get current firmware of devices
    • SD-card formatting
    • get config file for device
  • Statistics
    • get statistics feature usage
  • User
    • get company users
    • Get a user
    • update a user
    • remove a user
    • Get own info
    • create a user
    • get company users by company ID
    • get user settings
    • set user settings
    • Get application notifications
    • remove the notification
    • mark notifications as viewed
    • verify password
    • SD card reformat reminder
    • Update notification by email
    • assign user to company
    • get permissions by a user_id
    • Get event / sms notification settings
  • Webhooks
    • get push notifications
    • set push notifications
    • remove push notifications
  1. Company

create a company

PUT
/partners/companies/{new_company_name}
company
Create a new company.
Only Partners with correct permission can create companies. If you believe you will require permissions for this action, please contact RoscoLive support.
Roles with endpoint access
RolePermission
Partner
Partner View
Custom Partner
Fleet Manager
Group Manager
User
Custom User

Request

Path Params
new_company_name
string 
required
Name of the company to be created
>= 1 characters<= 128 characters
Example:
Acme Trucks Inc
Match pattern:
^[A-Za-z0-9]+
Body Params multipart/form-data
company_city
string 
required
City
>= 1 characters
Example:
{% faker address.cityName %}
Match pattern:
^[A-Za-z]+
company_state
string 
required
State (full name or abbreviation)
>= 2 characters
Example:
{% faker address.stateAbbr %}
Match pattern:
^[A-Za-z]+
company_zipcode
string 
required
ZIP/Postal code
<= 8 characters
Example:
{% faker address.zipCode %}
Match pattern:
^[A-Za-z0-9]+
company_address
string 
required
Address
>= 1 characters
Example:
{% faker address.streetAddress %}
Match pattern:
^[A-Za-z0-9]+
company_country
string 
required
Country (full name or abbreviation)
>= 2 characters
Example:
{% faker address.country %}
Match pattern:
^[A-Za-z]+
phone_number
string 
optional
Phone number - no formatting necessary
>= 9 characters<= 10 characters
Example:
5558675309
Match pattern:
^[0-9]+
live_active
boolean 
required
Live streaming enable
Default:
false
billing_date
integer 
required
Date of each month billing cycle will begin.
>= 1<= 31
cutoff_when_overage
boolean 
deprecated
storage_active
boolean 
required
Cloud storage enable
trace_active
boolean 
required
GPS trace storage enable
industry_type
enum<string> 
required
Industry the company mainly operates in
Allowed values:
ftl_ltl_couriermedical_healthschool_educationconstructionwaste_managementmass_transitagriculturalgovernmentindustrialother
trial_status
boolean 
optional
Flag for if company is trial company
trial_date
string 
optional
If trial_status flag is true, set a date for end trial in format YYYYMMDDhhmmdd
>= 14 characters<= 14 characters
Example:
20240706000000
Match pattern:
^[0-9]+
metadata
string 
optional
An optional object that custom key/value pairs can be added to hold metadata about the company.
When passing this object, if the company does not already have a metadata object, one will be added, else it will be updated with the data passed in.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://fleet.roscolive.com/api/v1.0/partners/companies/' \
--form 'company_city="{% faker address.cityName %}"' \
--form 'company_state="{% faker address.stateAbbr %}"' \
--form 'company_zipcode="{% faker address.zipCode %}"' \
--form 'company_address="{% faker address.streetAddress %}"' \
--form 'company_country="{% faker address.country %}"' \
--form 'phone_number="5558675309"' \
--form 'live_active=""' \
--form 'billing_date=""' \
--form 'cutoff_when_overage=""' \
--form 'storage_active=""' \
--form 'trace_active=""' \
--form 'industry_type=""' \
--form 'trial_status=""' \
--form 'trial_date=""' \
--form 'metadata=""'

Responses

🟢201Create company success
application/json
Body
meta
object 
required
Request metadata object
code
integer 
required
response
object 
required
Contains response data
company
object (Company) 
required
result
string 
required
"OK" if request successful, otherwise "Failed"
Example
{
    "meta": {
        "code": 201
    },
    "response": {
        "company": {
            "active": true,
            "advanced_profile_settings": true,
            "allow_create_company": true,
            "allow_edit_company": true,
            "asset_deletion_protection": false,
            "billing_date": 1,
            "company_address": "82103 Strosin Villages",
            "company_city": "Strosinmouth",
            "company_country": "Cape Verde",
            "company_key": "A1B2C3D4E5",
            "company_metadata": {
                "data": true
            },
            "company_name": "Dibbert, Kertzmann and Lakin",
            "company_phone_number": "(873) 915-1295 x30529",
            "company_state": "New York",
            "company_type": "CUSTOMER",
            "company_zipcode": "58052",
            "created_by": null,
            "created_by_company_id": 36229,
            "custom_apn": "http://joint-miracle.net",
            "driver_recognition": "manual",
            "event_expiration": "365",
            "geotab_database": "rosco",
            "geotab_email": "Deron.Miller@gmail.com",
            "geotab_path": "https://frivolous-immigration.name",
            "hash": "in",
            "id": 2,
            "industry_type": "Waste Management",
            "live_active": true,
            "owner_company": "Rosco Vision Partner",
            "partner_company": "Rosco Vision Partner",
            "reformat_reminder": 6,
            "status": "used",
            "storage_active": true,
            "token": "12345678",
            "trace_active": true,
            "trial_status": true,
            "trial_subscribers": "example1@email.com,example2@email.com",
            "using_rosco_sim": true
        }
    },
    "result": "OK"
}
🟠403Company already exists
🟠401Login Required
Modified at 2024-11-26 23:28:22
Previous
get camera health error
Next
get partner settings
Built with