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}

export class LaborItemType
{
    public ObjectId: string;
    public Workspace: string;
    public ExternalId: string;
    public ItemType: string;
    public Desc: string;
    public UOM: string;
    public DefaultPrice?: number;
    public AutoGenerate?: boolean;
    public SkillTags: string[];
    public TimeStartTaskStatuses: string[];
    public TimeEndTaskStatuses: string[];
    public Template: string;
    public Data: { [index: string]: string; };
    public Enabled?: boolean;
    public RoundTo?: number;
    public RoundOptions?: number;
    public DurationRange: string;
    public TaskTypes: string[];
    public LimitDays: string[];
    public IncludeInactive: boolean;

    public constructor(init?: Partial<LaborItemType>) { (Object as any).assign(this, init); }
}

TypeScript 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}