Index Fleet Task Instant
GET/fleet-task-instant
Get the list of Fleet Task Instant
Description
A fleet task instant is a task that is assigned to a driver and vehicle to visit a list of planned locations.
Querying Fleet Task Instants
You can query fleet task instants using the following parameters:
Available Filter
Field Name | Value Type |
---|---|
id | string |
vehicle.id | number |
driver_user.id | number |
status.name | string |
expected_started_on | date |
actual_started_on | date |
actual_arrival_on | date |
created_on | date |
Available Sort
Field Name |
---|
number |
vehicle.license_plate |
vehicle.type_name |
driver_user.name |
driver_user.phone |
status |
expected_started_on |
actual_started_on |
estimated_arrival_on |
actual_arrival_on |
created_on |
updated_on |
Available Search
Field Name |
---|
number |
vehicle_license_plate |
vehicle_type_name |
driver_user_name |
driver_user_phone |
contact_phone_number |
Example Filter
Value Type | Example |
---|---|
string | FO-0001, "dbffb68c-f5ab-4ec4-83fd-91ca6bc1d1df" |
date | 2010-02-02T20:23:05+07:00 |
float | 90.345 |
Operator Type | Description |
---|---|
gte | Greater Than or Equal |
gt | Greater Than |
lte | Lower Than or Equal |
lt | Lower Than |
eq | Equal |
in | In |
Filter with Format
{Field Name} {Operator} {Value}
Example :
- To Filter single value, with quote
status.name eq 'STARTED'
- To Filter with multiplies values, values is separated by space ('value1' 'value 2' 'value 3')
status.name in ('STARTED' 'ENDED')
Example Search
When using the query param Search, it only searches the Available Search Field Name
Example Sort
Sort Format with Value is asc | desc.
{Field Name} {Value}
Example :
- To sorting by the latest order.
created_on asc
- To sorting by the oldest order.
created_on desc
Request
Responses
- 200
- 400
- 401
- 403
- 404
OK
Bad Request
Unauthorized
Forbidden
Not Found