POST api/travel/day/transportationassignment/selftransportation
Creates a new SelfTransportationAssignment or updates an existing one. If the assignment ID exists, it will be updated; otherwise, a new assignment will be created.
Request Information
URI Parameters
None.
Body Parameters
The SelfTransportationAssignment object containing the assignment information to create or update. Sent in the request body as JSON.
SelfTransportationAssignment| Name | Description | Type | Additional information |
|---|---|---|---|
| Inbound | boolean |
None. |
|
| Time | string |
None. |
|
| TransType | SelfTransportationType |
None. |
|
| Notes | string |
None. |
|
| AssignmentID | integer |
None. |
|
| PersonID | integer |
None. |
|
| DaysOfWeek | DayOfWeekFlag |
None. |
|
| Name | IPersonName |
None. |
|
| TravelDateID | integer |
None. |
|
| TravelDate | TravelDate |
None. |
|
| UpdatedBy | string |
None. |
|
| Updated | date |
None. |
|
| RosterSeasonID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Inbound": true,
"Time": "sample string 2",
"TransType": 0,
"Notes": "sample string 3",
"AssignmentID": 4,
"PersonID": 5,
"DaysOfWeek": 0,
"Name": null,
"TravelDateID": 6,
"TravelDate": {
"ID": 2,
"TravelDateID": 2,
"Name": "sample string 3",
"Code": "sample string 4",
"StartDate": "2026-09-08T15:28:54.5638127-06:00",
"EndDate": "2026-09-08T15:28:54.5638127-06:00",
"ObjectType": 0,
"SessionIDList": [
1,
2
],
"ProgramIDList": [
1,
2
],
"SeasonIDArray": [
1,
2
],
"UpdatedBy": "sample string 7",
"Updated": "2026-09-08T15:28:54.5638127-06:00"
},
"UpdatedBy": "sample string 7",
"Updated": "2026-09-08T15:28:54.5638127-06:00",
"RosterSeasonID": 1
}
application/javascript
Sample:
{"Inbound":true,"Time":"sample string 2","TransType":0,"Notes":"sample string 3","AssignmentID":4,"PersonID":5,"DaysOfWeek":0,"Name":null,"TravelDateID":6,"TravelDate":{"ID":2,"TravelDateID":2,"Name":"sample string 3","Code":"sample string 4","StartDate":"2026-09-08T15:28:54.5638127-06:00","EndDate":"2026-09-08T15:28:54.5638127-06:00","ObjectType":0,"SessionIDList":[1,2],"ProgramIDList":[1,2],"SeasonIDArray":[1,2],"UpdatedBy":"sample string 7","Updated":"2026-09-08T15:28:54.5638127-06:00"},"UpdatedBy":"sample string 7","Updated":"2026-09-08T15:28:54.5638127-06:00","RosterSeasonID":1}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Returns HTTP 200 (OK) with the created or updated SelfTransportationAssignment object.
SelfTransportationAssignment| Name | Description | Type | Additional information |
|---|---|---|---|
| Inbound | boolean |
None. |
|
| Time | string |
None. |
|
| TransType | SelfTransportationType |
None. |
|
| Notes | string |
None. |
|
| AssignmentID | integer |
None. |
|
| PersonID | integer |
None. |
|
| DaysOfWeek | DayOfWeekFlag |
None. |
|
| Name | IPersonName |
None. |
|
| TravelDateID | integer |
None. |
|
| TravelDate | TravelDate |
None. |
|
| UpdatedBy | string |
None. |
|
| Updated | date |
None. |
|
| RosterSeasonID | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Inbound": true,
"Time": "sample string 2",
"TransType": 0,
"Notes": "sample string 3",
"AssignmentID": 4,
"PersonID": 5,
"DaysOfWeek": 0,
"Name": null,
"TravelDateID": 6,
"TravelDate": {
"ID": 2,
"TravelDateID": 2,
"Name": "sample string 3",
"Code": "sample string 4",
"StartDate": "2026-09-08T15:28:54.5638127-06:00",
"EndDate": "2026-09-08T15:28:54.5638127-06:00",
"ObjectType": 0,
"SessionIDList": [
1,
2
],
"ProgramIDList": [
1,
2
],
"SeasonIDArray": [
1,
2
],
"UpdatedBy": "sample string 7",
"Updated": "2026-09-08T15:28:54.5638127-06:00"
},
"UpdatedBy": "sample string 7",
"Updated": "2026-09-08T15:28:54.5638127-06:00",
"RosterSeasonID": 1
}
application/javascript
Sample:
{"Inbound":true,"Time":"sample string 2","TransType":0,"Notes":"sample string 3","AssignmentID":4,"PersonID":5,"DaysOfWeek":0,"Name":null,"TravelDateID":6,"TravelDate":{"ID":2,"TravelDateID":2,"Name":"sample string 3","Code":"sample string 4","StartDate":"2026-09-08T15:28:54.5638127-06:00","EndDate":"2026-09-08T15:28:54.5638127-06:00","ObjectType":0,"SessionIDList":[1,2],"ProgramIDList":[1,2],"SeasonIDArray":[1,2],"UpdatedBy":"sample string 7","Updated":"2026-09-08T15:28:54.5638127-06:00"},"UpdatedBy":"sample string 7","Updated":"2026-09-08T15:28:54.5638127-06:00","RosterSeasonID":1}