POST api/travel/day/traveldatebus

Creates a new travel date bus configuration or updates an existing one. If the combination of travel date ID and bus ID exists, it will be updated; otherwise, a new configuration will be created.

Request Information

URI Parameters

None.

Body Parameters

The TravelDateBus object containing the configuration information to create or update. Sent in the request body as JSON.

TravelDateBus
NameDescriptionTypeAdditional information
TravelDateID

integer

None.

BusID

integer

None.

Description

string

None.

Memo

string

None.

StaffHiredPersonIDList

Collection of integer

None.

InboundVehicleTypeID

integer

None.

InboundLegDriver

string

None.

InboundLegEscortList

Collection of string

None.

InboundLegDepartureBusStopID

integer

None.

InboundLegDepartureTime

string

None.

InboundLegArrivalMinutes

integer

None.

InboundLegArrivalBusStopID

integer

None.

OutboundVehicleTypeID

integer

None.

OutboundLegDriver

string

None.

OutboundLegEscortList

Collection of string

None.

OutboundLegDepartureBusStopID

integer

None.

OutboundLegDepartureTime

string

None.

OutboundLegArrivalMinutes

integer

None.

OutboundLegArrivalBusStopID

integer

None.

OnlineFormEnabled

boolean

None.

UpdatedBy

string

None.

Updated

date

None.

Request Formats

application/json, text/json

Sample:
{
  "TravelDateID": 1,
  "BusID": 2,
  "Description": "sample string 3",
  "Memo": "sample string 4",
  "StaffHiredPersonIDList": [
    1,
    2
  ],
  "InboundVehicleTypeID": 1,
  "InboundLegDriver": "sample string 5",
  "InboundLegEscortList": [
    "sample string 1",
    "sample string 2"
  ],
  "InboundLegDepartureBusStopID": 1,
  "InboundLegDepartureTime": "sample string 6",
  "InboundLegArrivalMinutes": 1,
  "InboundLegArrivalBusStopID": 1,
  "OutboundVehicleTypeID": 1,
  "OutboundLegDriver": "sample string 7",
  "OutboundLegEscortList": [
    "sample string 1",
    "sample string 2"
  ],
  "OutboundLegDepartureBusStopID": 1,
  "OutboundLegDepartureTime": "sample string 8",
  "OutboundLegArrivalMinutes": 1,
  "OutboundLegArrivalBusStopID": 1,
  "OnlineFormEnabled": true,
  "UpdatedBy": "sample string 9",
  "Updated": "2026-09-08T15:28:57.7556417-06:00"
}

application/javascript

Sample:
{"TravelDateID":1,"BusID":2,"Description":"sample string 3","Memo":"sample string 4","StaffHiredPersonIDList":[1,2],"InboundVehicleTypeID":1,"InboundLegDriver":"sample string 5","InboundLegEscortList":["sample string 1","sample string 2"],"InboundLegDepartureBusStopID":1,"InboundLegDepartureTime":"sample string 6","InboundLegArrivalMinutes":1,"InboundLegArrivalBusStopID":1,"OutboundVehicleTypeID":1,"OutboundLegDriver":"sample string 7","OutboundLegEscortList":["sample string 1","sample string 2"],"OutboundLegDepartureBusStopID":1,"OutboundLegDepartureTime":"sample string 8","OutboundLegArrivalMinutes":1,"OutboundLegArrivalBusStopID":1,"OnlineFormEnabled":true,"UpdatedBy":"sample string 9","Updated":"2026-09-08T15:28:57.7556417-06:00"}

application/xml, text/xml

Sample:
<TravelDateBus xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <TravelDateID>1</TravelDateID>
  <BusID>2</BusID>
  <Description>sample string 3</Description>
  <Memo>sample string 4</Memo>
  <StaffHiredPersonIDList>
    <int>1</int>
    <int>2</int>
  </StaffHiredPersonIDList>
  <InboundVehicleTypeID>1</InboundVehicleTypeID>
  <InboundLegDriver>sample string 5</InboundLegDriver>
  <InboundLegEscortList>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </InboundLegEscortList>
  <InboundLegDepartureBusStopID>1</InboundLegDepartureBusStopID>
  <InboundLegDepartureTime>sample string 6</InboundLegDepartureTime>
  <InboundLegArrivalMinutes>1</InboundLegArrivalMinutes>
  <InboundLegArrivalBusStopID>1</InboundLegArrivalBusStopID>
  <OutboundVehicleTypeID>1</OutboundVehicleTypeID>
  <OutboundLegDriver>sample string 7</OutboundLegDriver>
  <OutboundLegEscortList>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </OutboundLegEscortList>
  <OutboundLegDepartureBusStopID>1</OutboundLegDepartureBusStopID>
  <OutboundLegDepartureTime>sample string 8</OutboundLegDepartureTime>
  <OutboundLegArrivalMinutes>1</OutboundLegArrivalMinutes>
  <OutboundLegArrivalBusStopID>1</OutboundLegArrivalBusStopID>
  <OnlineFormEnabled>true</OnlineFormEnabled>
  <UpdatedBy>sample string 9</UpdatedBy>
  <Updated>2026-09-08T15:28:57.7556417-06:00</Updated>
</TravelDateBus>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TravelDateBus'.

Response Information

Resource Description

Returns HTTP 200 (OK) with the created or updated TravelDateBus object.

TravelDateBus
NameDescriptionTypeAdditional information
TravelDateID

integer

None.

BusID

integer

None.

Description

string

None.

Memo

string

None.

StaffHiredPersonIDList

Collection of integer

None.

InboundVehicleTypeID

integer

None.

InboundLegDriver

string

None.

InboundLegEscortList

Collection of string

None.

InboundLegDepartureBusStopID

integer

None.

InboundLegDepartureTime

string

None.

InboundLegArrivalMinutes

integer

None.

InboundLegArrivalBusStopID

integer

None.

OutboundVehicleTypeID

integer

None.

OutboundLegDriver

string

None.

OutboundLegEscortList

Collection of string

None.

OutboundLegDepartureBusStopID

integer

None.

OutboundLegDepartureTime

string

None.

OutboundLegArrivalMinutes

integer

None.

OutboundLegArrivalBusStopID

integer

None.

OnlineFormEnabled

boolean

None.

UpdatedBy

string

None.

Updated

date

None.

Response Formats

application/json, text/json

Sample:
{
  "TravelDateID": 1,
  "BusID": 2,
  "Description": "sample string 3",
  "Memo": "sample string 4",
  "StaffHiredPersonIDList": [
    1,
    2
  ],
  "InboundVehicleTypeID": 1,
  "InboundLegDriver": "sample string 5",
  "InboundLegEscortList": [
    "sample string 1",
    "sample string 2"
  ],
  "InboundLegDepartureBusStopID": 1,
  "InboundLegDepartureTime": "sample string 6",
  "InboundLegArrivalMinutes": 1,
  "InboundLegArrivalBusStopID": 1,
  "OutboundVehicleTypeID": 1,
  "OutboundLegDriver": "sample string 7",
  "OutboundLegEscortList": [
    "sample string 1",
    "sample string 2"
  ],
  "OutboundLegDepartureBusStopID": 1,
  "OutboundLegDepartureTime": "sample string 8",
  "OutboundLegArrivalMinutes": 1,
  "OutboundLegArrivalBusStopID": 1,
  "OnlineFormEnabled": true,
  "UpdatedBy": "sample string 9",
  "Updated": "2026-09-08T15:28:57.7674813-06:00"
}

application/javascript

Sample:
{"TravelDateID":1,"BusID":2,"Description":"sample string 3","Memo":"sample string 4","StaffHiredPersonIDList":[1,2],"InboundVehicleTypeID":1,"InboundLegDriver":"sample string 5","InboundLegEscortList":["sample string 1","sample string 2"],"InboundLegDepartureBusStopID":1,"InboundLegDepartureTime":"sample string 6","InboundLegArrivalMinutes":1,"InboundLegArrivalBusStopID":1,"OutboundVehicleTypeID":1,"OutboundLegDriver":"sample string 7","OutboundLegEscortList":["sample string 1","sample string 2"],"OutboundLegDepartureBusStopID":1,"OutboundLegDepartureTime":"sample string 8","OutboundLegArrivalMinutes":1,"OutboundLegArrivalBusStopID":1,"OnlineFormEnabled":true,"UpdatedBy":"sample string 9","Updated":"2026-09-08T15:28:57.7674813-06:00"}

application/xml, text/xml

Sample:
<TravelDateBus xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <TravelDateID>1</TravelDateID>
  <BusID>2</BusID>
  <Description>sample string 3</Description>
  <Memo>sample string 4</Memo>
  <StaffHiredPersonIDList>
    <int>1</int>
    <int>2</int>
  </StaffHiredPersonIDList>
  <InboundVehicleTypeID>1</InboundVehicleTypeID>
  <InboundLegDriver>sample string 5</InboundLegDriver>
  <InboundLegEscortList>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </InboundLegEscortList>
  <InboundLegDepartureBusStopID>1</InboundLegDepartureBusStopID>
  <InboundLegDepartureTime>sample string 6</InboundLegDepartureTime>
  <InboundLegArrivalMinutes>1</InboundLegArrivalMinutes>
  <InboundLegArrivalBusStopID>1</InboundLegArrivalBusStopID>
  <OutboundVehicleTypeID>1</OutboundVehicleTypeID>
  <OutboundLegDriver>sample string 7</OutboundLegDriver>
  <OutboundLegEscortList>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </OutboundLegEscortList>
  <OutboundLegDepartureBusStopID>1</OutboundLegDepartureBusStopID>
  <OutboundLegDepartureTime>sample string 8</OutboundLegDepartureTime>
  <OutboundLegArrivalMinutes>1</OutboundLegArrivalMinutes>
  <OutboundLegArrivalBusStopID>1</OutboundLegArrivalBusStopID>
  <OnlineFormEnabled>true</OnlineFormEnabled>
  <UpdatedBy>sample string 9</UpdatedBy>
  <Updated>2026-09-08T15:28:57.7674813-06:00</Updated>
</TravelDateBus>