Depots API

Complete reference for the Depots API endpoints, including depot management, vehicle assignments, and capacity tracking.

Endpoints

Available API endpoints for depot management

MethodEndpointDescription
GET
/api/depots/List all depots
POST
/api/depots/Create a new depot
GET
/api/depots/{id}/Get depot details
POST
/api/depots/{id}/assign_vehicle/Assign vehicle to depot

Capacity Management

Monitor and manage depot capacity and vehicle assignments.

  • Total capacity tracking
  • Current vehicle count
  • Space availability checks
  • Capacity alerts

Charging Stations

Manage charging stations and monitor their availability.

  • Charging station status
  • Available stations tracking
  • Charging queue management
  • Station maintenance status

Response Format

Example depot response object

{
  "id": 1,
  "name": "Downtown Depot",
  "latitude": 34.0522,
  "longitude": -118.2437,
  "capacity": 50,
  "charging_stations": 10,
  "vehicle_count": 42,
  "available_charging_slots": 4
}