| GET,PUT,POST | /{Workspace}/LaborItemType | ||
|---|---|---|---|
| GET,PUT,POST | /{Workspace}/LaborItemType/{ObjectId} |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ObjectId | path | string | No | |
| Workspace | path | string | No | |
| ExternalId | body | string | No | |
| ItemType | body | string | No | |
| Desc | body | string | No | |
| UOM | body | string | No | |
| DefaultPrice | body | double? | No | |
| AutoGenerate | body | bool? | No | |
| SkillTags | body | List<string> | No | |
| TimeStartTaskStatuses | body | List<string> | No | |
| TimeEndTaskStatuses | body | List<string> | No | |
| Template | body | string | No | |
| Data | body | Dictionary<string, string> | No | |
| Enabled | body | bool? | No | |
| RoundTo | body | int? | No | |
| RoundOptions | body | int? | No | |
| DurationRange | body | string | No | |
| TaskTypes | body | List<string> | No | |
| LimitDays | body | List<string> | No | |
| IncludeInactive | body | bool | No |
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}/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>