External Excavator State
Full CRUD + bulk import for external excavator state data. This is the primary machine integration endpoint.
Endpoints
Section titled “Endpoints”| Method | Route | Description |
|---|---|---|
POST | api/external-excavator-state | Register a single state record |
POST | api/external-excavator-state/import | Bulk import state records |
GET | api/external-excavator-state/latest-timestamp/{companyId}/{projectId} | Get sync checkpoint |
POST | api/external-excavator-state/aggregated-data-per-state | Query aggregated utilization |
Base URL
Section titled “Base URL”The Mass Transport API base URL is provided by your Ditio contact during onboarding; routes below are relative to it.
Authentication
Section titled “Authentication”Requires a Bearer token with the masstransportapiv1 scope. See
Authentication.
Register Single State
Section titled “Register Single State”POST /api/external-excavator-stateRequest Body
Section titled “Request Body”{ "companyId": "string", "projectId": "string", "machineId": "string", "state": "string", "startTime": "ISO 8601 datetime", "endTime": "ISO 8601 datetime"}Response
Section titled “Response”201 Created on success.
Bulk Import
Section titled “Bulk Import”POST /api/external-excavator-state/importRequest Body
Section titled “Request Body”Array of state records (same schema as single registration).
Response
Section titled “Response”201 Created on success.
Latest Timestamp (Sync Checkpoint)
Section titled “Latest Timestamp (Sync Checkpoint)”GET /api/external-excavator-state/latest-timestamp/{companyId}/{projectId}Returns the timestamp of the most recent record received for the given company and project. Use this to avoid sending duplicate data.
Aggregated Data Per State
Section titled “Aggregated Data Per State”POST /api/external-excavator-state/aggregated-data-per-stateQuery machine utilization statistics grouped by state type.
Related
Section titled “Related”- Machine Integration guide — Step-by-step walkthrough
- External Weight Measures — Weight data integration