In This Topic
Resource Path: /sites/{company-id}/api/userSession/post
Uri: https://secure.ontime360.com/sites/{company-id}/api/userSession/post
Description
Creates a new UserSession record, or updates an existing UserSession record.
Request
The request body is of type UserSession.
A comprehensive UserSession object containing the new session information.
Overview
 |
UserSession
Represents a comprehensive UserSession record within the OnTime API.
 |
Vehicle : string
The unique Guid identifier referencing the Vehicle operated by the User for the duration of this UserSession.
|
 |
ID : string
The unique identifier for this UserSession record.
|
 |
UserID : string
The unique Guid identifier referencing the relative User record assigned to this UserSession.
|
 |
LogInType : string
Determines if the User is logged-in as a dispatcher or driver for the duration of this UserSession. Available Values: [Undefined, Dispatcher, Driver]
|
 |
LogInTime : string
The date and time that the User had logged-out.
|
 |
LogOutTime : string
The date and time that the User had logged-out.
|
 |
StartMileage : integer
The initial odometer reading of the Vehicle when the User logged-in as a driver.
|
 |
EndMileage : integer
The final odometer reading of the Vehicle when the User logged-out as a driver.
| |
201 Response
The response body is of type object.
Returns the created or updated UserSession object.
Fault Responses
Fault | Description |
400 | Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information. |
401 | Authorization key is invalid or no longer exists. |
403 | Authorization key does not have permission to perform this action, or does not have permission to access the requested data. See response body for more information. |
See Also