Field Squared API Services

<back to all web services

TaskSeriesTemplate

Contains the data for a task series template object

The following routes are available for this service:
GET,PUT,POST/{Workspace}/TaskSeriesTemplate
GET,PUT,POST,DELETE/{Workspace}/TaskSeriesTemplate/{ObjectId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Contains the data for a task series template object
    */
    public static class TaskSeriesTemplate
    {
        public String Workspace = null;
        public String AssignedWorkspace = null;
        public String ObjectId = null;
        public String VersionId = null;
        public String ExternalId = null;
        public String BasedOn = null;
        public String Created = null;
        public String CreatedBy = null;
        public String LastUpdated = null;
        public String LastUpdatedLocal = null;
        public String TemplateName = null;
        public String TaskName = null;
        public String TaskType = null;
        public String ParentAsset = null;
        public String ParentTemplate = null;
        public String SeriesStartDate = null;
        public String SeriesEndDate = null;
        public String DueDate = null;
        public String CreateFrequency = null;
        public String RepeatFrequency = null;
        public Integer RepeatInterval = null;
        public ArrayList<SeriesSchedule> ScheduleDefs = null;
        public Boolean CreateOnAsset = null;
        public Boolean CreateOnChildren = null;
        public Boolean BatchCreate = null;
        public Integer FutureBatch = null;
        public Boolean CreateSchedule = null;
        public Boolean SetDueDate = null;
        public Boolean IsRootTemplate = null;
        public ArrayList<String> Users = null;
        public ArrayList<String> Teams = null;
        public String Data = null;
        public HashMap<String,Object> DataTree = null;
        
        public String getWorkspace() { return Workspace; }
        public TaskSeriesTemplate setWorkspace(String value) { this.Workspace = value; return this; }
        public String getAssignedWorkspace() { return AssignedWorkspace; }
        public TaskSeriesTemplate setAssignedWorkspace(String value) { this.AssignedWorkspace = value; return this; }
        public String getObjectId() { return ObjectId; }
        public TaskSeriesTemplate setObjectId(String value) { this.ObjectId = value; return this; }
        public String getVersionId() { return VersionId; }
        public TaskSeriesTemplate setVersionId(String value) { this.VersionId = value; return this; }
        public String getExternalId() { return ExternalId; }
        public TaskSeriesTemplate setExternalId(String value) { this.ExternalId = value; return this; }
        public String getBasedOn() { return BasedOn; }
        public TaskSeriesTemplate setBasedOn(String value) { this.BasedOn = value; return this; }
        public String getCreated() { return Created; }
        public TaskSeriesTemplate setCreated(String value) { this.Created = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public TaskSeriesTemplate setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public String getLastUpdated() { return LastUpdated; }
        public TaskSeriesTemplate setLastUpdated(String value) { this.LastUpdated = value; return this; }
        public String getLastUpdatedLocal() { return LastUpdatedLocal; }
        public TaskSeriesTemplate setLastUpdatedLocal(String value) { this.LastUpdatedLocal = value; return this; }
        public String getTemplateName() { return TemplateName; }
        public TaskSeriesTemplate setTemplateName(String value) { this.TemplateName = value; return this; }
        public String getTaskName() { return TaskName; }
        public TaskSeriesTemplate setTaskName(String value) { this.TaskName = value; return this; }
        public String getTaskType() { return TaskType; }
        public TaskSeriesTemplate setTaskType(String value) { this.TaskType = value; return this; }
        public String getParentAsset() { return ParentAsset; }
        public TaskSeriesTemplate setParentAsset(String value) { this.ParentAsset = value; return this; }
        public String getParentTemplate() { return ParentTemplate; }
        public TaskSeriesTemplate setParentTemplate(String value) { this.ParentTemplate = value; return this; }
        public String getSeriesStartDate() { return SeriesStartDate; }
        public TaskSeriesTemplate setSeriesStartDate(String value) { this.SeriesStartDate = value; return this; }
        public String getSeriesEndDate() { return SeriesEndDate; }
        public TaskSeriesTemplate setSeriesEndDate(String value) { this.SeriesEndDate = value; return this; }
        public String getDueDate() { return DueDate; }
        public TaskSeriesTemplate setDueDate(String value) { this.DueDate = value; return this; }
        public String getCreateFrequency() { return CreateFrequency; }
        public TaskSeriesTemplate setCreateFrequency(String value) { this.CreateFrequency = value; return this; }
        public String getRepeatFrequency() { return RepeatFrequency; }
        public TaskSeriesTemplate setRepeatFrequency(String value) { this.RepeatFrequency = value; return this; }
        public Integer getRepeatInterval() { return RepeatInterval; }
        public TaskSeriesTemplate setRepeatInterval(Integer value) { this.RepeatInterval = value; return this; }
        public ArrayList<SeriesSchedule> getScheduleDefs() { return ScheduleDefs; }
        public TaskSeriesTemplate setScheduleDefs(ArrayList<SeriesSchedule> value) { this.ScheduleDefs = value; return this; }
        public Boolean isCreateOnAsset() { return CreateOnAsset; }
        public TaskSeriesTemplate setCreateOnAsset(Boolean value) { this.CreateOnAsset = value; return this; }
        public Boolean isCreateOnChildren() { return CreateOnChildren; }
        public TaskSeriesTemplate setCreateOnChildren(Boolean value) { this.CreateOnChildren = value; return this; }
        public Boolean isBatchCreate() { return BatchCreate; }
        public TaskSeriesTemplate setBatchCreate(Boolean value) { this.BatchCreate = value; return this; }
        public Integer getFutureBatch() { return FutureBatch; }
        public TaskSeriesTemplate setFutureBatch(Integer value) { this.FutureBatch = value; return this; }
        public Boolean isCreateSchedule() { return CreateSchedule; }
        public TaskSeriesTemplate setCreateSchedule(Boolean value) { this.CreateSchedule = value; return this; }
        public Boolean isSetDueDate() { return SetDueDate; }
        public TaskSeriesTemplate setSetDueDate(Boolean value) { this.SetDueDate = value; return this; }
        public Boolean getIsRootTemplate() { return IsRootTemplate; }
        public TaskSeriesTemplate setIsRootTemplate(Boolean value) { this.IsRootTemplate = value; return this; }
        public ArrayList<String> getUsers() { return Users; }
        public TaskSeriesTemplate setUsers(ArrayList<String> value) { this.Users = value; return this; }
        public ArrayList<String> getTeams() { return Teams; }
        public TaskSeriesTemplate setTeams(ArrayList<String> value) { this.Teams = value; return this; }
        public String getData() { return Data; }
        public TaskSeriesTemplate setData(String value) { this.Data = value; return this; }
        public HashMap<String,Object> getDataTree() { return DataTree; }
        public TaskSeriesTemplate setDataTree(HashMap<String,Object> value) { this.DataTree = value; return this; }
    }

    public static class SeriesSchedule
    {
        public Integer Day = null;
        public Integer Start = null;
        public Integer End = null;
        public Boolean AllDay = null;
        public Integer Duration = null;
        
        public Integer getDay() { return Day; }
        public SeriesSchedule setDay(Integer value) { this.Day = value; return this; }
        public Integer getStart() { return Start; }
        public SeriesSchedule setStart(Integer value) { this.Start = value; return this; }
        public Integer getEnd() { return End; }
        public SeriesSchedule setEnd(Integer value) { this.End = value; return this; }
        public Boolean isAllDay() { return AllDay; }
        public SeriesSchedule setAllDay(Boolean value) { this.AllDay = value; return this; }
        public Integer getDuration() { return Duration; }
        public SeriesSchedule setDuration(Integer value) { this.Duration = value; return this; }
    }

}

Java TaskSeriesTemplate 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}/TaskSeriesTemplate HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Workspace":"String","AssignedWorkspace":"String","ObjectId":"String","VersionId":"String","ExternalId":"String","BasedOn":"String","Created":"String","CreatedBy":"String","LastUpdated":"String","LastUpdatedLocal":"String","TemplateName":"String","TaskName":"String","TaskType":"String","ParentAsset":"String","ParentTemplate":"String","SeriesStartDate":"String","SeriesEndDate":"String","DueDate":"String","CreateFrequency":"String","RepeatFrequency":"String","RepeatInterval":0,"ScheduleDefs":[{"Day":0,"Start":0,"End":0,"AllDay":false,"Duration":0}],"CreateOnAsset":false,"CreateOnChildren":false,"BatchCreate":false,"FutureBatch":0,"CreateSchedule":false,"SetDueDate":false,"IsRootTemplate":false,"Users":["String"],"Teams":["String"],"Data":"String","DataTree":{"String":{}}}