Field Squared API Services

<back to all web services

TaskSeries

Contains the data for a task series object

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

public class dtos
{

    /**
    * Contains the data for a task series object
    */
    public static class TaskSeries
    {
        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 TaskName = null;
        public String TaskType = null;
        public ArrayList<String> Users = null;
        public ArrayList<String> Teams = null;
        public String SeriesStartDate = null;
        public String SeriesEndDate = null;
        public String LastTaskEndDate = null;
        public String ParentAsset = null;
        public String RepeatFrequency = null;
        public Integer RepeatInterval = null;
        public ArrayList<SeriesSchedule> ScheduleDefs = null;
        public String TemplateId = null;
        
        public String getWorkspace() { return Workspace; }
        public TaskSeries setWorkspace(String value) { this.Workspace = value; return this; }
        public String getAssignedWorkspace() { return AssignedWorkspace; }
        public TaskSeries setAssignedWorkspace(String value) { this.AssignedWorkspace = value; return this; }
        public String getObjectId() { return ObjectId; }
        public TaskSeries setObjectId(String value) { this.ObjectId = value; return this; }
        public String getVersionId() { return VersionId; }
        public TaskSeries setVersionId(String value) { this.VersionId = value; return this; }
        public String getExternalId() { return ExternalId; }
        public TaskSeries setExternalId(String value) { this.ExternalId = value; return this; }
        public String getBasedOn() { return BasedOn; }
        public TaskSeries setBasedOn(String value) { this.BasedOn = value; return this; }
        public String getCreated() { return Created; }
        public TaskSeries setCreated(String value) { this.Created = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public TaskSeries setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public String getLastUpdated() { return LastUpdated; }
        public TaskSeries setLastUpdated(String value) { this.LastUpdated = value; return this; }
        public String getLastUpdatedLocal() { return LastUpdatedLocal; }
        public TaskSeries setLastUpdatedLocal(String value) { this.LastUpdatedLocal = value; return this; }
        public String getTaskName() { return TaskName; }
        public TaskSeries setTaskName(String value) { this.TaskName = value; return this; }
        public String getTaskType() { return TaskType; }
        public TaskSeries setTaskType(String value) { this.TaskType = value; return this; }
        public ArrayList<String> getUsers() { return Users; }
        public TaskSeries setUsers(ArrayList<String> value) { this.Users = value; return this; }
        public ArrayList<String> getTeams() { return Teams; }
        public TaskSeries setTeams(ArrayList<String> value) { this.Teams = value; return this; }
        public String getSeriesStartDate() { return SeriesStartDate; }
        public TaskSeries setSeriesStartDate(String value) { this.SeriesStartDate = value; return this; }
        public String getSeriesEndDate() { return SeriesEndDate; }
        public TaskSeries setSeriesEndDate(String value) { this.SeriesEndDate = value; return this; }
        public String getLastTaskEndDate() { return LastTaskEndDate; }
        public TaskSeries setLastTaskEndDate(String value) { this.LastTaskEndDate = value; return this; }
        public String getParentAsset() { return ParentAsset; }
        public TaskSeries setParentAsset(String value) { this.ParentAsset = value; return this; }
        public String getRepeatFrequency() { return RepeatFrequency; }
        public TaskSeries setRepeatFrequency(String value) { this.RepeatFrequency = value; return this; }
        public Integer getRepeatInterval() { return RepeatInterval; }
        public TaskSeries setRepeatInterval(Integer value) { this.RepeatInterval = value; return this; }
        public ArrayList<SeriesSchedule> getScheduleDefs() { return ScheduleDefs; }
        public TaskSeries setScheduleDefs(ArrayList<SeriesSchedule> value) { this.ScheduleDefs = value; return this; }
        public String getTemplateId() { return TemplateId; }
        public TaskSeries setTemplateId(String value) { this.TemplateId = 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 TaskSeries DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /{Workspace}/TaskSeries/{ObjectId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Workspace":"String","AssignedWorkspace":"String","ObjectId":"String","VersionId":"String","ExternalId":"String","BasedOn":"String","Created":"String","CreatedBy":"String","LastUpdated":"String","LastUpdatedLocal":"String","TaskName":"String","TaskType":"String","Users":["String"],"Teams":["String"],"SeriesStartDate":"String","SeriesEndDate":"String","LastTaskEndDate":"String","ParentAsset":"String","RepeatFrequency":"String","RepeatInterval":0,"ScheduleDefs":[{"Day":0,"Start":0,"End":0,"AllDay":false,"Duration":0}],"TemplateId":"String"}