Creates a maintenance schedule for the path asset ID in the authenticated tenant. The request body is validated with createMaintenanceScheduleSchema; schedule_type and frequency are required, while start_date is optional in the current shared date schema and the service falls back to now when absent. The service inserts asset_id from the path, tenant from context, timestamps, and a calculated next_maintenance value. It does not verify asset existence, does not set created_by, and publishes no event. In the current v1 asset route wiring, req.context may be absent because no route-level API-key auth wrapper sets it, causing a 500 before insert.
Content type: application/json · schema AssetMaintenanceScheduleCreateRequest
preventiveinspectioncalibrationreplacementdailyweeklymonthlyquarterlyyearlycustomSuccess response 201 · schema AssetMaintenanceScheduleResponse
true