update a company by ID
POST
https://fleet.roscolive.com/api/v1.0/partners/companies/{company_id}
company
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
>= 0
Example:
123456
Query Params
byid
enum<string>
required
company
Allowed value:
company
Example:
company
Body Params multipart/form-data
company_city
string
optional
>= 1 characters
Example:
{{company_city}}
Match pattern:
^[A-Za-z]+
company_state
string
optional
>= 2 characters
Example:
{{company_state}}
Match pattern:
^[A-Za-z]+
company_zipcode
string
optional
<= 6 characters
Example:
{{company_zipcode}}
Match pattern:
^[A-Za-z0-9]+
company_address
string
optional
Example:
{{company_address}}
Match pattern:
^[A-Za-z0-9]+
company_country
string
optional
>= 2 characters
Example:
{{company_country}}
Match pattern:
^[A-Za-z0-9]+
company_phone_number
string
optional
>= 10 characters<= 11 characters
Example:
{{company_phone_number}}
Match pattern:
^[0-9]+
company_new_name
string
optional
>= 1 characters
Example:
{{company_name}}
Match pattern:
^[A-Za-z]+