Request custom video from device
PUT
https://fleet.roscolive.com/api/v1.0/events/custom_clips
eventcustom
start_ts
and end_ts
. Requested event will upload a video of the requested duration along with a snapshot which is taken from the "center" of the request.event_id
in the response.User Role Permissions
User Role | Allowed |
---|---|
Partner | |
Partner View | |
Custom Partner | Requires permissions to be enabled |
Fleet Manager | |
Group Manager | |
User | |
Custom User | Requires permissions to be enabled |
Considerations
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://fleet.roscolive.com/api/v1.0/events/custom_clips' \
--form 'device_id="1234567890"' \
--form 'start_ts="20240112132100"' \
--form 'end_ts="20240112132130"' \
--form 'custom_event_type=""' \
--form 'data="{ \"foo\": \"bar\" }"' \
--form 'event_display_type="My New Event"'
Response Response Example
200 - Success
{
"meta": {
"code": 200
},
"response": {
"request_id": 1908766,
"warning": "request exists"
},
"result": "OK"
}
Request
Body Params multipart/form-data
device_id
integer
required
>= 0
Example:
1234567890
start_ts
string <date-time>
required
Start date/time for the desired time period.
For duration
d = end_ts
- start_ts
snapshot_only=false
: 5 seconds <= d <= 1 hour
snapshot_only=true
: 5 minutes <= d <= 1 hour
>= 14 characters<= 14 characters
Example:
20240112132100
end_ts
string <date-time>
required
>= 14 characters<= 14 characters
Example:
20240112132130
custom_event_type
string
optional
data
string <json>
optional
Example:
{ "foo": "bar" }
event_display_type
string
optional
Default:
Custom Event
Example:
My New Event