POST /drivers/{id}/confirmNotDriving
Notes that the given driver has confirmed he's not driving while using the application.
Roles that can access this endpoint are Drivers.
Parameters
name |
description |
type |
default |
type |
id |
the driver's ID |
path
|
|
String
|
date |
the timestamp of when the driver confirmed he's not driving |
query
|
|
Date
|
latitude |
the latitude of where the driver confirmed he's not driving |
query
|
|
Double
|
longitude |
the longitude of where the driver confirmed he's not driving |
query
|
|
Double
|
speed |
the speed in mph of the driver when he confirmed he's not driving |
query
|
|
BigDecimal
|
course |
the bearing in degrees with O indicating true north of the driver when he confirmed he's not driving |
query
|
|
BigDecimal
|
Result
int
of type:
text/plain
the number of minutes the app can wait before prompting the user again (currently hardcoded at 10)
Try It Out
Request