API: Update Station

Request

Update a specific station by ID:

PUT /stations/{id}

Request Body:


{
  "route_id": 102,
  "district_id": 6,
  "status": "inactive",
  "updated_by": 2
}
                

Sample Response:


{
  "status": "success",
  "message": "Station updated successfully",
  "data": {
    "id": 3,
    "route_id": 102,
    "district_id": 6,
    "status": "inactive",
    "updated_by": 2,
    "created_at": "2025-07-08T12:00:00",
    "updated_at": "2025-07-08T14:00:00",
    "deleted_at": null
  }
}