update an event
POST
/events/{event_id}Adds or updates the driver and impact score for the existing event.
Request
Path Params
event_id
string
required
Body Params multipart/form-data
driver_id
integer <int32>
required
ID of driver in RoscoLive (NOT card_id)
>= 4<= 5
Example:
1234
impact_score
boolean
optional
Impact score of that specific event
Default:
true
Request samples
Responses
Success(200)
Record not found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
Request metadata object
code
integer
required
HTTP status code returned by server
response
object
required
Contains response data
driver_card_id
string
required
Card ID associated with this driver.
driver_email
string
required
Driver's email address
driver_id
integer
required
Unique ID assigned to driver record in RoscoLive
driver_name
string
required
Driver's full name
impact_score
boolean
required
Flag for if true
this event will impact the driver's score
result
string
required
"OK" if request successful, otherwise "Fail"
Example
{
"meta": {
"code": 200
},
"response": {
"driver_card_id": "763460F6",
"driver_email": "Iliana49@hotmail.com",
"driver_id": 2167,
"driver_name": "Alison Graham",
"impact_score": true
},
"result": "OK"
}
Last modified: 6 months ago