Field Squared API Services

<back to all web services

AppendRouteRequest

The following routes are available for this service:
POST/{Workspace}/AppendRoute
namespace Field2Office.API.Model.MapRoute

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type AppendRouteRequest() = 
        member val Workspace:String = null with get,set
        member val UserId:String = null with get,set
        member val Date:String = null with get,set
        member val TaskIds:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val StartTime:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val RoundStartTimes:Int32 = new Int32() with get,set
        member val TransitionTime:Int32 = new Int32() with get,set
        member val DebugRequestTime:String = null with get,set

F# AppendRouteRequest DTOs

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

HTTP + CSV

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

POST /{Workspace}/AppendRoute HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Workspace":"String","UserId":"String","Date":"String","TaskIds":["String"],"StartTime":0,"RoundStartTimes":0,"TransitionTime":0,"DebugRequestTime":"String"}