Schedule Items
Ask
List schedule items
GET/v1/teams/{teamId}/days/{dayId}/schedule-itemsLists general schedule items, drives, flights, and trains for a day.
Required scopes: schedule_item:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
query.limit | integerMaximum number of records to return. Defaults to 50 and is capped at 200. |
query.cursor | stringOpaque cursor returned by page.nextCursor. Reuse the same credential, endpoint, and filters within 24 hours; restart pagination after expiration or credential changes. |
Response 200
data | object[] |
|---|---|
data[].dayId | string:uuidDay that owns the schedule item. |
data[].name | stringSchedule item display name. |
data[].type | "general" | "drive" | "flight" | "train"Schedule item variant. This must match details.kind. |
data[].status | "confirmed" | "unconfirmed"Confirmation state for the schedule item. |
data[].priority | "normal" | "high"Priority used to draw attention to important schedule items. |
data[].startTime | stringSchedule item start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must fall within the associated day's local 48-hour window. |
data[].endTime | stringSchedule item end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
data[].startTimezone | stringIANA timezone identifier for displaying the start time, such as America/Chicago. |
data[].endTimezone | stringIANA timezone identifier for displaying the end time, such as America/Chicago. |
data[].details | general | drive | flight | train |
data[].details.kind | "general" | "drive" | "flight" | "train"general: Discriminator for a general schedule item. drive: Discriminator for a drive schedule item. flight: Discriminator for a flight schedule item. train: Discriminator for a train schedule item. |
data[].details.location | objectOptional location for the general item. |
data[].details.location.label | stringHuman-readable place label. |
data[].details.location.address | stringStreet address or venue address. |
data[].details.location.placeId | stringGoogle Places ID when available. |
data[].details.location.latitude | numberLatitude in decimal degrees. |
data[].details.location.longitude | numberLongitude in decimal degrees. |
data[].details.location.timezone | stringTimezone for this location. |
data[].details.metadata | objectIntegration-specific metadata. |
data[].details.transportMode | "self_drive" | "car_service" | "runner" | "bus" | "taxi" | "rideshare" | "other"Ground transportation mode. Omitted values are treated as self_drive for compatibility. |
data[].details.includesFerry | booleanWhether this drive includes a ferry segment. |
data[].details.provider | stringTransportation provider or company. |
data[].details.confirmationNumber | stringdrive: Transportation booking or confirmation number. flight: Booking confirmation number. train: Train booking confirmation number. |
data[].details.driverName | stringDriver or runner name. |
data[].details.contact | stringDriver, runner, or provider contact details. |
data[].details.vehicleDescription | stringVehicle class, type, or identifying description. |
data[].details.pickupInstructions | stringPickup instructions for the traveler. |
data[].details.otherDescription | stringDescription of an Other transportation mode. |
data[].details.origin | objectDrive origin. |
data[].details.origin.label | stringHuman-readable place label. |
data[].details.origin.address | stringStreet address or venue address. |
data[].details.origin.placeId | stringGoogle Places ID when available. |
data[].details.origin.latitude | numberLatitude in decimal degrees. |
data[].details.origin.longitude | numberLongitude in decimal degrees. |
data[].details.origin.timezone | stringTimezone for this location. |
data[].details.stops | object[]Ordered intermediate stops between the drive origin and destination. Each stop ID must be unique. Array order is route order; send an empty array to clear all stops. |
data[].details.stops[].id | string:uuidStable identifier for this intermediate drive stop. Required when type is "drive". |
data[].details.stops[].location | objectIntermediate location visited by the drive. Required when type is "drive". |
data[].details.stops[].location.label | stringHuman-readable place label. |
data[].details.stops[].location.address | stringStreet address or venue address. |
data[].details.stops[].location.placeId | stringGoogle Places ID when available. |
data[].details.stops[].location.latitude | numberLatitude in decimal degrees. |
data[].details.stops[].location.longitude | numberLongitude in decimal degrees. |
data[].details.stops[].location.timezone | stringTimezone for this location. |
data[].details.destination | objectDrive destination. |
data[].details.destination.label | stringHuman-readable place label. |
data[].details.destination.address | stringStreet address or venue address. |
data[].details.destination.placeId | stringGoogle Places ID when available. |
data[].details.destination.latitude | numberLatitude in decimal degrees. |
data[].details.destination.longitude | numberLongitude in decimal degrees. |
data[].details.destination.timezone | stringTimezone for this location. |
data[].details.distanceKm | numberDrive distance in kilometers. |
data[].details.distanceMiles | numberDrive distance in miles. |
data[].details.durationMinutes | numberExpected drive duration in minutes. |
data[].details.vehicleCOMING SOON | stringVehicle assigned to the drive. Coming soon in the RoadOps app. |
data[].details.notes | stringDrive-specific notes. |
data[].details.originalTimes | objectRead-only original itinerary time range for the was display. |
data[].details.originalTimes.startTime | string:date-timeRoadOps start time before the first operational adjustment. Required when type is "flight". |
data[].details.originalTimes.endTime | string:date-timeRoadOps end time before the first operational adjustment. Required when type is "flight". |
data[].details.originalTimes.startTimezone | stringOriginal departure IANA timezone. Required when type is "flight". |
data[].details.originalTimes.endTimezone | stringOriginal arrival IANA timezone. Required when type is "flight". |
data[].details.flightType | "commercial" | "private"Whether the flight is commercial or private. Required when type is "flight". |
data[].details.tailNumber | stringPrivate aircraft tail number. |
data[].details.aircraftType | stringPrivate aircraft type. |
data[].details.passengerCapacity | integerPassenger capacity for the private aircraft. |
data[].details.passengersCOMING SOON | string:uuid[]RoadOps member IDs traveling on this flight. Coming soon in the RoadOps app. |
data[].details.connections | object[]Ordered flight legs or connections. Required when type is "flight". |
data[].details.connections[].tracking | objectRead-only operational status and airport resources; cannot be supplied in commands. |
data[].details.connections[].tracking.source | "cirium"System supplying the operational flight data. Required when type is "flight". |
data[].details.connections[].tracking.updatedAt | string:date-timeProvider observation time in UTC. Required when type is "flight". |
data[].details.connections[].tracking.status | "SCHEDULED" | "EN_ROUTE" | "LANDED" | "CANCELLED" | "DIVERTED" | "REDIRECTED" | "DATA_NEEDED" | "NOT_OPERATIONAL" | "UNKNOWN"System-reported flight operating status, separate from booking confirmation. Required when type is "flight". |
data[].details.connections[].tracking.scheduledDeparture | string:date-timePublished gate departure time in UTC; read-only. |
data[].details.connections[].tracking.scheduledArrival | string:date-timePublished gate arrival time in UTC; read-only. |
data[].details.connections[].tracking.estimatedDeparture | string:date-timeEstimated gate departure time in UTC; read-only. |
data[].details.connections[].tracking.estimatedArrival | string:date-timeEstimated gate arrival time in UTC; read-only. |
data[].details.connections[].tracking.actualDeparture | string:date-timeActual gate departure time in UTC; read-only. |
data[].details.connections[].tracking.actualArrival | string:date-timeActual gate arrival time in UTC; read-only. |
data[].details.connections[].tracking.scheduledRunwayDeparture | string:date-timeScheduled takeoff time in UTC; read-only. |
data[].details.connections[].tracking.scheduledRunwayArrival | string:date-timeScheduled landing time in UTC; read-only. |
data[].details.connections[].tracking.estimatedRunwayDeparture | string:date-timeEstimated takeoff time in UTC; read-only. |
data[].details.connections[].tracking.estimatedRunwayArrival | string:date-timeEstimated landing time in UTC; read-only. |
data[].details.connections[].tracking.actualRunwayDeparture | string:date-timeActual takeoff time in UTC; read-only. |
data[].details.connections[].tracking.actualRunwayArrival | string:date-timeActual landing time in UTC; read-only. |
data[].details.connections[].tracking.departureTerminal | string | nullCurrent departure terminal; read-only. |
data[].details.connections[].tracking.departureGate | string | nullCurrent departure gate; read-only. |
data[].details.connections[].tracking.arrivalTerminal | string | nullCurrent arrival terminal; read-only. |
data[].details.connections[].tracking.arrivalGate | string | nullCurrent arrival gate; read-only. |
data[].details.connections[].tracking.baggageClaim | string | nullCurrent baggage collection location; read-only. |
data[].details.connections[].tracking.equipment | string | nullCurrent aircraft equipment description; read-only. |
data[].details.connections[].tracking.tailNumber | string | nullReported aircraft registration; read-only. |
data[].details.connections[].tracking.divertedAirport | string | nullAirport code for the diversion destination; read-only. |
data[].details.connections[].tracking.departureDelayMinutes | integer | nullGate departure adjustment in minutes; negative means early. |
data[].details.connections[].tracking.arrivalDelayMinutes | integer | nullGate arrival adjustment in minutes; negative means early. |
data[].details.connections[].airline | stringAirline or operator name. |
data[].details.connections[].flightNumber | stringCommercial flight number or private leg identifier. |
data[].details.connections[].origin | objectOrigin airport. |
data[].details.connections[].origin.code | stringAirport or FBO airport code. |
data[].details.connections[].origin.name | stringAirport display name. |
data[].details.connections[].origin.address | stringAirport address. |
data[].details.connections[].origin.placeId | stringGoogle Places ID when available. |
data[].details.connections[].origin.terminal | stringTerminal label. |
data[].details.connections[].origin.gate | stringGate label. |
data[].details.connections[].origin.latitude | numberLatitude in decimal degrees. |
data[].details.connections[].origin.longitude | numberLongitude in decimal degrees. |
data[].details.connections[].destination | objectDestination airport. |
data[].details.connections[].destination.code | stringAirport or FBO airport code. |
data[].details.connections[].destination.name | stringAirport display name. |
data[].details.connections[].destination.address | stringAirport address. |
data[].details.connections[].destination.placeId | stringGoogle Places ID when available. |
data[].details.connections[].destination.terminal | stringTerminal label. |
data[].details.connections[].destination.gate | stringGate label. |
data[].details.connections[].destination.latitude | numberLatitude in decimal degrees. |
data[].details.connections[].destination.longitude | numberLongitude in decimal degrees. |
data[].details.connections[].originFbo | objectOrigin FBO for private flights. |
data[].details.connections[].originFbo.label | stringHuman-readable place label. |
data[].details.connections[].originFbo.address | stringStreet address or venue address. |
data[].details.connections[].originFbo.placeId | stringGoogle Places ID when available. |
data[].details.connections[].originFbo.latitude | numberLatitude in decimal degrees. |
data[].details.connections[].originFbo.longitude | numberLongitude in decimal degrees. |
data[].details.connections[].originFbo.timezone | stringTimezone for this location. |
data[].details.connections[].originFboPhone | stringOrigin FBO phone number. |
data[].details.connections[].destinationFbo | objectDestination FBO for private flights. |
data[].details.connections[].destinationFbo.label | stringHuman-readable place label. |
data[].details.connections[].destinationFbo.address | stringStreet address or venue address. |
data[].details.connections[].destinationFbo.placeId | stringGoogle Places ID when available. |
data[].details.connections[].destinationFbo.latitude | numberLatitude in decimal degrees. |
data[].details.connections[].destinationFbo.longitude | numberLongitude in decimal degrees. |
data[].details.connections[].destinationFbo.timezone | stringTimezone for this location. |
data[].details.connections[].destinationFboPhone | stringDestination FBO phone number. |
data[].details.connections[].departureTime | stringScheduled departure time. |
data[].details.connections[].departureTimezone | stringTimezone for the departure time. |
data[].details.connections[].arrivalTime | stringScheduled arrival time. |
data[].details.connections[].arrivalTimezone | stringTimezone for the arrival time. |
data[].details.legs | object[]Ordered train journey legs. Required when type is "train". |
data[].details.legs[].operator | stringRail operator name. |
data[].details.legs[].trainNumber | stringTrain or service number. |
data[].details.legs[].origin | objectOrigin train station. Required when type is "train". |
data[].details.legs[].origin.address | stringStreet address or venue address. |
data[].details.legs[].origin.placeId | stringGoogle Places ID when available. |
data[].details.legs[].origin.latitude | numberLatitude in decimal degrees. |
data[].details.legs[].origin.longitude | numberLongitude in decimal degrees. |
data[].details.legs[].origin.timezone | stringTimezone for this location. |
data[].details.legs[].origin.name | stringTrain station display name. Required when type is "train". |
data[].details.legs[].destination | objectDestination train station. Required when type is "train". |
data[].details.legs[].destination.address | stringStreet address or venue address. |
data[].details.legs[].destination.placeId | stringGoogle Places ID when available. |
data[].details.legs[].destination.latitude | numberLatitude in decimal degrees. |
data[].details.legs[].destination.longitude | numberLongitude in decimal degrees. |
data[].details.legs[].destination.timezone | stringTimezone for this location. |
data[].details.legs[].destination.name | stringTrain station display name. Required when type is "train". |
data[].details.legs[].originPlatform | stringDeparture platform or track. |
data[].details.legs[].destinationPlatform | stringArrival platform or track. |
data[].details.legs[].departureTime | stringScheduled train departure time. Required when type is "train". |
data[].details.legs[].departureTimezone | stringTimezone for the train departure time. Required when type is "train". |
data[].details.legs[].arrivalTime | stringScheduled train arrival time. Required when type is "train". |
data[].details.legs[].arrivalTimezone | stringTimezone for the train arrival time. Required when type is "train". |
data[].notes | stringOptional schedule item notes. |
data[].color | stringHex color reference for the schedule item label, formatted as a leading # followed by six hexadecimal characters. Use this to color-code the item consistently in calendars, timelines, and schedule views. |
data[].sourceMetadata | objectIntegration-specific source metadata. |
data[].showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
data[].reminder | objectOptional team-wide push reminder before the item starts. |
data[].reminder.amount | numberPositive reminder offset, including fractional values. |
data[].reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
data[].reminder.unit | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
data[].visibility | objectOptional visibility rules. |
data[].visibility.groupIds | string:uuid[] |
data[].visibility.userIds | string:uuid[] |
data[].id | string:uuidSchedule item identifier. |
data[].orgId | string:uuidTeam identifier. |
data[].isDeleted | booleanSoft-delete flag. |
data[].version | integerCurrent schedule item aggregate version. |
data[].cursor | integerLatest cursor projected into this schedule item record. |
page | object |
page.limit | integerMaximum number of records returned in this page. |
page.nextCursor | string | nullOpaque cursor to pass as the next request's cursor query parameter with the same credential, endpoint, and filters within 24 hours, or null when there are no more results. Restart pagination after expiration or credential changes. |
meta | object |
meta.cursor | number | nullHighest record cursor represented by this response. |
Create a general schedule item
POST/v1/teams/{teamId}/days/{dayId}/schedule-itemsAccepts a command to create a general schedule item. Use `type: "general"` with `details.kind: "general"`.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
dayIdrequired | string:uuidDay that owns the schedule item. |
|---|---|
namerequired | stringSchedule item display name. |
typerequired | "general"General schedule item type. |
statusrequired | "confirmed" | "unconfirmed"Confirmation state for the schedule item. |
priorityrequired | "normal" | "high"Priority used to draw attention to important schedule items. |
startTimerequired | stringSchedule item start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must fall within the associated day's local 48-hour window. |
endTimerequired | stringSchedule item end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
startTimezonerequired | stringIANA timezone identifier for displaying the start time, such as America/Chicago. |
endTimezonerequired | stringIANA timezone identifier for displaying the end time, such as America/Chicago. |
detailsrequired | object |
details.kindrequired | "general"Discriminator for a general schedule item. |
details.location | objectOptional location for the general item. |
details.location.label | stringHuman-readable place label. |
details.location.address | stringStreet address or venue address. |
details.location.placeId | stringGoogle Places ID when available. |
details.location.latitude | numberLatitude in decimal degrees. |
details.location.longitude | numberLongitude in decimal degrees. |
details.location.timezone | stringTimezone for this location. |
details.metadata | objectIntegration-specific metadata. |
notes | stringOptional schedule item notes. |
color | stringHex color reference for the schedule item label, formatted as a leading # followed by six hexadecimal characters. Use this to color-code the item consistently in calendars, timelines, and schedule views. |
sourceMetadata | objectIntegration-specific source metadata. |
showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
reminder | objectOptional team-wide push reminder before the item starts. |
reminder.amountrequired | numberPositive reminder offset, including fractional values. |
reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
reminder.unitrequired | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
visibility | objectOptional visibility rules. |
visibility.groupIds | string:uuid[] |
visibility.userIds | string:uuid[] |
id | string:uuidOptional caller-supplied schedule item ID. RoadOps generates one when omitted. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Create a drive schedule item
POST/v1/teams/{teamId}/days/{dayId}/schedule-itemsAccepts a command to create a drive schedule item. Use `type: "drive"` with `details.kind: "drive"`. The optional `details.stops` array is the ordered route between origin and destination; each stop has a stable UUID and RoadOps location.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
dayIdrequired | string:uuidDay that owns the schedule item. |
|---|---|
namerequired | stringSchedule item display name. |
typerequired | "drive"Drive schedule item type. |
statusrequired | "confirmed" | "unconfirmed"Confirmation state for the schedule item. |
priorityrequired | "normal" | "high"Priority used to draw attention to important schedule items. |
startTimerequired | stringSchedule item start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must fall within the associated day's local 48-hour window. |
endTimerequired | stringSchedule item end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
startTimezonerequired | stringIANA timezone identifier for displaying the start time, such as America/Chicago. |
endTimezonerequired | stringIANA timezone identifier for displaying the end time, such as America/Chicago. |
detailsrequired | object |
details.kindrequired | "drive"Discriminator for a drive schedule item. |
details.transportMode | "self_drive" | "car_service" | "runner" | "bus" | "taxi" | "rideshare" | "other"Ground transportation mode. Omitted values are treated as self_drive for compatibility. |
details.includesFerry | booleanWhether this drive includes a ferry segment. |
details.provider | stringTransportation provider or company. |
details.confirmationNumber | stringTransportation booking or confirmation number. |
details.driverName | stringDriver or runner name. |
details.contact | stringDriver, runner, or provider contact details. |
details.vehicleDescription | stringVehicle class, type, or identifying description. |
details.pickupInstructions | stringPickup instructions for the traveler. |
details.otherDescription | stringDescription of an Other transportation mode. |
details.origin | objectDrive origin. |
details.origin.label | stringHuman-readable place label. |
details.origin.address | stringStreet address or venue address. |
details.origin.placeId | stringGoogle Places ID when available. |
details.origin.latitude | numberLatitude in decimal degrees. |
details.origin.longitude | numberLongitude in decimal degrees. |
details.origin.timezone | stringTimezone for this location. |
details.stops | object[]Ordered intermediate stops between the drive origin and destination. Each stop ID must be unique. Array order is route order; send an empty array to clear all stops. |
details.stops[].idrequired | string:uuidStable identifier for this intermediate drive stop. |
details.stops[].locationrequired | objectIntermediate location visited by the drive. |
details.stops[].location.label | stringHuman-readable place label. |
details.stops[].location.address | stringStreet address or venue address. |
details.stops[].location.placeId | stringGoogle Places ID when available. |
details.stops[].location.latitude | numberLatitude in decimal degrees. |
details.stops[].location.longitude | numberLongitude in decimal degrees. |
details.stops[].location.timezone | stringTimezone for this location. |
details.destination | objectDrive destination. |
details.destination.label | stringHuman-readable place label. |
details.destination.address | stringStreet address or venue address. |
details.destination.placeId | stringGoogle Places ID when available. |
details.destination.latitude | numberLatitude in decimal degrees. |
details.destination.longitude | numberLongitude in decimal degrees. |
details.destination.timezone | stringTimezone for this location. |
details.distanceKm | numberDrive distance in kilometers. |
details.distanceMiles | numberDrive distance in miles. |
details.durationMinutes | numberExpected drive duration in minutes. |
details.vehicleCOMING SOON | stringVehicle assigned to the drive. Coming soon in the RoadOps app. |
details.notes | stringDrive-specific notes. |
notes | stringOptional schedule item notes. |
color | stringHex color reference for the schedule item label, formatted as a leading # followed by six hexadecimal characters. Use this to color-code the item consistently in calendars, timelines, and schedule views. |
sourceMetadata | objectIntegration-specific source metadata. |
showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
reminder | objectOptional team-wide push reminder before the item starts. |
reminder.amountrequired | numberPositive reminder offset, including fractional values. |
reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
reminder.unitrequired | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
visibility | objectOptional visibility rules. |
visibility.groupIds | string:uuid[] |
visibility.userIds | string:uuid[] |
id | string:uuidOptional caller-supplied schedule item ID. RoadOps generates one when omitted. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Create a flight schedule item
POST/v1/teams/{teamId}/days/{dayId}/schedule-itemsAccepts a command to create a flight schedule item. Use `type: "flight"` with `details.kind: "flight"` and flight-specific passenger, confirmation, aircraft, and connection fields.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
dayIdrequired | string:uuidDay that owns the schedule item. |
|---|---|
namerequired | stringSchedule item display name. |
typerequired | "flight"Flight schedule item type. |
statusrequired | "confirmed" | "unconfirmed"Confirmation state for the schedule item. |
priorityrequired | "normal" | "high"Priority used to draw attention to important schedule items. |
startTimerequired | stringSchedule item start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must fall within the associated day's local 48-hour window. |
endTimerequired | stringSchedule item end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
startTimezonerequired | stringIANA timezone identifier for displaying the start time, such as America/Chicago. |
endTimezonerequired | stringIANA timezone identifier for displaying the end time, such as America/Chicago. |
detailsrequired | object |
details.kindrequired | "flight"Discriminator for a flight schedule item. |
details.flightTyperequired | "commercial" | "private"Whether the flight is commercial or private. |
details.confirmationNumber | stringBooking confirmation number. |
details.tailNumber | stringPrivate aircraft tail number. |
details.aircraftType | stringPrivate aircraft type. |
details.passengerCapacity | integerPassenger capacity for the private aircraft. |
details.passengersCOMING SOON | string:uuid[]RoadOps member IDs traveling on this flight. Coming soon in the RoadOps app. |
details.connectionsrequired | object[]Ordered itinerary legs. Live flight data is read-only and must be omitted. |
details.connections[].airline | stringAirline or operator name. |
details.connections[].flightNumber | stringCommercial flight number or private leg identifier. |
details.connections[].origin | objectOrigin airport. |
details.connections[].origin.code | stringAirport or FBO airport code. |
details.connections[].origin.name | stringAirport display name. |
details.connections[].origin.address | stringAirport address. |
details.connections[].origin.placeId | stringGoogle Places ID when available. |
details.connections[].origin.terminal | stringTerminal label. |
details.connections[].origin.gate | stringGate label. |
details.connections[].origin.latitude | numberLatitude in decimal degrees. |
details.connections[].origin.longitude | numberLongitude in decimal degrees. |
details.connections[].destination | objectDestination airport. |
details.connections[].destination.code | stringAirport or FBO airport code. |
details.connections[].destination.name | stringAirport display name. |
details.connections[].destination.address | stringAirport address. |
details.connections[].destination.placeId | stringGoogle Places ID when available. |
details.connections[].destination.terminal | stringTerminal label. |
details.connections[].destination.gate | stringGate label. |
details.connections[].destination.latitude | numberLatitude in decimal degrees. |
details.connections[].destination.longitude | numberLongitude in decimal degrees. |
details.connections[].originFbo | objectOrigin FBO for private flights. |
details.connections[].originFbo.label | stringHuman-readable place label. |
details.connections[].originFbo.address | stringStreet address or venue address. |
details.connections[].originFbo.placeId | stringGoogle Places ID when available. |
details.connections[].originFbo.latitude | numberLatitude in decimal degrees. |
details.connections[].originFbo.longitude | numberLongitude in decimal degrees. |
details.connections[].originFbo.timezone | stringTimezone for this location. |
details.connections[].originFboPhone | stringOrigin FBO phone number. |
details.connections[].destinationFbo | objectDestination FBO for private flights. |
details.connections[].destinationFbo.label | stringHuman-readable place label. |
details.connections[].destinationFbo.address | stringStreet address or venue address. |
details.connections[].destinationFbo.placeId | stringGoogle Places ID when available. |
details.connections[].destinationFbo.latitude | numberLatitude in decimal degrees. |
details.connections[].destinationFbo.longitude | numberLongitude in decimal degrees. |
details.connections[].destinationFbo.timezone | stringTimezone for this location. |
details.connections[].destinationFboPhone | stringDestination FBO phone number. |
details.connections[].departureTime | stringScheduled departure time. |
details.connections[].departureTimezone | stringTimezone for the departure time. |
details.connections[].arrivalTime | stringScheduled arrival time. |
details.connections[].arrivalTimezone | stringTimezone for the arrival time. |
notes | stringOptional schedule item notes. |
color | stringHex color reference for the schedule item label, formatted as a leading # followed by six hexadecimal characters. Use this to color-code the item consistently in calendars, timelines, and schedule views. |
sourceMetadata | objectIntegration-specific source metadata. |
showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
reminder | objectOptional team-wide push reminder before the item starts. |
reminder.amountrequired | numberPositive reminder offset, including fractional values. |
reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
reminder.unitrequired | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
visibility | objectOptional visibility rules. |
visibility.groupIds | string:uuid[] |
visibility.userIds | string:uuid[] |
id | string:uuidOptional caller-supplied schedule item ID. RoadOps generates one when omitted. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Create a train schedule item
POST/v1/teams/{teamId}/days/{dayId}/schedule-itemsAccepts a command to create a train schedule item. Use `type: "train"` with `details.kind: "train"` and one or more station-to-station legs.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
dayIdrequired | string:uuidDay that owns the schedule item. |
|---|---|
namerequired | stringSchedule item display name. |
typerequired | "train"Train schedule item type. |
statusrequired | "confirmed" | "unconfirmed"Confirmation state for the schedule item. |
priorityrequired | "normal" | "high"Priority used to draw attention to important schedule items. |
startTimerequired | stringSchedule item start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must fall within the associated day's local 48-hour window. |
endTimerequired | stringSchedule item end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
startTimezonerequired | stringIANA timezone identifier for displaying the start time, such as America/Chicago. |
endTimezonerequired | stringIANA timezone identifier for displaying the end time, such as America/Chicago. |
detailsrequired | object |
details.kindrequired | "train"Discriminator for a train schedule item. |
details.confirmationNumber | stringTrain booking confirmation number. |
details.legsrequired | object[]Ordered train journey legs. |
details.legs[].operator | stringRail operator name. |
details.legs[].trainNumber | stringTrain or service number. |
details.legs[].originrequired | objectOrigin train station. |
details.legs[].origin.address | stringStreet address or venue address. |
details.legs[].origin.placeId | stringGoogle Places ID when available. |
details.legs[].origin.latitude | numberLatitude in decimal degrees. |
details.legs[].origin.longitude | numberLongitude in decimal degrees. |
details.legs[].origin.timezone | stringTimezone for this location. |
details.legs[].origin.namerequired | stringTrain station display name. |
details.legs[].destinationrequired | objectDestination train station. |
details.legs[].destination.address | stringStreet address or venue address. |
details.legs[].destination.placeId | stringGoogle Places ID when available. |
details.legs[].destination.latitude | numberLatitude in decimal degrees. |
details.legs[].destination.longitude | numberLongitude in decimal degrees. |
details.legs[].destination.timezone | stringTimezone for this location. |
details.legs[].destination.namerequired | stringTrain station display name. |
details.legs[].originPlatform | stringDeparture platform or track. |
details.legs[].destinationPlatform | stringArrival platform or track. |
details.legs[].departureTimerequired | stringScheduled train departure time. |
details.legs[].departureTimezonerequired | stringTimezone for the train departure time. |
details.legs[].arrivalTimerequired | stringScheduled train arrival time. |
details.legs[].arrivalTimezonerequired | stringTimezone for the train arrival time. |
notes | stringOptional schedule item notes. |
color | stringHex color reference for the schedule item label, formatted as a leading # followed by six hexadecimal characters. Use this to color-code the item consistently in calendars, timelines, and schedule views. |
sourceMetadata | objectIntegration-specific source metadata. |
showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
reminder | objectOptional team-wide push reminder before the item starts. |
reminder.amountrequired | numberPositive reminder offset, including fractional values. |
reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
reminder.unitrequired | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
visibility | objectOptional visibility rules. |
visibility.groupIds | string:uuid[] |
visibility.userIds | string:uuid[] |
id | string:uuidOptional caller-supplied schedule item ID. RoadOps generates one when omitted. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Retrieve a schedule item
GET/v1/teams/{teamId}/days/{dayId}/schedule-items/{scheduleItemId}Returns one general schedule item, drive, flight, or train by ID.
Required scopes: schedule_item:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.scheduleItemIdrequired | string:uuidSchedule item identifier. |
Response 200
data | object |
|---|---|
data.dayId | string:uuidDay that owns the schedule item. |
data.name | stringSchedule item display name. |
data.type | "general" | "drive" | "flight" | "train"Schedule item variant. This must match details.kind. |
data.status | "confirmed" | "unconfirmed"Confirmation state for the schedule item. |
data.priority | "normal" | "high"Priority used to draw attention to important schedule items. |
data.startTime | stringSchedule item start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must fall within the associated day's local 48-hour window. |
data.endTime | stringSchedule item end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
data.startTimezone | stringIANA timezone identifier for displaying the start time, such as America/Chicago. |
data.endTimezone | stringIANA timezone identifier for displaying the end time, such as America/Chicago. |
data.details | general | drive | flight | train |
data.details.kind | "general" | "drive" | "flight" | "train"general: Discriminator for a general schedule item. drive: Discriminator for a drive schedule item. flight: Discriminator for a flight schedule item. train: Discriminator for a train schedule item. |
data.details.location | objectOptional location for the general item. |
data.details.location.label | stringHuman-readable place label. |
data.details.location.address | stringStreet address or venue address. |
data.details.location.placeId | stringGoogle Places ID when available. |
data.details.location.latitude | numberLatitude in decimal degrees. |
data.details.location.longitude | numberLongitude in decimal degrees. |
data.details.location.timezone | stringTimezone for this location. |
data.details.metadata | objectIntegration-specific metadata. |
data.details.transportMode | "self_drive" | "car_service" | "runner" | "bus" | "taxi" | "rideshare" | "other"Ground transportation mode. Omitted values are treated as self_drive for compatibility. |
data.details.includesFerry | booleanWhether this drive includes a ferry segment. |
data.details.provider | stringTransportation provider or company. |
data.details.confirmationNumber | stringdrive: Transportation booking or confirmation number. flight: Booking confirmation number. train: Train booking confirmation number. |
data.details.driverName | stringDriver or runner name. |
data.details.contact | stringDriver, runner, or provider contact details. |
data.details.vehicleDescription | stringVehicle class, type, or identifying description. |
data.details.pickupInstructions | stringPickup instructions for the traveler. |
data.details.otherDescription | stringDescription of an Other transportation mode. |
data.details.origin | objectDrive origin. |
data.details.origin.label | stringHuman-readable place label. |
data.details.origin.address | stringStreet address or venue address. |
data.details.origin.placeId | stringGoogle Places ID when available. |
data.details.origin.latitude | numberLatitude in decimal degrees. |
data.details.origin.longitude | numberLongitude in decimal degrees. |
data.details.origin.timezone | stringTimezone for this location. |
data.details.stops | object[]Ordered intermediate stops between the drive origin and destination. Each stop ID must be unique. Array order is route order; send an empty array to clear all stops. |
data.details.stops[].id | string:uuidStable identifier for this intermediate drive stop. Required when type is "drive". |
data.details.stops[].location | objectIntermediate location visited by the drive. Required when type is "drive". |
data.details.stops[].location.label | stringHuman-readable place label. |
data.details.stops[].location.address | stringStreet address or venue address. |
data.details.stops[].location.placeId | stringGoogle Places ID when available. |
data.details.stops[].location.latitude | numberLatitude in decimal degrees. |
data.details.stops[].location.longitude | numberLongitude in decimal degrees. |
data.details.stops[].location.timezone | stringTimezone for this location. |
data.details.destination | objectDrive destination. |
data.details.destination.label | stringHuman-readable place label. |
data.details.destination.address | stringStreet address or venue address. |
data.details.destination.placeId | stringGoogle Places ID when available. |
data.details.destination.latitude | numberLatitude in decimal degrees. |
data.details.destination.longitude | numberLongitude in decimal degrees. |
data.details.destination.timezone | stringTimezone for this location. |
data.details.distanceKm | numberDrive distance in kilometers. |
data.details.distanceMiles | numberDrive distance in miles. |
data.details.durationMinutes | numberExpected drive duration in minutes. |
data.details.vehicleCOMING SOON | stringVehicle assigned to the drive. Coming soon in the RoadOps app. |
data.details.notes | stringDrive-specific notes. |
data.details.originalTimes | objectRead-only original itinerary time range for the was display. |
data.details.originalTimes.startTime | string:date-timeRoadOps start time before the first operational adjustment. Required when type is "flight". |
data.details.originalTimes.endTime | string:date-timeRoadOps end time before the first operational adjustment. Required when type is "flight". |
data.details.originalTimes.startTimezone | stringOriginal departure IANA timezone. Required when type is "flight". |
data.details.originalTimes.endTimezone | stringOriginal arrival IANA timezone. Required when type is "flight". |
data.details.flightType | "commercial" | "private"Whether the flight is commercial or private. Required when type is "flight". |
data.details.tailNumber | stringPrivate aircraft tail number. |
data.details.aircraftType | stringPrivate aircraft type. |
data.details.passengerCapacity | integerPassenger capacity for the private aircraft. |
data.details.passengersCOMING SOON | string:uuid[]RoadOps member IDs traveling on this flight. Coming soon in the RoadOps app. |
data.details.connections | object[]Ordered flight legs or connections. Required when type is "flight". |
data.details.connections[].tracking | objectRead-only operational status and airport resources; cannot be supplied in commands. |
data.details.connections[].tracking.source | "cirium"System supplying the operational flight data. Required when type is "flight". |
data.details.connections[].tracking.updatedAt | string:date-timeProvider observation time in UTC. Required when type is "flight". |
data.details.connections[].tracking.status | "SCHEDULED" | "EN_ROUTE" | "LANDED" | "CANCELLED" | "DIVERTED" | "REDIRECTED" | "DATA_NEEDED" | "NOT_OPERATIONAL" | "UNKNOWN"System-reported flight operating status, separate from booking confirmation. Required when type is "flight". |
data.details.connections[].tracking.scheduledDeparture | string:date-timePublished gate departure time in UTC; read-only. |
data.details.connections[].tracking.scheduledArrival | string:date-timePublished gate arrival time in UTC; read-only. |
data.details.connections[].tracking.estimatedDeparture | string:date-timeEstimated gate departure time in UTC; read-only. |
data.details.connections[].tracking.estimatedArrival | string:date-timeEstimated gate arrival time in UTC; read-only. |
data.details.connections[].tracking.actualDeparture | string:date-timeActual gate departure time in UTC; read-only. |
data.details.connections[].tracking.actualArrival | string:date-timeActual gate arrival time in UTC; read-only. |
data.details.connections[].tracking.scheduledRunwayDeparture | string:date-timeScheduled takeoff time in UTC; read-only. |
data.details.connections[].tracking.scheduledRunwayArrival | string:date-timeScheduled landing time in UTC; read-only. |
data.details.connections[].tracking.estimatedRunwayDeparture | string:date-timeEstimated takeoff time in UTC; read-only. |
data.details.connections[].tracking.estimatedRunwayArrival | string:date-timeEstimated landing time in UTC; read-only. |
data.details.connections[].tracking.actualRunwayDeparture | string:date-timeActual takeoff time in UTC; read-only. |
data.details.connections[].tracking.actualRunwayArrival | string:date-timeActual landing time in UTC; read-only. |
data.details.connections[].tracking.departureTerminal | string | nullCurrent departure terminal; read-only. |
data.details.connections[].tracking.departureGate | string | nullCurrent departure gate; read-only. |
data.details.connections[].tracking.arrivalTerminal | string | nullCurrent arrival terminal; read-only. |
data.details.connections[].tracking.arrivalGate | string | nullCurrent arrival gate; read-only. |
data.details.connections[].tracking.baggageClaim | string | nullCurrent baggage collection location; read-only. |
data.details.connections[].tracking.equipment | string | nullCurrent aircraft equipment description; read-only. |
data.details.connections[].tracking.tailNumber | string | nullReported aircraft registration; read-only. |
data.details.connections[].tracking.divertedAirport | string | nullAirport code for the diversion destination; read-only. |
data.details.connections[].tracking.departureDelayMinutes | integer | nullGate departure adjustment in minutes; negative means early. |
data.details.connections[].tracking.arrivalDelayMinutes | integer | nullGate arrival adjustment in minutes; negative means early. |
data.details.connections[].airline | stringAirline or operator name. |
data.details.connections[].flightNumber | stringCommercial flight number or private leg identifier. |
data.details.connections[].origin | objectOrigin airport. |
data.details.connections[].origin.code | stringAirport or FBO airport code. |
data.details.connections[].origin.name | stringAirport display name. |
data.details.connections[].origin.address | stringAirport address. |
data.details.connections[].origin.placeId | stringGoogle Places ID when available. |
data.details.connections[].origin.terminal | stringTerminal label. |
data.details.connections[].origin.gate | stringGate label. |
data.details.connections[].origin.latitude | numberLatitude in decimal degrees. |
data.details.connections[].origin.longitude | numberLongitude in decimal degrees. |
data.details.connections[].destination | objectDestination airport. |
data.details.connections[].destination.code | stringAirport or FBO airport code. |
data.details.connections[].destination.name | stringAirport display name. |
data.details.connections[].destination.address | stringAirport address. |
data.details.connections[].destination.placeId | stringGoogle Places ID when available. |
data.details.connections[].destination.terminal | stringTerminal label. |
data.details.connections[].destination.gate | stringGate label. |
data.details.connections[].destination.latitude | numberLatitude in decimal degrees. |
data.details.connections[].destination.longitude | numberLongitude in decimal degrees. |
data.details.connections[].originFbo | objectOrigin FBO for private flights. |
data.details.connections[].originFbo.label | stringHuman-readable place label. |
data.details.connections[].originFbo.address | stringStreet address or venue address. |
data.details.connections[].originFbo.placeId | stringGoogle Places ID when available. |
data.details.connections[].originFbo.latitude | numberLatitude in decimal degrees. |
data.details.connections[].originFbo.longitude | numberLongitude in decimal degrees. |
data.details.connections[].originFbo.timezone | stringTimezone for this location. |
data.details.connections[].originFboPhone | stringOrigin FBO phone number. |
data.details.connections[].destinationFbo | objectDestination FBO for private flights. |
data.details.connections[].destinationFbo.label | stringHuman-readable place label. |
data.details.connections[].destinationFbo.address | stringStreet address or venue address. |
data.details.connections[].destinationFbo.placeId | stringGoogle Places ID when available. |
data.details.connections[].destinationFbo.latitude | numberLatitude in decimal degrees. |
data.details.connections[].destinationFbo.longitude | numberLongitude in decimal degrees. |
data.details.connections[].destinationFbo.timezone | stringTimezone for this location. |
data.details.connections[].destinationFboPhone | stringDestination FBO phone number. |
data.details.connections[].departureTime | stringScheduled departure time. |
data.details.connections[].departureTimezone | stringTimezone for the departure time. |
data.details.connections[].arrivalTime | stringScheduled arrival time. |
data.details.connections[].arrivalTimezone | stringTimezone for the arrival time. |
data.details.legs | object[]Ordered train journey legs. Required when type is "train". |
data.details.legs[].operator | stringRail operator name. |
data.details.legs[].trainNumber | stringTrain or service number. |
data.details.legs[].origin | objectOrigin train station. Required when type is "train". |
data.details.legs[].origin.address | stringStreet address or venue address. |
data.details.legs[].origin.placeId | stringGoogle Places ID when available. |
data.details.legs[].origin.latitude | numberLatitude in decimal degrees. |
data.details.legs[].origin.longitude | numberLongitude in decimal degrees. |
data.details.legs[].origin.timezone | stringTimezone for this location. |
data.details.legs[].origin.name | stringTrain station display name. Required when type is "train". |
data.details.legs[].destination | objectDestination train station. Required when type is "train". |
data.details.legs[].destination.address | stringStreet address or venue address. |
data.details.legs[].destination.placeId | stringGoogle Places ID when available. |
data.details.legs[].destination.latitude | numberLatitude in decimal degrees. |
data.details.legs[].destination.longitude | numberLongitude in decimal degrees. |
data.details.legs[].destination.timezone | stringTimezone for this location. |
data.details.legs[].destination.name | stringTrain station display name. Required when type is "train". |
data.details.legs[].originPlatform | stringDeparture platform or track. |
data.details.legs[].destinationPlatform | stringArrival platform or track. |
data.details.legs[].departureTime | stringScheduled train departure time. Required when type is "train". |
data.details.legs[].departureTimezone | stringTimezone for the train departure time. Required when type is "train". |
data.details.legs[].arrivalTime | stringScheduled train arrival time. Required when type is "train". |
data.details.legs[].arrivalTimezone | stringTimezone for the train arrival time. Required when type is "train". |
data.notes | stringOptional schedule item notes. |
data.color | stringHex color reference for the schedule item label, formatted as a leading # followed by six hexadecimal characters. Use this to color-code the item consistently in calendars, timelines, and schedule views. |
data.sourceMetadata | objectIntegration-specific source metadata. |
data.showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
data.reminder | objectOptional team-wide push reminder before the item starts. |
data.reminder.amount | numberPositive reminder offset, including fractional values. |
data.reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
data.reminder.unit | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
data.visibility | objectOptional visibility rules. |
data.visibility.groupIds | string:uuid[] |
data.visibility.userIds | string:uuid[] |
data.id | string:uuidSchedule item identifier. |
data.orgId | string:uuidTeam identifier. |
data.isDeleted | booleanSoft-delete flag. |
data.version | integerCurrent schedule item aggregate version. |
data.cursor | integerLatest cursor projected into this schedule item record. |
meta | object |
meta.cursor | integerHighest record cursor represented by this response. |
Reschedule a schedule item
POST/v1/teams/{teamId}/days/{dayId}/schedule-items/{scheduleItemId}/rescheduleMoves a schedule item to new start and end times. Use this endpoint specifically for time changes rather than general schedule item edits. If the move changes an item occurring within a user's 24h or 48h schedule notice window, RoadOps sends push notifications to users who have schedule notifications enabled.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.scheduleItemIdrequired | string:uuidSchedule item identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
expectedVersion | integerOptional aggregate version guard. |
|---|---|
startTimerequired | string:date-timeNew start time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. The timestamp must be within the associated day's local 48-hour window. |
endTimerequired | string:date-timeNew end time as a UTC ISO 8601 timestamp, including the trailing Z UTC designator. Non-flight items must end within the associated day's local 48-hour window; flights may arrive after that window. |
startTimezonerequired | stringIANA timezone identifier for displaying the new start time, such as America/Chicago. |
endTimezonerequired | stringIANA timezone identifier for displaying the new end time, such as America/Chicago. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Update a schedule item
PATCH/v1/teams/{teamId}/days/{dayId}/schedule-items/{scheduleItemId}Accepts a command to update a general schedule item, drive, or flight.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.scheduleItemIdrequired | string:uuidSchedule item identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
expectedVersion | integerOptional aggregate version guard. |
|---|---|
updatesrequired | objectSchedule item fields to update. The type field must continue to match details.kind when both are supplied. |
updates.name | stringUpdated schedule item name. |
updates.type | "general" | "drive" | "flight" | "train"Updated schedule item variant. |
updates.details | general | drive | flight | trainUpdated type-specific details. |
updates.details.kindrequired | "general" | "drive" | "flight" | "train"general: Discriminator for a general schedule item. drive: Discriminator for a drive schedule item. flight: Discriminator for a flight schedule item. train: Discriminator for a train schedule item. |
updates.details.location | objectOptional location for the general item. |
updates.details.location.label | stringHuman-readable place label. |
updates.details.location.address | stringStreet address or venue address. |
updates.details.location.placeId | stringGoogle Places ID when available. |
updates.details.location.latitude | numberLatitude in decimal degrees. |
updates.details.location.longitude | numberLongitude in decimal degrees. |
updates.details.location.timezone | stringTimezone for this location. |
updates.details.metadata | objectIntegration-specific metadata. |
updates.details.transportMode | "self_drive" | "car_service" | "runner" | "bus" | "taxi" | "rideshare" | "other"Ground transportation mode. Omitted values are treated as self_drive for compatibility. |
updates.details.includesFerry | booleanWhether this drive includes a ferry segment. |
updates.details.provider | stringTransportation provider or company. |
updates.details.confirmationNumber | stringdrive: Transportation booking or confirmation number. flight: Booking confirmation number. train: Train booking confirmation number. |
updates.details.driverName | stringDriver or runner name. |
updates.details.contact | stringDriver, runner, or provider contact details. |
updates.details.vehicleDescription | stringVehicle class, type, or identifying description. |
updates.details.pickupInstructions | stringPickup instructions for the traveler. |
updates.details.otherDescription | stringDescription of an Other transportation mode. |
updates.details.origin | objectDrive origin. |
updates.details.origin.label | stringHuman-readable place label. |
updates.details.origin.address | stringStreet address or venue address. |
updates.details.origin.placeId | stringGoogle Places ID when available. |
updates.details.origin.latitude | numberLatitude in decimal degrees. |
updates.details.origin.longitude | numberLongitude in decimal degrees. |
updates.details.origin.timezone | stringTimezone for this location. |
updates.details.stops | object[]Ordered intermediate stops between the drive origin and destination. Each stop ID must be unique. Array order is route order; send an empty array to clear all stops. |
updates.details.stops[].id | string:uuidStable identifier for this intermediate drive stop. Required when type is "drive". |
updates.details.stops[].location | objectIntermediate location visited by the drive. Required when type is "drive". |
updates.details.stops[].location.label | stringHuman-readable place label. |
updates.details.stops[].location.address | stringStreet address or venue address. |
updates.details.stops[].location.placeId | stringGoogle Places ID when available. |
updates.details.stops[].location.latitude | numberLatitude in decimal degrees. |
updates.details.stops[].location.longitude | numberLongitude in decimal degrees. |
updates.details.stops[].location.timezone | stringTimezone for this location. |
updates.details.destination | objectDrive destination. |
updates.details.destination.label | stringHuman-readable place label. |
updates.details.destination.address | stringStreet address or venue address. |
updates.details.destination.placeId | stringGoogle Places ID when available. |
updates.details.destination.latitude | numberLatitude in decimal degrees. |
updates.details.destination.longitude | numberLongitude in decimal degrees. |
updates.details.destination.timezone | stringTimezone for this location. |
updates.details.distanceKm | numberDrive distance in kilometers. |
updates.details.distanceMiles | numberDrive distance in miles. |
updates.details.durationMinutes | numberExpected drive duration in minutes. |
updates.details.vehicleCOMING SOON | stringVehicle assigned to the drive. Coming soon in the RoadOps app. |
updates.details.notes | stringDrive-specific notes. |
updates.details.flightType | "commercial" | "private"Whether the flight is commercial or private. Required when type is "flight". |
updates.details.tailNumber | stringPrivate aircraft tail number. |
updates.details.aircraftType | stringPrivate aircraft type. |
updates.details.passengerCapacity | integerPassenger capacity for the private aircraft. |
updates.details.passengersCOMING SOON | string:uuid[]RoadOps member IDs traveling on this flight. Coming soon in the RoadOps app. |
updates.details.connections | object[]Ordered itinerary legs. Live flight data is read-only and must be omitted. Required when type is "flight". |
updates.details.connections[].airline | stringAirline or operator name. |
updates.details.connections[].flightNumber | stringCommercial flight number or private leg identifier. |
updates.details.connections[].origin | objectOrigin airport. |
updates.details.connections[].origin.code | stringAirport or FBO airport code. |
updates.details.connections[].origin.name | stringAirport display name. |
updates.details.connections[].origin.address | stringAirport address. |
updates.details.connections[].origin.placeId | stringGoogle Places ID when available. |
updates.details.connections[].origin.terminal | stringTerminal label. |
updates.details.connections[].origin.gate | stringGate label. |
updates.details.connections[].origin.latitude | numberLatitude in decimal degrees. |
updates.details.connections[].origin.longitude | numberLongitude in decimal degrees. |
updates.details.connections[].destination | objectDestination airport. |
updates.details.connections[].destination.code | stringAirport or FBO airport code. |
updates.details.connections[].destination.name | stringAirport display name. |
updates.details.connections[].destination.address | stringAirport address. |
updates.details.connections[].destination.placeId | stringGoogle Places ID when available. |
updates.details.connections[].destination.terminal | stringTerminal label. |
updates.details.connections[].destination.gate | stringGate label. |
updates.details.connections[].destination.latitude | numberLatitude in decimal degrees. |
updates.details.connections[].destination.longitude | numberLongitude in decimal degrees. |
updates.details.connections[].originFbo | objectOrigin FBO for private flights. |
updates.details.connections[].originFbo.label | stringHuman-readable place label. |
updates.details.connections[].originFbo.address | stringStreet address or venue address. |
updates.details.connections[].originFbo.placeId | stringGoogle Places ID when available. |
updates.details.connections[].originFbo.latitude | numberLatitude in decimal degrees. |
updates.details.connections[].originFbo.longitude | numberLongitude in decimal degrees. |
updates.details.connections[].originFbo.timezone | stringTimezone for this location. |
updates.details.connections[].originFboPhone | stringOrigin FBO phone number. |
updates.details.connections[].destinationFbo | objectDestination FBO for private flights. |
updates.details.connections[].destinationFbo.label | stringHuman-readable place label. |
updates.details.connections[].destinationFbo.address | stringStreet address or venue address. |
updates.details.connections[].destinationFbo.placeId | stringGoogle Places ID when available. |
updates.details.connections[].destinationFbo.latitude | numberLatitude in decimal degrees. |
updates.details.connections[].destinationFbo.longitude | numberLongitude in decimal degrees. |
updates.details.connections[].destinationFbo.timezone | stringTimezone for this location. |
updates.details.connections[].destinationFboPhone | stringDestination FBO phone number. |
updates.details.connections[].departureTime | stringScheduled departure time. |
updates.details.connections[].departureTimezone | stringTimezone for the departure time. |
updates.details.connections[].arrivalTime | stringScheduled arrival time. |
updates.details.connections[].arrivalTimezone | stringTimezone for the arrival time. |
updates.details.legs | object[]Ordered train journey legs. Required when type is "train". |
updates.details.legs[].operator | stringRail operator name. |
updates.details.legs[].trainNumber | stringTrain or service number. |
updates.details.legs[].origin | objectOrigin train station. Required when type is "train". |
updates.details.legs[].origin.address | stringStreet address or venue address. |
updates.details.legs[].origin.placeId | stringGoogle Places ID when available. |
updates.details.legs[].origin.latitude | numberLatitude in decimal degrees. |
updates.details.legs[].origin.longitude | numberLongitude in decimal degrees. |
updates.details.legs[].origin.timezone | stringTimezone for this location. |
updates.details.legs[].origin.name | stringTrain station display name. Required when type is "train". |
updates.details.legs[].destination | objectDestination train station. Required when type is "train". |
updates.details.legs[].destination.address | stringStreet address or venue address. |
updates.details.legs[].destination.placeId | stringGoogle Places ID when available. |
updates.details.legs[].destination.latitude | numberLatitude in decimal degrees. |
updates.details.legs[].destination.longitude | numberLongitude in decimal degrees. |
updates.details.legs[].destination.timezone | stringTimezone for this location. |
updates.details.legs[].destination.name | stringTrain station display name. Required when type is "train". |
updates.details.legs[].originPlatform | stringDeparture platform or track. |
updates.details.legs[].destinationPlatform | stringArrival platform or track. |
updates.details.legs[].departureTime | stringScheduled train departure time. Required when type is "train". |
updates.details.legs[].departureTimezone | stringTimezone for the train departure time. Required when type is "train". |
updates.details.legs[].arrivalTime | stringScheduled train arrival time. Required when type is "train". |
updates.details.legs[].arrivalTimezone | stringTimezone for the train arrival time. Required when type is "train". |
updates.status | "confirmed" | "unconfirmed"Updated confirmation state. |
updates.priority | "normal" | "high"Updated schedule item priority. |
updates.notes | string | nullUpdated schedule item notes, or null to clear them. |
updates.color | string | nullUpdated schedule item color, or null to clear it. |
updates.sourceMetadata | object | nullUpdated integration metadata, or null to clear it. |
updates.showArrivalOnArrivalDay | booleanShow the final travel arrival on its local arrival Day when it is after the owning Day overnight window. Missing values on existing items mean false. |
updates.reminder | object | nullReminder offset, or null to remove the reminder. |
updates.reminder.amountrequired | numberPositive reminder offset, including fractional values. |
updates.reminder.message | stringOptional custom reminder notification body, up to 500 characters. Blank uses the item start time. |
updates.reminder.unitrequired | "minutes" | "hours" | "days"Elapsed offset unit; a day is 24 hours. |
updates.visibility | object | nullUpdated visibility, or null to clear custom visibility. |
updates.visibility.groupIds | string:uuid[] |
updates.visibility.userIds | string:uuid[] |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Delete a schedule item
DELETE/v1/teams/{teamId}/days/{dayId}/schedule-items/{scheduleItemId}Accepts a command to delete a schedule item, drive, or flight.
Required scopes: schedule_item:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.scheduleItemIdrequired | string:uuidSchedule item identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |