Skip to main content
POST
Create Trip Event

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tripId
string<uuid>
required

Trip identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json

Create trip event payload

type
enum<string>
required
Available options:
DRIVER_CHANGED
metadata
object
required
description
string | null

Event description

Example:

"Departure delayed by 15 minutes due to traffic"

tripStopId
string<uuid> | null

Trip stop identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3c"

Response

Created

tripEventId
string<uuid>
required

Trip event identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

tripId
string<uuid>
required

Trip identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3b"

type
enum<string>
required

Trip event type

Available options:
DRIVER_CHANGED,
VEHICLE_CHANGED,
DEPARTURE_DELAYED,
ARRIVAL_DELAYED,
BOARDING_STARTED,
BOARDING_COMPLETED,
INCIDENT
Example:

"DEPARTURE_DELAYED"

createdAt
string<date-time>
required

Created at

Example:

"2026-01-01T00:00:00.000Z"

updatedAt
string<date-time>
required

Updated at

Example:

"2026-01-01T00:00:00.000Z"

tripStopId
string<uuid> | null

Trip stop identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3c"

description
string | null

Event description

Example:

"Departure delayed by 15 minutes due to traffic"

metadata
object | null

Event metadata

createdBy
string<uuid> | null

Created by

Example:

null

updatedBy
string<uuid> | null

Updated by

Example:

null