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 .xml suffix or ?format=xml

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