Field Squared API Services

<back to all web services

LaborItem

The following routes are available for this service:
GET,PUT,POST,DELETE/{Workspace}/LaborItem
GET,PUT,POST,DELETE/{Workspace}/LaborItem/{ObjectId}
LaborItem Parameters:
NameParameterData TypeRequiredDescription
ObjectIdpathstringNo
WorkspacepathstringNo
ItemTypeIdbodystringNo
Pricebodydouble?No
ItemTypeNamebodystringNo
TimeWorkedbodydouble?No
TimeChargedbodydouble?No
StartTimebodystringNo
EndTimebodystringNo
UserIdbodystringNo
Ratebodydouble?No
OwningTaskIdbodystringNo
StartStatusbodystringNo
EndStatusbodystringNo
StartEventIdbodystringNo
EndEventIdbodystringNo
Qtybodydouble?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
}