| POST,OPTIONS | /v1/routeplan/forecast/move |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type RoutePlanMoveResponse() =
member val Moved:Int32 = new Int32() with get,set
member val Dropped:Int32 = new Int32() with get,set
member val Kept:Int32 = new Int32() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type RoutePlanForecastMoveItem() =
member val AgreementID:Int32 = new Int32() with get,set
member val AgreementJobID:Nullable<Int32> = new Nullable<Int32>() with get,set
member val DateIso:String = null with get,set
[<AllowNullLiteral>]
type RoutePlanForecastMoveRequest() =
member val Dest:String = null with get,set
member val Items:ResizeArray<RoutePlanForecastMoveItem> = new ResizeArray<RoutePlanForecastMoveItem>() with get,set
F# RoutePlanForecastMoveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
Dest: String,
Items:
[
{
AgreementID: 0,
AgreementJobID: 0,
DateIso: String
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
}
}