| 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<TaskSeriesTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.Tasks">
<AssignedWorkspace>String</AssignedWorkspace>
<BasedOn>String</BasedOn>
<BatchCreate>false</BatchCreate>
<CreateFrequency>String</CreateFrequency>
<CreateOnAsset>false</CreateOnAsset>
<CreateOnChildren>false</CreateOnChildren>
<CreateSchedule>false</CreateSchedule>
<Created>String</Created>
<CreatedBy>String</CreatedBy>
<Data>String</Data>
<DataTree xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</DataTree>
<DueDate>String</DueDate>
<ExternalId>String</ExternalId>
<FutureBatch>0</FutureBatch>
<IsRootTemplate>false</IsRootTemplate>
<LastUpdated>String</LastUpdated>
<LastUpdatedLocal>String</LastUpdatedLocal>
<ObjectId>String</ObjectId>
<ParentAsset>String</ParentAsset>
<ParentTemplate>String</ParentTemplate>
<RepeatFrequency>String</RepeatFrequency>
<RepeatInterval>0</RepeatInterval>
<ScheduleDefs xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.DomainObjects.Model">
<d2p1:SeriesSchedule>
<d2p1:AllDay>false</d2p1:AllDay>
<d2p1:Day>0</d2p1:Day>
<d2p1:Duration>0</d2p1:Duration>
<d2p1:End>0</d2p1:End>
<d2p1:Start>0</d2p1:Start>
</d2p1:SeriesSchedule>
</ScheduleDefs>
<SeriesEndDate>String</SeriesEndDate>
<SeriesStartDate>String</SeriesStartDate>
<SetDueDate>false</SetDueDate>
<TaskName>String</TaskName>
<TaskType>String</TaskType>
<Teams xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Teams>
<TemplateName>String</TemplateName>
<Users xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Users>
<VersionId>String</VersionId>
<Workspace>String</Workspace>
</TaskSeriesTemplate>