GET /driver_assignments?from=<starttime>&to=<endtime> |
This service retrieves a list of driver assignments for the time period specified by the URL. Including the from parameter is required, but the to parameter is optional.
No request body is used for this service. Arguments are included as part of the request URL.
Optional parameters
Name | Value | Description |
---|---|---|
updated_since | ISO 8601 timestamp | Finds items by modification time. This retrieves only those objects with one or more timestamp members, one of which falls after the specified timestamp. |
list_all | false (default), true | (only usable with updated_since) If set to true, list_all retrieves a comprehensive list: ProductName returns a larger set of results that includes the IDs (or primary key values) of every object that falls within the selection range and the JSON for the updated objects. Setting list_all to true can be used, for example, if you need to refresh a local cache. |
On success, the response body contains a JSON array of driverAssignment objects:
Member | Type | Purpose |
---|---|---|
id | string | The unique integer identifier for this assignment record. |
unitId | string | The unique integer identifier of the vehicle for which this assignment occurred. |
from | string | The ISO 8601 timestamp of the assignment start time. |
to | string | The ISO 8601 timestamp of the assignment end time. |