Field Squared API Services

<back to all web services

LaborItemType

The following routes are available for this service:
GET,PUT,POST/{Workspace}/LaborItemType
GET,PUT,POST/{Workspace}/LaborItemType/{ObjectId}
LaborItemType Parameters:
NameParameterData TypeRequiredDescription
ObjectIdpathstringNo
WorkspacepathstringNo
ExternalIdbodystringNo
ItemTypebodystringNo
DescbodystringNo
UOMbodystringNo
DefaultPricebodydouble?No
AutoGeneratebodybool?No
SkillTagsbodyList<string>No
TimeStartTaskStatusesbodyList<string>No
TimeEndTaskStatusesbodyList<string>No
TemplatebodystringNo
DatabodyDictionary<string, string>No
Enabledbodybool?No
RoundTobodyint?No
RoundOptionsbodyint?No
DurationRangebodystringNo
TaskTypesbodyList<string>No
LimitDaysbodyList<string>No
IncludeInactivebodyboolNo

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}/LaborItemType HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<LaborItemType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.PricingEngine">
  <AutoGenerate>false</AutoGenerate>
  <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Data>
  <DefaultPrice>0</DefaultPrice>
  <Desc>String</Desc>
  <DurationRange>String</DurationRange>
  <Enabled>false</Enabled>
  <ExternalId>String</ExternalId>
  <IncludeInactive>false</IncludeInactive>
  <ItemType>String</ItemType>
  <LimitDays xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </LimitDays>
  <ObjectId>String</ObjectId>
  <RoundOptions>0</RoundOptions>
  <RoundTo>0</RoundTo>
  <SkillTags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </SkillTags>
  <TaskTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </TaskTypes>
  <Template>String</Template>
  <TimeEndTaskStatuses xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </TimeEndTaskStatuses>
  <TimeStartTaskStatuses xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </TimeStartTaskStatuses>
  <UOM>String</UOM>
  <Workspace>String</Workspace>
</LaborItemType>