| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ObjectId: String,
Workspace: String,
ItemTypeId: String,
Price: 0,
ItemTypeName: String,
TimeWorked: 0,
TimeCharged: 0,
StartTime: String,
EndTime: String,
UserId: String,
Rate: 0,
OwningTaskId: String,
StartStatus: String,
EndStatus: String,
StartEventId: String,
EndEventId: String,
Qty: 0
}