Skip to main content
GET
List WrenchMode events (work logs)

Auktoriseringar

X-API-KEY
string
header
obligatorisk
OW-KEY
string
header
obligatorisk

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Frågeparametrar

scheduleId
integer<int64>

Filter to one WrenchMode schedule. When present, pagination is DISABLED and the schedule's full event timeline is returned.

workOrderId
integer<int64>

Filter by work order id.

serviceCallId
integer<int64>

Filter by service call id.

locationId
integer<int64>

Filter by location id.

eventTypes
string

Comma-separated list of event types. Valid values: began_trip, trip_paused, trip_resumed, arrived, trip_cancelled, drive_note, started_work, ended_work, location_started, location_paused, location_resumed, location_ended. Unknown values are rejected with 400.

supplierEmails
string

Comma-separated list of technician emails, matched case-insensitively. (Only the plural key is exposed.)

fromDate
string

Window start, yyyy-MM-dd. Malformed dates are rejected with 400.

toDate
string

Window end, yyyy-MM-dd. Malformed dates are rejected with 400.

offset
integer

Number of records to skip.

Obligatoriskt intervall: x >= 0
limit
integer

Page size. Default 10, maximum 25.

sort_by
string

Column name to sort by.

order
enum<string>

Sort direction.

Tillgängliga alternativ:
asc,
desc

Svar

Successful response

type
string
obligatorisk

Entity type label, e.g. "WrenchModeEvent". Endpoints that derive it via Scala reflection (most generic list/get endpoints) may return the fully qualified server class name instead (e.g. "models.workorder.WorkOrder"); treat this field as informational.

data
object[]
obligatorisk
count
integer<int64>
obligatorisk

Total number of matching records (across all pages)

status
enum<string>
obligatorisk

"ok" on success

Tillgängliga alternativ:
ok