Field Squared API Services

<back to all web services

AppendRouteRequest

The following routes are available for this service:
POST/{Workspace}/AppendRoute
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.MapRoute;

namespace Field2Office.API.Model.MapRoute
{
    public partial class AppendRouteRequest
    {
        public AppendRouteRequest()
        {
            TaskIds = new List<string>{};
        }

        public virtual string Workspace { get; set; }
        public virtual string UserId { get; set; }
        public virtual string Date { get; set; }
        public virtual List<string> TaskIds { get; set; }
        public virtual int? StartTime { get; set; }
        public virtual int RoundStartTimes { get; set; }
        public virtual int TransitionTime { get; set; }
        public virtual string DebugRequestTime { get; set; }
    }

}

C# 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"}