Skip to content

External Excavator State

Full CRUD + bulk import for external excavator state data. This is the primary machine integration endpoint.

MethodRouteDescription
POSTapi/external-excavator-stateRegister a single state record
POSTapi/external-excavator-state/importBulk import state records
GETapi/external-excavator-state/latest-timestamp/{companyId}/{projectId}Get sync checkpoint
POSTapi/external-excavator-state/aggregated-data-per-stateQuery aggregated utilization

The Mass Transport API base URL is provided by your Ditio contact during onboarding; routes below are relative to it.

Requires a Bearer token with the masstransportapiv1 scope. See Authentication.

POST /api/external-excavator-state
{
"companyId": "string",
"projectId": "string",
"machineId": "string",
"state": "string",
"startTime": "ISO 8601 datetime",
"endTime": "ISO 8601 datetime"
}

201 Created on success.

POST /api/external-excavator-state/import

Array of state records (same schema as single registration).

201 Created on success.

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.

POST /api/external-excavator-state/aggregated-data-per-state

Query machine utilization statistics grouped by state type.