Trendsic Platform Service

<back to all web services

DispatchIncidentResolveRequest

Requires Authentication
Requires any of the permissions:DISPATCH:HAUL:MANAGE, DISPATCH:JOB:MANAGE, DISPATCH:ONDEMAND:MANAGE
The following routes are available for this service:
POST,OPTIONS/v1/dispatch/incidents/{IncidentId}/resolve
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class DispatchIncidentResolveRequest
{
    open var IncidentId:Int? = null
    open var Reopen:Boolean? = null
}

open class DispatchIncidentsResponse
{
    open var Incidents:ArrayList<DispatchIncidentView> = ArrayList<DispatchIncidentView>()
    open var EmptyTrucks:ArrayList<DispatchIncidentTruckView> = ArrayList<DispatchIncidentTruckView>()
    open var Trucks:ArrayList<DispatchIncidentTruckView> = ArrayList<DispatchIncidentTruckView>()
    open var TransloadTruckCode:String? = null
    open var ResponseStatus:ResponseStatus? = null
}

open class DispatchIncidentView
{
    open var IncidentId:Int? = null
    open var Code:String? = null
    open var Kind:String? = null
    open var KindDetail:String? = null
    open var LoadId:Int? = null
    open var LoadCode:String? = null
    open var LoadStatus:String? = null
    open var SourceLabel:String? = null
    open var DestinationLabel:String? = null
    open var QtyText:String? = null
    open var TruckCode:String? = null
    open var TruckLabel:String? = null
    open var LocationText:String? = null
    open var Lat:BigDecimal? = null
    open var Lng:BigDecimal? = null
    open var DriverPref:String? = null
    open var OpenedBy:String? = null
    open var OpenedVia:String? = null
    open var Resolver:String? = null
    open var Status:String? = null
    open var TruckRecovery:String? = null
    open var TruckRecoveredUtc:Date? = null
    open var LoadRecovery:String? = null
    open var LoadRecoveredUtc:Date? = null
    open var TransloadTruckCode:String? = null
    open var HoldId:Int? = null
    open var HoldCode:String? = null
    open var PhotoCount:Int? = null
    open var OpenedUtc:Date? = null
    open var ResolvedUtc:Date? = null
    open var ResolvedBy:String? = null
    open var ReopenedUtc:Date? = null
    open var Messages:ArrayList<DispatchIncidentMessageView> = ArrayList<DispatchIncidentMessageView>()
}

open class DispatchIncidentMessageView
{
    open var MessageId:Int? = null
    open var Who:String? = null
    open var Role:String? = null
    open var Msg:String? = null
    open var AtUtc:Date? = null
}

open class DispatchIncidentTruckView
{
    open var Code:String? = null
    open var DriverName:String? = null
    open var Stage:String? = null
    open var OpenLoadCode:String? = null
}

Kotlin DispatchIncidentResolveRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/dispatch/incidents/{IncidentId}/resolve HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IncidentId: 0,
	Reopen: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Incidents: 
	[
		{
			IncidentId: 0,
			Code: String,
			Kind: String,
			KindDetail: String,
			LoadId: 0,
			LoadCode: String,
			LoadStatus: String,
			SourceLabel: String,
			DestinationLabel: String,
			QtyText: String,
			TruckCode: String,
			TruckLabel: String,
			LocationText: String,
			Lat: 0,
			Lng: 0,
			DriverPref: String,
			OpenedBy: String,
			OpenedVia: String,
			Resolver: String,
			Status: String,
			TruckRecovery: String,
			TruckRecoveredUtc: 0001-01-01,
			LoadRecovery: String,
			LoadRecoveredUtc: 0001-01-01,
			TransloadTruckCode: String,
			HoldId: 0,
			HoldCode: String,
			PhotoCount: 0,
			OpenedUtc: 0001-01-01,
			ResolvedUtc: 0001-01-01,
			ResolvedBy: String,
			ReopenedUtc: 0001-01-01,
			Messages: 
			[
				{
					MessageId: 0,
					Who: String,
					Role: String,
					Msg: String,
					AtUtc: 0001-01-01
				}
			]
		}
	],
	EmptyTrucks: 
	[
		{
			Code: String,
			DriverName: String,
			Stage: String,
			OpenLoadCode: String
		}
	],
	Trucks: 
	[
		{
			Code: String,
			DriverName: String,
			Stage: String,
			OpenLoadCode: String
		}
	],
	TransloadTruckCode: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}