| POST,OPTIONS | /v1/routeplan/forecast/move |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class RoutePlanForecastMoveRequest
{
open var Dest:String? = null
open var Items:ArrayList<RoutePlanForecastMoveItem> = ArrayList<RoutePlanForecastMoveItem>()
}
open class RoutePlanForecastMoveItem
{
open var AgreementID:Int? = null
open var AgreementJobID:Int? = null
open var DateIso:String? = null
}
open class RoutePlanMoveResponse
{
open var Moved:Int? = null
open var Dropped:Int? = null
open var Kept:Int? = null
open var ResponseStatus:ResponseStatus? = null
}
Kotlin RoutePlanForecastMoveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/routeplan/forecast/move HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Dest":"String","Items":[{"AgreementID":0,"AgreementJobID":0,"DateIso":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Moved":0,"Dropped":0,"Kept":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}