| GET,PUT,POST,DELETE | /{Workspace}/LaborItem | ||
|---|---|---|---|
| GET,PUT,POST,DELETE | /{Workspace}/LaborItem/{ObjectId} |
export class LaborItem
{
public ObjectId: string;
public Workspace: string;
public ItemTypeId: string;
public Price?: number;
public ItemTypeName: string;
public TimeWorked?: number;
public TimeCharged?: number;
public StartTime: string;
public EndTime: string;
public UserId: string;
public Rate?: number;
public OwningTaskId: string;
public StartStatus: string;
public EndStatus: string;
public StartEventId: string;
public EndEventId: string;
public Qty?: number;
public constructor(init?: Partial<LaborItem>) { (Object as any).assign(this, init); }
}
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}/LaborItem HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<LaborItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.PricingEngine">
<EndEventId>String</EndEventId>
<EndStatus>String</EndStatus>
<EndTime>String</EndTime>
<ItemTypeId>String</ItemTypeId>
<ItemTypeName>String</ItemTypeName>
<ObjectId>String</ObjectId>
<OwningTaskId>String</OwningTaskId>
<Price>0</Price>
<Qty>0</Qty>
<Rate>0</Rate>
<StartEventId>String</StartEventId>
<StartStatus>String</StartStatus>
<StartTime>String</StartTime>
<TimeCharged>0</TimeCharged>
<TimeWorked>0</TimeWorked>
<UserId>String</UserId>
<Workspace>String</Workspace>
</LaborItem>