POST api/travel/day/traveldate
Creates a new travel date or updates an existing one. If the travel date ID exists, it will be updated; otherwise, a new travel date will be created.
Request Information
URI Parameters
None.
Body Parameters
The TravelDate object containing the travel date information to create or update. Sent in the request body as JSON.
TravelDate| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| TravelDateID | integer |
None. |
|
| Name | string |
None. |
|
| Code | string |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| ObjectType | ObjectTypeFlag |
None. |
|
| SessionIDList | Collection of integer |
None. |
|
| ProgramIDList | Collection of integer |
None. |
|
| SeasonIDArray | Collection of integer |
None. |
|
| UpdatedBy | string |
None. |
|
| Updated | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 2,
"TravelDateID": 2,
"Name": "sample string 3",
"Code": "sample string 4",
"StartDate": "2026-09-08T15:28:53.9621652-06:00",
"EndDate": "2026-09-08T15:28:53.9621652-06:00",
"ObjectType": 0,
"SessionIDList": [
1,
2
],
"ProgramIDList": [
1,
2
],
"SeasonIDArray": [
1,
2
],
"UpdatedBy": "sample string 7",
"Updated": "2026-09-08T15:28:53.9621652-06:00"
}
application/javascript
Sample:
{"ID":2,"TravelDateID":2,"Name":"sample string 3","Code":"sample string 4","StartDate":"2026-09-08T15:28:53.9621652-06:00","EndDate":"2026-09-08T15:28:53.9621652-06:00","ObjectType":0,"SessionIDList":[1,2],"ProgramIDList":[1,2],"SeasonIDArray":[1,2],"UpdatedBy":"sample string 7","Updated":"2026-09-08T15:28:53.9621652-06:00"}
application/xml, text/xml
Sample:
<TravelDate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ID>2</ID>
<TravelDateID>2</TravelDateID>
<Name>sample string 3</Name>
<Code>sample string 4</Code>
<StartDate>2026-09-08T15:28:53.9621652-06:00</StartDate>
<EndDate>2026-09-08T15:28:53.9621652-06:00</EndDate>
<ObjectType>Undefined</ObjectType>
<SessionIDList>
<int>1</int>
<int>2</int>
</SessionIDList>
<ProgramIDList>
<int>1</int>
<int>2</int>
</ProgramIDList>
<SeasonIDArray>
<int>1</int>
<int>2</int>
</SeasonIDArray>
<UpdatedBy>sample string 7</UpdatedBy>
<Updated>2026-09-08T15:28:53.9621652-06:00</Updated>
</TravelDate>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Returns HTTP 200 (OK) with the updated TravelDate object
TravelDate| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| TravelDateID | integer |
None. |
|
| Name | string |
None. |
|
| Code | string |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| ObjectType | ObjectTypeFlag |
None. |
|
| SessionIDList | Collection of integer |
None. |
|
| ProgramIDList | Collection of integer |
None. |
|
| SeasonIDArray | Collection of integer |
None. |
|
| UpdatedBy | string |
None. |
|
| Updated | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 2,
"TravelDateID": 2,
"Name": "sample string 3",
"Code": "sample string 4",
"StartDate": "2026-09-08T15:28:53.9621652-06:00",
"EndDate": "2026-09-08T15:28:53.9621652-06:00",
"ObjectType": 0,
"SessionIDList": [
1,
2
],
"ProgramIDList": [
1,
2
],
"SeasonIDArray": [
1,
2
],
"UpdatedBy": "sample string 7",
"Updated": "2026-09-08T15:28:53.9621652-06:00"
}
application/javascript
Sample:
{"ID":2,"TravelDateID":2,"Name":"sample string 3","Code":"sample string 4","StartDate":"2026-09-08T15:28:53.9621652-06:00","EndDate":"2026-09-08T15:28:53.9621652-06:00","ObjectType":0,"SessionIDList":[1,2],"ProgramIDList":[1,2],"SeasonIDArray":[1,2],"UpdatedBy":"sample string 7","Updated":"2026-09-08T15:28:53.9621652-06:00"}
application/xml, text/xml
Sample:
<TravelDate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ID>2</ID>
<TravelDateID>2</TravelDateID>
<Name>sample string 3</Name>
<Code>sample string 4</Code>
<StartDate>2026-09-08T15:28:53.9621652-06:00</StartDate>
<EndDate>2026-09-08T15:28:53.9621652-06:00</EndDate>
<ObjectType>Undefined</ObjectType>
<SessionIDList>
<int>1</int>
<int>2</int>
</SessionIDList>
<ProgramIDList>
<int>1</int>
<int>2</int>
</ProgramIDList>
<SeasonIDArray>
<int>1</int>
<int>2</int>
</SeasonIDArray>
<UpdatedBy>sample string 7</UpdatedBy>
<Updated>2026-09-08T15:28:53.9621652-06:00</Updated>
</TravelDate>