Field Squared API Services

<back to all web services

TaskType

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

public class dtos
{

    public static class TaskType
    {
        public String Workspace = null;
        public String Type = null;
        public String Icon = null;
        public ArrayList<String> SkillTags = null;
        public Double MinTimeToComplete = null;
        public Double AvgTimeToComplete = null;
        public Double MaxTimeToComplete = null;
        public String Template = null;
        public Boolean DocFilter = null;
        public Boolean ShowRelatedDocs = null;
        public ArrayList<String> AllowedDocTypes = null;
        public Integer DefaultPriority = null;
        public Boolean Inactive = null;
        public ArrayList<String> AutoCreateDocuments = null;
        public String PercentCompleteType = null;
        public Boolean UseJobTimers = null;
        public Boolean InheritAssetTeams = null;
        public Boolean InheritContactTeams = null;
        public ArrayList<String> EditTeams = null;
        public Boolean UseRequired = null;
        public Boolean AllowOverride = null;
        public ArrayList<RequiredAsset> RequiredAssets = null;
        public ArrayList<RequiredInventoryType> RequiredInventoryTypes = null;
        public ArrayList<RequiredUser> RequiredUsers = null;
        public HashMap<String,Object> ActiveLaborTypes = null;
        public Boolean IndividualUserStatuses = null;
        public Boolean LockOption = null;
        public ArrayList<AutoCreateDocExpression> AutoCreateDocExpressions = null;
        public Boolean PTO = null;
        
        public String getWorkspace() { return Workspace; }
        public TaskType setWorkspace(String value) { this.Workspace = value; return this; }
        public String getType() { return Type; }
        public TaskType setType(String value) { this.Type = value; return this; }
        public String getIcon() { return Icon; }
        public TaskType setIcon(String value) { this.Icon = value; return this; }
        public ArrayList<String> getSkillTags() { return SkillTags; }
        public TaskType setSkillTags(ArrayList<String> value) { this.SkillTags = value; return this; }
        public Double getMinTimeToComplete() { return MinTimeToComplete; }
        public TaskType setMinTimeToComplete(Double value) { this.MinTimeToComplete = value; return this; }
        public Double getAvgTimeToComplete() { return AvgTimeToComplete; }
        public TaskType setAvgTimeToComplete(Double value) { this.AvgTimeToComplete = value; return this; }
        public Double getMaxTimeToComplete() { return MaxTimeToComplete; }
        public TaskType setMaxTimeToComplete(Double value) { this.MaxTimeToComplete = value; return this; }
        public String getTemplate() { return Template; }
        public TaskType setTemplate(String value) { this.Template = value; return this; }
        public Boolean isDocFilter() { return DocFilter; }
        public TaskType setDocFilter(Boolean value) { this.DocFilter = value; return this; }
        public Boolean isShowRelatedDocs() { return ShowRelatedDocs; }
        public TaskType setShowRelatedDocs(Boolean value) { this.ShowRelatedDocs = value; return this; }
        public ArrayList<String> getAllowedDocTypes() { return AllowedDocTypes; }
        public TaskType setAllowedDocTypes(ArrayList<String> value) { this.AllowedDocTypes = value; return this; }
        public Integer getDefaultPriority() { return DefaultPriority; }
        public TaskType setDefaultPriority(Integer value) { this.DefaultPriority = value; return this; }
        public Boolean isInactive() { return Inactive; }
        public TaskType setInactive(Boolean value) { this.Inactive = value; return this; }
        public ArrayList<String> getAutoCreateDocuments() { return AutoCreateDocuments; }
        public TaskType setAutoCreateDocuments(ArrayList<String> value) { this.AutoCreateDocuments = value; return this; }
        public String getPercentCompleteType() { return PercentCompleteType; }
        public TaskType setPercentCompleteType(String value) { this.PercentCompleteType = value; return this; }
        public Boolean isUseJobTimers() { return UseJobTimers; }
        public TaskType setUseJobTimers(Boolean value) { this.UseJobTimers = value; return this; }
        public Boolean isInheritAssetTeams() { return InheritAssetTeams; }
        public TaskType setInheritAssetTeams(Boolean value) { this.InheritAssetTeams = value; return this; }
        public Boolean isInheritContactTeams() { return InheritContactTeams; }
        public TaskType setInheritContactTeams(Boolean value) { this.InheritContactTeams = value; return this; }
        public ArrayList<String> getEditTeams() { return EditTeams; }
        public TaskType setEditTeams(ArrayList<String> value) { this.EditTeams = value; return this; }
        public Boolean isUseRequired() { return UseRequired; }
        public TaskType setUseRequired(Boolean value) { this.UseRequired = value; return this; }
        public Boolean isAllowOverride() { return AllowOverride; }
        public TaskType setAllowOverride(Boolean value) { this.AllowOverride = value; return this; }
        public ArrayList<RequiredAsset> getRequiredAssets() { return RequiredAssets; }
        public TaskType setRequiredAssets(ArrayList<RequiredAsset> value) { this.RequiredAssets = value; return this; }
        public ArrayList<RequiredInventoryType> getRequiredInventoryTypes() { return RequiredInventoryTypes; }
        public TaskType setRequiredInventoryTypes(ArrayList<RequiredInventoryType> value) { this.RequiredInventoryTypes = value; return this; }
        public ArrayList<RequiredUser> getRequiredUsers() { return RequiredUsers; }
        public TaskType setRequiredUsers(ArrayList<RequiredUser> value) { this.RequiredUsers = value; return this; }
        public HashMap<String,Object> getActiveLaborTypes() { return ActiveLaborTypes; }
        public TaskType setActiveLaborTypes(HashMap<String,Object> value) { this.ActiveLaborTypes = value; return this; }
        public Boolean isIndividualUserStatuses() { return IndividualUserStatuses; }
        public TaskType setIndividualUserStatuses(Boolean value) { this.IndividualUserStatuses = value; return this; }
        public Boolean isLockOption() { return LockOption; }
        public TaskType setLockOption(Boolean value) { this.LockOption = value; return this; }
        public ArrayList<AutoCreateDocExpression> getAutoCreateDocExpressions() { return AutoCreateDocExpressions; }
        public TaskType setAutoCreateDocExpressions(ArrayList<AutoCreateDocExpression> value) { this.AutoCreateDocExpressions = value; return this; }
        public Boolean isPto() { return PTO; }
        public TaskType setPto(Boolean value) { this.PTO = value; return this; }
    }

    public static class RequiredAsset
    {
        public Integer Number = null;
        public String Type = null;
        
        public Integer getNumber() { return Number; }
        public RequiredAsset setNumber(Integer value) { this.Number = value; return this; }
        public String getType() { return Type; }
        public RequiredAsset setType(String value) { this.Type = value; return this; }
    }

    public static class RequiredInventoryType
    {
        public Integer Number = null;
        public String Type = null;
        public String Name = null;
        public Boolean IsSerialized = null;
        public String Description = null;
        
        public Integer getNumber() { return Number; }
        public RequiredInventoryType setNumber(Integer value) { this.Number = value; return this; }
        public String getType() { return Type; }
        public RequiredInventoryType setType(String value) { this.Type = value; return this; }
        public String getName() { return Name; }
        public RequiredInventoryType setName(String value) { this.Name = value; return this; }
        public Boolean getIsSerialized() { return IsSerialized; }
        public RequiredInventoryType setIsSerialized(Boolean value) { this.IsSerialized = value; return this; }
        public String getDescription() { return Description; }
        public RequiredInventoryType setDescription(String value) { this.Description = value; return this; }
    }

    public static class RequiredUser
    {
        public Integer Number = null;
        public ArrayList<String> SkillTags = null;
        
        public Integer getNumber() { return Number; }
        public RequiredUser setNumber(Integer value) { this.Number = value; return this; }
        public ArrayList<String> getSkillTags() { return SkillTags; }
        public RequiredUser setSkillTags(ArrayList<String> value) { this.SkillTags = value; return this; }
    }

    public static class AutoCreateDocExpression
    {
        public String Document = null;
        public String Expression = null;
        public Boolean MultipleCopies = null;
        
        public String getDocument() { return Document; }
        public AutoCreateDocExpression setDocument(String value) { this.Document = value; return this; }
        public String getExpression() { return Expression; }
        public AutoCreateDocExpression setExpression(String value) { this.Expression = value; return this; }
        public Boolean isMultipleCopies() { return MultipleCopies; }
        public AutoCreateDocExpression setMultipleCopies(Boolean value) { this.MultipleCopies = value; return this; }
    }

}

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

{"Workspace":"String","Type":"String","Icon":"String","SkillTags":["String"],"MinTimeToComplete":0,"AvgTimeToComplete":0,"MaxTimeToComplete":0,"Template":"String","DocFilter":false,"ShowRelatedDocs":false,"AllowedDocTypes":["String"],"DefaultPriority":0,"Inactive":false,"AutoCreateDocuments":["String"],"PercentCompleteType":"String","UseJobTimers":false,"InheritAssetTeams":false,"InheritContactTeams":false,"EditTeams":["String"],"UseRequired":false,"AllowOverride":false,"RequiredAssets":[{"Number":0,"Type":"String"}],"RequiredInventoryTypes":[{"Number":0,"Type":"String","Name":"String","IsSerialized":false,"Description":"String"}],"RequiredUsers":[{"Number":0,"SkillTags":["String"]}],"ActiveLaborTypes":{"String":{}},"IndividualUserStatuses":false,"LockOption":false,"AutoCreateDocExpressions":[{"Document":"String","Expression":"String","MultipleCopies":false}],"PTO":false}