Field Squared API Services

<back to all web services

LaborItemType

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

public class dtos
{

    public static class LaborItemType
    {
        public String ObjectId = null;
        public String Workspace = null;
        public String ExternalId = null;
        public String ItemType = null;
        public String Desc = null;
        public String UOM = null;
        public Double DefaultPrice = null;
        public Boolean AutoGenerate = null;
        public ArrayList<String> SkillTags = null;
        public ArrayList<String> TimeStartTaskStatuses = null;
        public ArrayList<String> TimeEndTaskStatuses = null;
        public String Template = null;
        public HashMap<String,String> Data = null;
        public Boolean Enabled = null;
        public Integer RoundTo = null;
        public Integer RoundOptions = null;
        public String DurationRange = null;
        public ArrayList<String> TaskTypes = null;
        public ArrayList<String> LimitDays = null;
        public Boolean IncludeInactive = null;
        
        public String getObjectId() { return ObjectId; }
        public LaborItemType setObjectId(String value) { this.ObjectId = value; return this; }
        public String getWorkspace() { return Workspace; }
        public LaborItemType setWorkspace(String value) { this.Workspace = value; return this; }
        public String getExternalId() { return ExternalId; }
        public LaborItemType setExternalId(String value) { this.ExternalId = value; return this; }
        public String getItemType() { return ItemType; }
        public LaborItemType setItemType(String value) { this.ItemType = value; return this; }
        public String getDesc() { return Desc; }
        public LaborItemType setDesc(String value) { this.Desc = value; return this; }
        public String getUom() { return UOM; }
        public LaborItemType setUom(String value) { this.UOM = value; return this; }
        public Double getDefaultPrice() { return DefaultPrice; }
        public LaborItemType setDefaultPrice(Double value) { this.DefaultPrice = value; return this; }
        public Boolean isAutoGenerate() { return AutoGenerate; }
        public LaborItemType setAutoGenerate(Boolean value) { this.AutoGenerate = value; return this; }
        public ArrayList<String> getSkillTags() { return SkillTags; }
        public LaborItemType setSkillTags(ArrayList<String> value) { this.SkillTags = value; return this; }
        public ArrayList<String> getTimeStartTaskStatuses() { return TimeStartTaskStatuses; }
        public LaborItemType setTimeStartTaskStatuses(ArrayList<String> value) { this.TimeStartTaskStatuses = value; return this; }
        public ArrayList<String> getTimeEndTaskStatuses() { return TimeEndTaskStatuses; }
        public LaborItemType setTimeEndTaskStatuses(ArrayList<String> value) { this.TimeEndTaskStatuses = value; return this; }
        public String getTemplate() { return Template; }
        public LaborItemType setTemplate(String value) { this.Template = value; return this; }
        public HashMap<String,String> getData() { return Data; }
        public LaborItemType setData(HashMap<String,String> value) { this.Data = value; return this; }
        public Boolean isEnabled() { return Enabled; }
        public LaborItemType setEnabled(Boolean value) { this.Enabled = value; return this; }
        public Integer getRoundTo() { return RoundTo; }
        public LaborItemType setRoundTo(Integer value) { this.RoundTo = value; return this; }
        public Integer getRoundOptions() { return RoundOptions; }
        public LaborItemType setRoundOptions(Integer value) { this.RoundOptions = value; return this; }
        public String getDurationRange() { return DurationRange; }
        public LaborItemType setDurationRange(String value) { this.DurationRange = value; return this; }
        public ArrayList<String> getTaskTypes() { return TaskTypes; }
        public LaborItemType setTaskTypes(ArrayList<String> value) { this.TaskTypes = value; return this; }
        public ArrayList<String> getLimitDays() { return LimitDays; }
        public LaborItemType setLimitDays(ArrayList<String> value) { this.LimitDays = value; return this; }
        public Boolean isIncludeInactive() { return IncludeInactive; }
        public LaborItemType setIncludeInactive(Boolean value) { this.IncludeInactive = value; return this; }
    }

}

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

{"ObjectId":"String","Workspace":"String","ExternalId":"String","ItemType":"String","Desc":"String","UOM":"String","DefaultPrice":0,"AutoGenerate":false,"SkillTags":["String"],"TimeStartTaskStatuses":["String"],"TimeEndTaskStatuses":["String"],"Template":"String","Data":{"String":"String"},"Enabled":false,"RoundTo":0,"RoundOptions":0,"DurationRange":"String","TaskTypes":["String"],"LimitDays":["String"],"IncludeInactive":false}