RoscoLive API v1.0(v2.35.0)
  1. Company
RoscoLive API v1.0(v2.35.0)
  • Event
    • Request custom video from device
      PUT
  • Company
    • create a company
      PUT
    • get a company by ID
      GET
    • update a company by ID
      POST
    • update company
      POST
    • get a company
      GET
    • get companies
      GET
    • get own partner company
      GET
  • Device
    • Geotab
      • Pair cameras to GO devices by CSV file
    • Play in-cab audible alert sound for device
      POST
    • Get a device
      GET
  • External Service
    • Get an external service account
      GET
    • Pair RL device with external device
      PUT
    • Get RL device data via external device unique serial number
      GET
  • Fleet Configuration
    • Create new profile in a company
      POST
    • Update a company profile
      POST
    • Get a company profile
      GET
    • Get profiles of a company
      GET
    • get profile history
      GET
  1. Company

update a company by ID

POST
https://fleet.roscolive.com/api/v1.0/partners/companies/{company_id}
company
Update a company's information. All fields are optional and only passed in fields will be updated. NOTE: Only Partner companies with correct permission can update companies.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://fleet.roscolive.com/api/v1.0/partners/companies/123456?byid=company' \
--form 'company_city="{{company_city}}"' \
--form 'company_state="{{company_state}}"' \
--form 'company_zipcode="{{company_zipcode}}"' \
--form 'company_address="{{company_address}}"' \
--form 'company_country="{{company_country}}"' \
--form 'company_phone_number="{{company_phone_number}}"' \
--form 'company_new_name="Company Name"'
Response Response Example
200 - 200
{
  "meta": {
    "code": 200
  },
  "response": {
    "company": {
      "active": true,
      "advanced_profile_settings": false,
      "asset_deletion_protection": false,
      "billing_date": 7,
      "company_address": "Flowers str, 2",
      "company_address2": "Forest ave, 12",
      "company_city": "Detroit2",
      "company_country": "USA2",
      "company_key": "4f593eb722",
      "company_name": "TransfoTech",
      "company_phone_number": "",
      "company_state": "Michigan2",
      "company_type": "CUSTOMER",
      "company_zipcode": "1121212",
      "created_by": 1,
      "created_by_company_id": 3,
      "custom_apn": "1234567",
      "data_limit": 3,
      "data_usage_threshold": 1024,
      "driver_recognition": "cardreader",
      "event_expiration": "180",
      "geotab_database": "",
      "geotab_email": "sasha.kyrylenko@gmail.com",
      "geotab_path": "",
      "hash": "ac6631660b966741a00cd20cd5014441",
      "id": 66,
      "live_active": true,
      "owner_company": "Rosco Vision Partner",
      "partner_company": "Rosco Vision Partner",
      "reformat_reminder": 0,
      "status": "used",
      "storage_active": true,
      "timezone": "US/Central",
      "token": "87443459",
      "trace_active": true,
      "trial_date": "Thu, 10 Oct 2019 12:01:20 GMT",
      "trial_status": true,
      "trial_subscribers": "end_user3@youpmail.com"
    }
  },
  "result": "OK"
}

Request

Path Params
company_id
integer 
required
Company ID for company to apply update
>= 0
Example:
123456
Query Params
byid
enum<string> 
required
Required param with value company
Allowed value:
company
Example:
company
Body Params multipart/form-data
company_city
string 
optional
City
>= 1 characters
Example:
{{company_city}}
Match pattern:
^[A-Za-z]+
company_state
string 
optional
State (abbreviation or full)
>= 2 characters
Example:
{{company_state}}
Match pattern:
^[A-Za-z]+
company_zipcode
string 
optional
ZIP/Postal code
<= 6 characters
Example:
{{company_zipcode}}
Match pattern:
^[A-Za-z0-9]+
company_address
string 
optional
Address
Example:
{{company_address}}
Match pattern:
^[A-Za-z0-9]+
company_country
string 
optional
Country (abbreviation or full)
>= 2 characters
Example:
{{company_country}}
Match pattern:
^[A-Za-z0-9]+
company_phone_number
string 
optional
Phone number (no phone format)
>= 10 characters<= 11 characters
Example:
{{company_phone_number}}
Match pattern:
^[0-9]+
company_new_name
string 
optional
Name update for company
>= 1 characters
Example:
{{company_name}}
Match pattern:
^[A-Za-z]+

Responses

🟢200200
application/json
Body
meta
object 
required
Request metadata object
code
integer 
required
HTTP status code returned by server
response
object 
required
Contains response data
company
object (Company) 
required
Company object
result
string 
required
"OK" if request successful, otherwise "Failed"
🟠401Login Required
Previous
get a company by ID
Next
update company
Built with