עיון בתיעוד

תיעוד ה-API זמין באנגלית בלבד.

Fleet

Manage your trucks and their costs, and read vehicles from a connected Samsara account.

Paths are relative to https://api.rushhourapp.com/api/v1. See the API reference overview for how to read each entry.

Trucks#

Method Path Summary
GET /Trucks Search trucks.
POST /Trucks Add truck.
GET /Trucks/{id} Get truck.
PUT /Trucks/{id} Update truck.
DELETE /Trucks/{id} Delete truck.
GET /Trucks/ActiveCountByMonth Get active trucks count by month.
GET /Trucks/AllTrucksExpenses Get all trucks expenses.
GET /Trucks/TrucksWithExpenses Search trucks with expenses.
GET /Trucks/TrucksWithVehicles Search trucks with vehicles.
POST /Trucks/UpdateExcludeExpenses Update exclude expenses.

GET /Trucks#

Search trucks.

Also accepts the shared list parameters.

Response: envelope; data is TruckPagedList.

POST /Trucks#

Add truck.

Required access: the Fleet tab - Create/Edit/delete fleet permission.

Request body: Truck (JSON).

Response: envelope; data is Truck.

GET /Trucks/{id}#

Get truck.

Parameters

Name In Type Required Description
id path integer (int32) Yes

Response: envelope; data is Truck.

PUT /Trucks/{id}#

Update truck.

Required access: the Fleet tab - Create/Edit/delete fleet permission.

Parameters

Name In Type Required Description
id path integer (int32) Yes

Request body: Truck (JSON).

Response: envelope; data is Truck.

DELETE /Trucks/{id}#

Delete truck.

Required access: the Fleet tab - Create/Edit/delete fleet permission.

Parameters

Name In Type Required Description
id path integer (int32) Yes
removeExpenses query boolean No

Response: envelope; data is Truck.

GET /Trucks/ActiveCountByMonth#

Get active trucks count by month.

Required access: the Expenses tab - view existing data permission.

Parameters

Name In Type Required Description
date query string (date-time) No

Response: envelope; data is integer (int32).

GET /Trucks/AllTrucksExpenses#

Get all trucks expenses.

Required access: the Expenses tab - view existing data permission.

Parameters

Name In Type Required Description
date query string (date-time) No

Response: envelope; data has no documented shape.

GET /Trucks/TrucksWithExpenses#

Search trucks with expenses.

Required access: the Expenses tab - view existing data permission.

Also accepts the shared list parameters.

Response: envelope; data is TruckWithExpensesPagedList.

GET /Trucks/TrucksWithVehicles#

Search trucks with vehicles.

Required access: the Fleet tab - View fleets data permission.

Also accepts the shared list parameters.

Response: envelope; data is TruckWithVehiclePagedList.

POST /Trucks/UpdateExcludeExpenses#

Update exclude expenses.

Required access: the Expenses tab - create/edit/delete data permission.

Request body: UpdateExcludeExpensesRequest (JSON).

Response: envelope; data has no documented shape.

Truck expenses#

Method Path Summary
GET /TruckExpenses Search truck monthly expense.

GET /TruckExpenses#

Search truck monthly expense.

Required access: the Expenses tab - view existing data permission.

Also accepts the shared list parameters.

Response: envelope; data is TruckMonthlyExpensePagedList.

Samsara vehicles#

Method Path Summary
GET /Samsara/Fleet List the vehicles in the connected Samsara account.
GET /Samsara/FleetLocations Get the latest locations of the vehicles in the connected Samsara account.
PUT /Samsara/Vehicle Update a vehicle in the connected Samsara account.

GET /Samsara/Fleet#

List the vehicles in the connected Samsara account.

Required access: the Fleet tab - View fleets data permission.

Response: envelope; data is array of Vehicle.

GET /Samsara/FleetLocations#

Get the latest locations of the vehicles in the connected Samsara account.

Response: envelope; data is array of VehicleLocation.

PUT /Samsara/Vehicle#

Update a vehicle in the connected Samsara account.

Required access: the Fleet tab - View fleets data permission.

Request body: Vehicle (JSON).

Response: envelope; data is Vehicle.