| 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); }
}
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
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: application/json
Content-Type: application/json
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}