GET api/Dispatch/AutoAssignStopsToTrip/{auth}/{TripID}
Use this method to assign all unassigned stops to this trip based on the route codes associated with the trip
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| auth |
Unique authorization identifier |
string |
Required |
| TripID |
The trip identifier to which the stops will be added |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
AutoAssignStopsResp| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful |
Set to true if method was successful |
boolean |
None. |
| ErrorMessage |
The error message if method call was not successful |
string |
None. |
| StopsAssigned |
The number of stops auto assigned to trip |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"ErrorMessage": "sample string 2",
"StopsAssigned": 3
}
application/xml, text/xml
Sample:
<AutoAssignStopsResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mnx.WebApi.Transportation.Models"> <ErrorMessage>sample string 2</ErrorMessage> <IsSuccessful>true</IsSuccessful> <StopsAssigned>3</StopsAssigned> </AutoAssignStopsResp>